Generate Changelog and Validate Docs for PR #708
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |