Repository navigation
Document dashboard quality scores in usage APIs #211131
Workflow file for this run
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: Send PR Approval Status | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| types: ["review_requested", "synchronize", "opened", "reopened"] | |
| pull_request_review: | |
| types: | |
| - submitted | |
| - dismissed | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| send_status: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| if: > | |
| github.event.pull_request.draft == false && | |
| !contains(github.event.pull_request.labels.*.name, 'ci/skip') && | |
| !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') && | |
| contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/') | |
| steps: | |
| - name: Get GitHub token | |
| id: octo-sts | |
| uses: DataDog/dd-octo-sts-action@96a25462dbcb10ebf0bfd6e2ccc917d2ab235b9a # v1.0.4 | |
| with: | |
| scope: ddoghq/datadog-api-spec | |
| policy: documentation.github.post-review-status.pull-request | |
| - name: Post PR review status check | |
| uses: DataDog/github-actions/post-review-status@65b4875f33ad773d7ba4b005a2cb5f35020295f3 # v2.3.0 | |
| with: | |
| github-token: ${{ steps.octo-sts.outputs.token }} | |
| owner: ddoghq | |
| repo: datadog-api-spec | |
| context: documentation/master |