11# .github/workflows/pr-quality-check.yml
22name : PR Quality check
33
4+ # Add a constant anchor we can always find
5+ env :
6+ PR_QUALITY_ANCHOR : " <!-- pr-quality-anchor -->"
7+
48on :
59 pull_request :
610 types : [opened, edited, synchronize, labeled, unlabeled, reopened]
@@ -102,7 +106,7 @@ jobs:
102106 with :
103107 issue-number : ${{ github.event.pull_request.number }}
104108 comment-author : github-actions[bot]
105- body-includes : " ### PR Quality Check "
109+ body-includes : ${{ env.PR_QUALITY_ANCHOR }}
106110
107111 - name : Create or update failure comment
108112 if : failure()
@@ -112,6 +116,7 @@ jobs:
112116 comment-id : ${{ steps.find_comment.outputs.comment-id }}
113117 edit-mode : replace
114118 body : |
119+ <!-- pr-quality-anchor -->
115120 ### PR Quality Check ❌ Failed
116121
117122 The following issues were detected:
@@ -123,8 +128,6 @@ jobs:
123128 2. At least one `pr:` label exists (e.g., `pr:bug`, `pr:new-feature`).
124129 3. Sections `## Goal`, `## Implementation`, and `## Testing` contain content.
125130
126- _This comment updates automatically when you edit the PR title/body or labels._
127-
128131 - name : Create or update success comment
129132 if : success()
130133 uses : peter-evans/create-or-update-comment@v4
@@ -133,6 +136,7 @@ jobs:
133136 comment-id : ${{ steps.find_comment.outputs.comment-id }}
134137 edit-mode : replace
135138 body : |
139+ <!-- pr-quality-anchor -->
136140 ### PR Quality Check ✅ Passed
137141
138142 All required conditions are satisfied:
0 commit comments