-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (39 loc) · 1.2 KB
/
ai-changelog.yml
File metadata and controls
42 lines (39 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Generate Changelog and Validate Docs for PR
on:
issue_comment:
types:
- created
permissions:
contents: read
jobs:
changelog:
name: Generate Changelog for PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
if: >
github.event.issue.pull_request &&
github.event.comment.body == '/changelog'
steps:
- name: Generate changelog for PR
uses: Automattic/vip-actions/ai-changelog-generator@64cb27606455c925183e07065f050846d69b2120 # trunk
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
docs-doctor:
name: Analyze docs.wpvip.com for inconsistencies
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
if: >
github.event.issue.pull_request &&
github.event.comment.body == '/docs-doctor'
steps:
- name: Generate Report
uses: Automattic/vip-actions/docs-doctor@64cb27606455c925183e07065f050846d69b2120 # trunk
with:
url: https://docs.wpvip.com
sitemap_url: https://docs.wpvip.com/page-sitemap.xml
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
pr_number: ${{ github.event.issue.number }}