Skip to content

Commit 7217540

Browse files
committed
ci: add AI Changelog workflow
1 parent a8dfcc8 commit 7217540

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ai-changelog.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Generate Changelog for PR
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
changelog:
13+
name: Generate Changelog for PR
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
if: >
19+
github.event.issue.pull_request &&
20+
github.event.comment.body == '/changelog'
21+
steps:
22+
- name: Generate changelog for PR
23+
uses: Automattic/vip-actions/ai-changelog-generator@a6fbe0e57d8f43f81d8b8f245c9c0d2b464ac4f2
24+
with:
25+
openai_api_key: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)