ci: update status when action triggered by issue comment - #248
Conversation
issue comment triggers do not automatically update check status in the PR, so use separate steps to update them, similar to how the tft.yml workflow works. For issue comment workflows, ensure that the head_sha is set early in the workflow and the status is only updated if there is a head_sha. Create a variable for context so it is created in one place and used in several places in the workflow. Ensure that the first steps in the workflow are to get the head_sha and set the status to In Progress. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (11)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughGitHub Actions workflows now resolve pull request head commits for issue-comment runs, set pending commit statuses before execution, and report final job results afterward. The Testing Farm workflow centralizes status SHA and context outputs. ChangesCommit status lifecycle
Merge Risk: ⚪ Minimal · up to Issue-comment-triggered workflows now publish pending and final statuses against resolved pull-request head commits. The supplied workflow review found no current merge-blocking risk. 🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
Full details: Description checkExplanation The description clearly explains the reason, result, and implementation objectives. It does not use the required template headings and does not explicitly state whether Jira or BZ tickets apply, but the content is otherwise complete and relevant. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (11 skipped: 11 unsupported.) Full details: Description FormatExplanation The PR description does not follow the required section format. The repository template defines Resolution Rewrite the PR description using the bug-fix template. Include labeled
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
issue comment triggers do not automatically update check status in the PR, so
use separate steps to update them, similar to how the tft.yml workflow works.
For issue comment workflows, ensure that the head_sha is set early in the
workflow and the status is only updated if there is a head_sha.
Create a variable for context so it is created in one place and used in several
places in the workflow.
Ensure that the first steps in the workflow are to get the head_sha and set the
status to In Progress.
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by CodeRabbit