Skip to content

Commit 8bab3a5

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

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/ai-changelog.yml

Lines changed: 28 additions & 2 deletions
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 }}
@@ -60,6 +67,7 @@ jobs:
6067
issue-number: ${{ github.event.issue.number }}
6168
comment-author: 'github-actions[bot]'
6269
body-includes: '## AI-Generated Changelog Entry'
70+
direction: last
6371

6472
- name: Post Changelog Comment
6573
if: >
@@ -71,7 +79,25 @@ jobs:
7179
body: |
7280
## AI-Generated Changelog Entry
7381
74-
${{ steps.changelog.outputs.changelog-entry }}
82+
${{ steps.changelog.outputs.changelog_entry }}
7583
7684
comment-id: ${{ steps.fc.outputs.comment-id }}
7785
edit-mode: replace
86+
87+
- name: Set status (success)
88+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
89+
if: success()
90+
with:
91+
issue-number: ${{ github.event.issue.number }}
92+
reactions: 'hooray'
93+
comment-id: ${{ github.event.comment.id }}
94+
reactions-edit-mode: replace
95+
96+
- name: Set status (failure)
97+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
98+
if: failure()
99+
with:
100+
issue-number: ${{ github.event.issue.number }}
101+
reactions: '-1'
102+
comment-id: ${{ github.event.comment.id }}
103+
reactions-edit-mode: replace

0 commit comments

Comments
 (0)