@@ -23,6 +23,18 @@ inputs:
2323 description : " Disable auto-commit step"
2424 required : false
2525 default : " false"
26+ start-message :
27+ description : " Message to include in the start comment"
28+ required : false
29+ default : " "
30+ success-message :
31+ description : " Message to include in the success comment"
32+ required : false
33+ default : " "
34+ failure-message :
35+ description : " Message to include in the failure comment"
36+ required : false
37+ default : " "
2638
2739runs :
2840 using : " composite"
@@ -95,11 +107,10 @@ runs:
95107 comment-id : ${{ inputs.comment-id }}
96108 issue-number : ${{ inputs.pr }}
97109 body : |
98- > **Running `poe ${{ steps.resolve-command.outputs.command }}`...**
110+ > ${{ inputs.start-message || format(' **Running `poe {0}`...**', steps.resolve-command.outputs.command) }}
99111 >
100- > [Link to job logs.][1]
112+ > [Link to job logs.](${{ steps.vars.outputs.run-url }})
101113 >
102- > [1]: ${{ steps.vars.outputs.run-url }}
103114
104115 - name : Checkout PR
105116 if : inputs.pr
@@ -202,18 +213,17 @@ runs:
202213 comment-id : ${{ steps.comment-start.outputs.comment-id }}
203214 reactions : hooray
204215 body : >
205- ✅ Poe command `${{ steps.resolve-command.outputs.command }}` completed successfully. ( ${{ steps.auto-commit.outputs.commit_hash }})
216+ 🤖 Auto-commit successful: ${{ steps.auto-commit.outputs.commit_hash }}
206217
207218 - name : Append no-op comment
208219 if : >
209220 steps.comment-start.outputs.comment-id
210- && steps.auto-commit.outputs.changes_detected != 'true'
211221 uses : peter-evans/create-or-update-comment@v4
212222 with :
213223 comment-id : ${{ steps.comment-start.outputs.comment-id }}
214224 reactions : " +1"
215- body : >
216- 🟦 Poe command `${{ steps.resolve-command.outputs.command }}` completed successfully.
225+ body : |
226+ > ${{ inputs.success-message || format(' 🟦 Poe command `{0}` completed successfully.', steps.resolve-command.outputs.command) }}
217227
218228 - name : Append failure comment
219229 if : failure() && steps.comment-start.outputs.comment-id
@@ -222,7 +232,7 @@ runs:
222232 comment-id : ${{ steps.comment-start.outputs.comment-id }}
223233 reactions : confused
224234 body : >
225- ❌ Poe command ` ${{ steps.resolve- command.outputs.command }} ` failed. Please inspect the logs.
235+ ${{ inputs.failure-message || format('❌ Poe command `{0} ` failed. Please inspect the logs.', steps.resolve-command.outputs.command) }}
226236
227237 # Create a new PR if no PR was provided
228238
@@ -242,9 +252,8 @@ runs:
242252 It contains the output of the command `${{ steps.resolve-command.outputs.command }}`.
243253 Please review the changes and consider merging them if they are acceptable.
244254
245- [Link to job logs.][1]
255+ [Link to job logs.](${{ steps.vars.outputs.run-url }})
246256
247- [1]: ${{ steps.vars.outputs.run-url }}
248257 branch : auto-commit/poe-processor-${{ github.run_id }}
249258 draft : true
250259 commit-user-name : Octavia Squidington III
0 commit comments