Ensure all comment-triggered workflows return meaningful completion comments#332
Ensure all comment-triggered workflows return meaningful completion comments#332greenc-FNAL merged 4 commits intomainfrom
Conversation
Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com>
|
@copilot Are you sure |
Switch from markdownlint-cli2-action to direct markdownlint-cli2 invocation to ensure consistent behavior with other fix workflows. This resolves an issue where the workflow would acknowledge invocation with "eyes" emoji but not post a completion comment when no changes were needed. The third-party action may have been operating in a different context that prevented git status from detecting changes properly. Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com>
You're correct. I investigated and found that I've fixed this in commit 9cb3280 by switching to directly invoking |
|
@phlexbot format |
|
No automatic markdownlint fixes were necessary. |
|
No automatic cmake-format fixes were necessary. |
|
No automatic jsonnetfmt fixes were necessary. |
|
No automatic clang-format fixes were necessary. |
There was a problem hiding this comment.
Pull request overview
This PR updates comment-triggered GitHub Actions workflows to provide clearer user feedback by ensuring markdown-fix reliably produces fix commits/comments and cmake-build posts an explicit completion comment for @phlexbot build.
Changes:
- Reworked
markdown-fixto runmarkdownlint-cli2directly in the checked-out PR directory to ensurehandle-fix-commitcan detect and commit changes reliably. - Added a
build-completejob tocmake-buildto comment the overall build/test outcome back on the PR when triggered via PR comment.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/markdown-fix.yaml | Replaces the markdownlint composite action with explicit Node setup + markdownlint-cli2 --fix run in the checkout directory. |
| .github/workflows/cmake-build.yaml | Adds a post-build job that comments success/failure (and links the run) back to the PR for comment-triggered builds. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment-triggered workflows should acknowledge invocation and report completion status. This PR ensures all seven comment-triggered workflows provide consistent acknowledgment and completion feedback.
Changes
1. Added completion comment to
cmake-buildworkflowbuild-completejob tocmake-build.yamlthat posts completion status when triggered by@phlexbot buildissue_commentevents (usesalways()to run regardless of build outcome)2. Fixed
markdown-fixworkflow to ensure reliable completion commentsDavidAnson/markdownlint-cli2-actionto directly invokingmarkdownlint-cli2handle-fix-commitaction from properly detecting file changes viagit statusworking-directory)Result
All seven comment-triggered workflows now provide consistent behavior:
get-pr-infoaction)Workflows verified:
clang-format-fix- Useshandle-fix-commitfor completion commentscmake-format-fix- Useshandle-fix-commitfor completion commentsjsonnet-format-fix- Useshandle-fix-commitfor completion commentspython-fix- Useshandle-fix-commitfor completion commentsmarkdown-fix- FIXED: Now runs markdownlint-cli2 directly to ensure reliable completion commentsclang-tidy-fix- Useshandle-fix-commitfor completion commentscmake-build- NEW: Now posts a completion comment with build/test resultsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.