Skip to content

Commit 507e7a9

Browse files
committed
fix(pre-commit): Fix message and preserve comment
1 parent 75941cd commit 507e7a9

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/pre-commit-status.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -140,25 +140,15 @@ jobs:
140140
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
141141
with:
142142
pr-number: ${{ steps.pr-info.outputs.pr_number }}
143-
comment-tag: pre-commit-failure
144143
message: |
145144
## ⚠️ Pre-commit Hooks Failed
146145
147-
Some pre-commit hooks failed and require manual fixes.
146+
Some pre-commit hooks failed and require manual fixes. Please see the detailed error report below.
148147
149148
**What to do:**
150-
1. 🔧 Fix the issues locally in your code
151-
2. 💾 Commit and push your changes
152-
3. 🔄 The hooks will run again automatically
149+
1. 📋 [**View the detailed error report**](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}) to see which hooks failed
150+
2. 🔧 Fix the issues locally in your code
151+
3. 💾 Commit and push your changes
152+
4. 🔄 The hooks will run again automatically
153153
154-
[🔗 View detailed error log](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }})
155-
156-
- name: Remove pre-commit failure comment if resolved
157-
if: |
158-
steps.pr-info.outputs.artifacts_found == 'true' &&
159-
steps.pr-info.outputs.pre_commit_outcome == 'success'
160-
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
161-
with:
162-
pr-number: ${{ steps.pr-info.outputs.pr_number }}
163-
comment-tag: pre-commit-failure
164-
mode: delete
154+
**Need help?** Ask in the comments below.

0 commit comments

Comments
 (0)