Skip to content

Commit dfa5302

Browse files
committed
ci: update AI Changelog workflow
1 parent 41aa143 commit dfa5302

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/ai-changelog.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
github.event.issue.pull_request &&
2020
github.event.comment.body == '/changelog'
2121
steps:
22+
- name: Acknowledge request
23+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
24+
with:
25+
issue-number: ${{ github.event.issue.number }}
26+
reactions: 'eyes'
27+
comment-id: ${{ github.event.comment.id }}
28+
2229
- name: Verify OpenAI API Key is available
2330
run: |
2431
if [ -z "${OPENAI_API_KEY}" ]; then
@@ -47,7 +54,7 @@ jobs:
4754
- name: Generate Changelog Entry
4855
if: steps.check_access.outputs.authorized == 'true'
4956
id: changelog
50-
uses: Automattic/vip-actions/ai-changelog@2ba3d4d21f3bf82249fd26b517b057dda45d8367 # trunk
57+
uses: Automattic/vip-actions/ai-changelog@1ca5877971f93f05fceaa0efd119c40218c1da1e # trunk
5158
with:
5259
pr_number: ${{ github.event.issue.number }}
5360
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
@@ -75,3 +82,21 @@ jobs:
7582
7683
comment-id: ${{ steps.fc.outputs.comment-id }}
7784
edit-mode: replace
85+
86+
- name: Set status (success)
87+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
88+
if: success()
89+
with:
90+
issue-number: ${{ github.event.issue.number }}
91+
reactions: 'hooray'
92+
comment-id: ${{ github.event.comment.id }}
93+
reactions-edit-mode: replace
94+
95+
- name: Set status (failure)
96+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
97+
if: failure()
98+
with:
99+
issue-number: ${{ github.event.issue.number }}
100+
reactions: '-1'
101+
comment-id: ${{ github.event.comment.id }}
102+
reactions-edit-mode: replace

0 commit comments

Comments
 (0)