OpenAPI spec update from glideapps/glide#31322 #60
This file contains 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: Add helpful comment to PRs | |
env: | |
changelog_path: "api-reference/v2/resources/changelog.mdx" | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
paths: | |
- "openapi/*.json" | |
- "api-reference/**.mdx" | |
- "mint.json" | |
jobs: | |
add-comment: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- id: changed-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
${{ env.changelog_path }} | |
- uses: mshick/add-pr-comment@v2 | |
if: steps.changed-files.outputs.any_changed != 'true' | |
with: | |
message: | | |
It looks like you've made changes to the API docs! :raised_hands: | |
:black_square_button: Update the changelog in `${{ env.changelog_path }}` - [:pencil2: Edit file](https://github.com/${{ github.repository }}/edit/${{ github.head_ref }}/${{ env.changelog_path }}) | [:bulb: Draft with AI](https://update-api-docs-changelog.glide.page/?pr=${{ github.event.number }}) | |
:point_right: You may want to [preview the changes in a Codespace](https://codespaces.new/${{ github.repository }}/pull/${{ github.event.number }}?quickstart=1) | |
- uses: mshick/add-pr-comment@v2 | |
if: steps.changed-files.outputs.any_changed == 'true' | |
with: | |
message: | | |
It looks like you've made changes to the API docs! :raised_hands: | |
:ballot_box_with_check: The changelog has been updated :tada: | |
:point_right: You may want to [preview the changes in a Codespace](https://codespaces.new/${{ github.repository }}/pull/${{ github.event.number }}?quickstart=1) |