|
19 | 19 | github.event.issue.pull_request && |
20 | 20 | github.event.comment.body == '/changelog' |
21 | 21 | 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 | + |
22 | 29 | - name: Verify OpenAI API Key is available |
23 | 30 | run: | |
24 | 31 | if [ -z "${OPENAI_API_KEY}" ]; then |
|
47 | 54 | - name: Generate Changelog Entry |
48 | 55 | if: steps.check_access.outputs.authorized == 'true' |
49 | 56 | id: changelog |
50 | | - uses: Automattic/vip-actions/ai-changelog@2ba3d4d21f3bf82249fd26b517b057dda45d8367 # trunk |
| 57 | + uses: Automattic/vip-actions/ai-changelog@1ca5877971f93f05fceaa0efd119c40218c1da1e # trunk |
51 | 58 | with: |
52 | 59 | pr_number: ${{ github.event.issue.number }} |
53 | 60 | openai_api_key: ${{ secrets.OPENAI_API_KEY }} |
|
60 | 67 | issue-number: ${{ github.event.issue.number }} |
61 | 68 | comment-author: 'github-actions[bot]' |
62 | 69 | body-includes: '## AI-Generated Changelog Entry' |
| 70 | + direction: last |
63 | 71 |
|
64 | 72 | - name: Post Changelog Comment |
65 | 73 | if: > |
|
71 | 79 | body: | |
72 | 80 | ## AI-Generated Changelog Entry |
73 | 81 |
|
74 | | - ${{ steps.changelog.outputs.changelog-entry }} |
| 82 | + ${{ steps.changelog.outputs.changelog_entry }} |
75 | 83 |
|
76 | 84 | comment-id: ${{ steps.fc.outputs.comment-id }} |
77 | 85 | 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