Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): Release v0.4.0-rc.2 #259

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/go-ossf-slsa3-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,26 @@ jobs:
with:
fetch-depth: 0
- id: ldflags
run: |
echo "version=$(git describe --tags --always --dirty | cut -c2-)" >> "$GITHUB_OUTPUT"
- env:
VERSION: ${{ steps.ldflags.outputs.version }}
run: |
set -euo pipefail

version=$(git describe --tags --always --dirty)
exit_code=0
PATHS=$(find actions/ -not -path '*/node_modules/*' -name package.json -type f -print0 | xargs -0 dirname)
for path in $PATHS; do
if grep -r "TODOS_VERSION" "${path}" >/dev/null; then
if ! grep -r "TODOS_VERSION *= * \"${VERSION}\"" "${path}" >/dev/null; then
echo >&2 "TODOS_VERSION must be set to ${VERSION} in action ${path}"
if ! grep -r "TODOS_VERSION *= * \"${version}\"" "${path}" >/dev/null; then
echo >&2 "TODOS_VERSION must be set to ${version} in action ${path}"
exit_code=1
fi
fi
done
if ! grep "${VERSION}" CHANGELOG.md >/dev/null; then
echo >&2 "${VERSION} must be included in the CHANGELOG.md"
if ! grep "${version}" CHANGELOG.md >/dev/null; then
echo >&2 "${version} must be included in the CHANGELOG.md"
exit_code=1
fi

echo "version=$(echo "$version" | cut -c2-)" >> "$GITHUB_OUTPUT"
exit "${exit_code}"

build-todos:
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0-rc.1] - 2023-08-23
## [0.4.0-rc.2] - 2023-08-23

### Added in 0.4.0-rc.1
### Added in 0.4.0-rc.2

- The `todos` CLI now supports a new JSON output format.
- A new `issue-reopener` GitHub action was added that uses the `todos` CLI to
scan a repository checkout for TODOs referencing a GitHub issue and reopen
issues that have been prematurely closed.

### Removed in 0.4.0-rc.1
### Removed in 0.4.0-rc.2

- The `github-issue-reopener` binary was removed in favor of the
`issue-reopener` action.
Expand Down Expand Up @@ -85,4 +85,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.1.0]: https://github.com/ianlewis/todos/releases/tag/v0.1.0
[0.2.0]: https://github.com/ianlewis/todos/releases/tag/v0.2.0
[0.3.0]: https://github.com/ianlewis/todos/releases/tag/v0.3.0
[0.4.0-rc.1]: https://github.com/ianlewis/todos/releases/tag/v0.4.0-rc.1
[0.4.0-rc.2]: https://github.com/ianlewis/todos/releases/tag/v0.4.0-rc.2
2 changes: 1 addition & 1 deletion actions/issue-reopener/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const core = __importStar(__nccwpck_require__(2186));
const exec = __importStar(__nccwpck_require__(1514));
const github = __importStar(__nccwpck_require__(5438));
const verifier = __importStar(__nccwpck_require__(5854));
const TODOS_VERSION = "v0.4.0-rc.1";
const TODOS_VERSION = "v0.4.0-rc.2";
const SLSA_VERIFIER_VERSION = "v2.3.0";
const SLSA_VERIFIER_SHA256SUM = "ea687149d658efecda64d69da999efb84bb695a3212f29548d4897994027172d";
class ReopenError extends Error {
Expand Down
2 changes: 1 addition & 1 deletion actions/issue-reopener/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion actions/issue-reopener/src/reopener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as github from "@actions/github";

import * as verifier from "./verifier";

const TODOS_VERSION = "v0.4.0-rc.1";
const TODOS_VERSION = "v0.4.0-rc.2";
const SLSA_VERIFIER_VERSION = "v2.3.0";
const SLSA_VERIFIER_SHA256SUM =
"ea687149d658efecda64d69da999efb84bb695a3212f29548d4897994027172d";
Expand Down