Uh oh!
There was an error while loading. Please reload this page.
feat: allow conditional skip on success and fail comments - #874
Conversation
…when "failCommentCondition" is "false"`
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
babblebey
left a comment
There was a problem hiding this comment.
Hello @fgreinacher,
Kindly help me clarify these observations... see review comments..
…t comment on existing issues when "failCommentCondition" is disallows it`
Uh oh!
There was an error while loading. Please reload this page.
…mentCondition" is "false"`
JonasSchubert
left a comment
There was a problem hiding this comment.
As @fgreinacher said, awesome you picked that up so quickly, @babblebey , thanks a lot! Just found a small typo in one unit test description, beside that it looks good for me.
Will you also add unit tests for success.js?
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jonas Schubert <jonas.schubert.projects@web.de>
…sociatedPR using the "successCommentCondition"`
…R when "successCommentCondition" disables it`
…github.com/semantic-release/github into feat/conditional-success-fail-comment-skip
…R when "successCommentCondition" disables it`
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
…github.com/semantic-release/github into feat/conditional-success-fail-comment-skip
…github.com/semantic-release/github into feat/conditional-success-fail-comment-skip
…ssues created by "Bots"'`
🎉 This issue has been resolved in version 10.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR Intend to transfer the flow from semantic-release/gitlab#730 to the github plugin. It introduces the new properties into the configuration option, which are used to perform the stated function.
failCommentCondition- used to state the conditions by which thefailCommentis posted or notsuccessCommentCondition- used to state the conditions by which thesuccessCommentis posted or not and where it is postedChanges Made
failTitle,failCommentandsuccessCommentset asfalseissuesparsed from pull request body and commit messages to aidsuccessCommentConditionfiltering (more datails in feat: allow conditional skip on success and fail comments #874 (comment))buildRelatedIssuesQuery- Builds GraphQL query for fetching PRs/Commits related Issues to a list of commit hash (sha) from parsedIssue numberbuildAssociatedPRsQuery- Builds GraphQL query for fetching associated PRs to a list of commit hash (sha)buildIssuesOrPRsFromResponseNode- Build associatedPRs or RelatedIssues object (into issue-like object withpull_requestproperty) from the GraphQL repository responseRelated Issue
Closes#360
Closes#359
Closes#666
Resolves#529
Screencast/Screenshot
"successCommentCondition": false- Do not add Success comment to any Issue or PRscreencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.3.mp4
"successCommentCondition": "<% return issue.pull_request; %>"- Add Success comment to only Pull Requestsscreencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.4.mp4
"successCommentCondition": "<% return !issue.pull_request; %>"- Add Success comment to only Issuesscreencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.5.mp4