Skip to content

ci: add release-please to tag releases as vX.Y.Z - #14

Merged
furedea merged 6 commits into
mainfrom
ci/add-release-please
Nov 8, 2026
Merged

furedea merged 6 commits into
mainfrom
ci/add-release-please

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Closes #13

概要

release-please を入れ,Conventional Commits から release PR を作り,マージで vX.Y.Z のタグと GitHub release を付ける.呼び出し側は @<commit> # vX.Y.Z で固定する.# main だと main が進むたびに zizmor の ref-version-mismatch で全 repo の gha-lint が落ちるため.

変更

  • .github/workflows/release_please.yml: main への push で release-please を動かす(artifact なし).actions/create-github-app-token で,この repo だけを対象にした GitHub App の token(Contents / Issues / Pull requests の write)を client-id で発行して release-please に渡す.RELEASE_APP_CLIENT_ID と RELEASE_APP_PRIVATE_KEY が空なら明確に失敗する.config-file と manifest-file は指定せず,release-please-action の既定名を使う
  • release-please-config.json,.release-please-manifest.json: agent-harness に合わせた既定名.設定は packages['.'] にまとめ,release-type: simple,include-component-in-tag: false,include-v-in-tag: true,initial-version: 1.0.0,changelog-path: CHANGELOG.md.draft や force-tag-creation は使わない(artifact がないため)
  • version.txt: 0.0.0.simple は version.txt を読むが作らないため置く.最初の release PR が initial-version で 1.0.0 に更新する
  • .ls-lint.yml: ハイフン入りの上の 2 つの設定ファイル名を許可
  • README.md: @<sha> # vX.Y.Z の呼び出し例,Renovate で更新される旨,# main を使わない理由,App の権限,設定ファイル名

マージ前に必要なこと

  • GitHub App(Contents / Issues / Pull requests の read and write)をこの repo に install する
  • この repo に variable RELEASE_APP_CLIENT_ID(App の Client ID)と secret RELEASE_APP_PRIVATE_KEY を登録する

未確認

  • CHANGELOG.md の自動生成と,initial-version で最初が 1.0.0 になることは,最初の release PR で確認する

🤖 Generated with Claude Code

@furedea

furedea commented Nov 7, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T08:05:15.845765Z 8fc2a3b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Review summary

No findings for correctness, security, or missing tests.

  • release_please.yml: top-level permissions: {}, the action pinned to a SHA, concurrency without cancellation, and a check that fails clearly when the token is missing all look right. The secret is only exposed on pushes to main.
  • Config and manifest: the simple release type with include-component-in-tag: false, include-v-in-tag: true and initial-version: 1.0.0 should produce v1.0.0 tags. The empty manifest {} is a valid bootstrap; release-please falls back to initial-version when there is no earlier release. As the PR description says, this is worth checking on the first release PR.
  • Generated files: CHANGELOG.md and version.txt match .ls-lint.yml. The default release commit and PR title, chore(main): release …, passes commitlint's config-conventional.

Blocking findings: 0

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 123285dd00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea

furedea commented Nov 7, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Review summary (read-only)

No P0–P3 findings.

What I checked:

  • release_please.yml: permissions: {} at workflow level is fine because release-please uses only the App token. It runs only on push to main, so no untrusted input reaches it. The credential pre-check doesn't print any secret values. The non-cancelling concurrency group stops two release runs from racing.
  • The App token is limited to this repository and to contents, issues and pull-requests write. That's what release-please needs for branches and tags, labels, and PRs. Because the release PR is opened with the App token, it will trigger ci.yml and the all-green gate.
  • Config: the empty manifest plus initial-version: 1.0.0 and include-component-in-tag: false should give a first tag of v1.0.0. The new file names (release_please_config.json, .release_please_manifest.json, release_please.yml, and the generated version.txt / CHANGELOG.md) pass the .ls-lint.yml rules.

Not verified here: I couldn't query the GitHub API in this environment, so I didn't confirm that the pinned SHAs match create-github-app-token v3.3.0 and release-please-action v4.4.1. The gha-lint run in CI (zizmor ref-version-mismatch) should catch a mismatch. As the PR description says, the generated files and the first version will show up in the first release PR.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: c3c0fbff24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea

furedea commented Nov 7, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Review summary

No blocking findings (no P0 or P1).

I checked:

  • release_please.yml: permissions: {} at the top level, and a token minted only for this repository with just the contents, issues and pull-requests write scopes. If the credentials are missing, the workflow stops early with a clear error. Secrets go through env rather than being interpolated into the script.
  • release-please-config.json / .release-please-manifest.json: a single root package of type simple with include-v-in-tag and initial-version: 1.0.0. With the empty manifest, the first release PR should be 1.0.0.
  • .ls-lint.yml: the new .json rule still matches renovate.json and allows the two release-please files, including the dotfile manifest. release_please.yml already passes the workflow regex because underscores are allowed.

One thing I couldn't check from here (no API access): that the pinned SHAs really match create-github-app-token v3.3.0 and release-please-action v4.4.1. Renovate and zizmor's ref-version-mismatch should catch a mismatch in CI.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 73d772dff3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea

furedea commented Nov 7, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Review summary (read-only): no findings.

  • release_please.yml: permissions: {} at the workflow level is fine, because release-please uses the token minted by the GitHub App rather than GITHUB_TOKEN. The token is limited to this repository and to the contents, issues and pull-requests scopes. The credential check fails clearly if the secrets are missing. Both actions are pinned to a SHA. No untrusted input is interpolated into run:.
  • The config and manifest use the release-please-action default names. simple, include-v-in-tag: true and include-component-in-tag: false together give tags of the form vX.Y.Z, which matches the README.
  • The ls-lint rule allows both new JSON filenames. Generated CHANGELOG.md and version.txt already pass the existing rules.

Not verified here: that the pinned SHAs match the tags in their comments (I couldn't query the remote), and the first release PR behaviour that the PR description already lists as unconfirmed.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc92d29b50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "simple",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Seed the version file required by the simple strategy

On the first push to main, this repository has no version.txt (confirmed by a repo-wide search). The pinned release-please 17.3.0 simple strategy attempts to update that file with createIfMissing: false, so the missing update is only warned about and skipped; the release PR will create the changelog and update the manifest but will never create the expected version file. Add an initial version.txt or select a strategy that does not expect one.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 8fc2a3b: added version.txt containing 0.0.0, so the simple release type finds it. The first release PR bumps it to 1.0.0 through initial-version. ls-lint accepts the file name.

@furedea

furedea commented Nov 7, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Review summary: no P0–P3 findings.

Checked:

  • release_please.yml: trigger is push-to-main only (no untrusted input), top-level permissions: {}, actions pinned by SHA, app token scoped to this repo with only contents/issues/pull-requests write, fail-fast credential check. Release PRs opened with the App token will trigger ci.yml (on: pull_request).
  • release-please-config.json / empty manifest: with no existing tags, release-please will use initial-version: 1.0.0. The committed version.txt (0.0.0) is only rewritten by the simple strategy, not read, so it won't affect the version.
  • .ls-lint.yml: the new .json rule matches both config file names.

Nothing blocking.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 8fc2a3bac3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit 0a5a071 into main Nov 8, 2026
13 checks passed
@furedea
furedea deleted the ci/add-release-please branch November 8, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release-please でタグを付け,呼び出しを # vX.Y.Z で固定する

1 participant