Repository navigation
Conversation
Set it to false to post a comment only when someone still needs to sign, and rely on the check or status otherwise. An existing comment is still updated, and an opener mismatch is still posted.
The action no longer comments on a pull request whose contributors have all signed; the check or status reports the result. Set comment-when-signed: true to keep the all-signed comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The action comments on a pull request only when someone still needs to sign. When everyone has already signed, it posts nothing and the
clacheck or status reports the result. A newcomment-when-signedinput,falseby default, brings back the all-signed comment when set totrue.This is a compatibility change: workflows that bump to this version stop getting a comment on pull requests whose contributors have all signed, including any
custom-allsigned-prcommenttext, unless they setcomment-when-signed: true.By default:
require-opener-as-author: false, flags an opener who isn't a commit author.The change is in src/pullrequest/pullRequestComment.ts, with the input in action.yml and src/shared/getInputs.ts, and documented in the README and CHANGELOG.
dist/index.jsis rebuilt.Tests
Unit tests in __tests__/unit/pullRequestComment.test.ts cover each case above and the opt-in. __tests__/integration/scenarios.test.ts runs an already-signed contributor through the whole action with and without the input. Tests that checked the all-signed comment now set
comment-when-signed: true. The full suite (185 passed, 1 skipped) andnpm run lintpass locally.Known limitations
.cla.json, and their workflows skip Dependabot.action.ymldefault. The unit tests use the code's fallback, which matches it.After merge
Bump the pinned commit in
cla.ymlandactions.lockin each repository that uses the action. No input needs setting.Review
Round 1: Codex, Claude Opus, and Claude Sonnet reviewed the opt-in version of the input against
master. Copilot didn't run because its monthly quota was used up. No correctness defects. Fixed: the code comment on the opener-mismatch exception, the CHANGELOG wording, and missing tests for a non-failing opener mismatch and for updating an existing comment.Round 2: Opus and Sonnet reviewed the switch to a
falsedefault. No code defects. Fixed: thecustom-allsigned-prcommentdocs, which didn't say it now posts only on an existing comment by default, and a test title. The missing bundle-default test is listed under known limitations.All reviews were static. The test suite and lint ran locally after the last fixes, which touched only docs and tests.