Skip to content

Commit 260e2be

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

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.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@e9948a58b6df698d11c437eb191a4a8af57d89c2
24+
with:
25+
openai_api_key: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)