Sha256: 9a38234d4fb57b3e08cfba5c94ed2343d2da5f1dbfb4597fe527224329bce320

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

name: Send PR Approval Status

permissions: 
  contents: read
  pull-requests: write

on:
  pull_request:
    branches:
      - master
    types: ["review_requested", "synchronize", "opened", "reopened"]
  pull_request_review:
    types:
      - submitted
      - dismissed

jobs:
  send_status:
    runs-on: ubuntu-latest
    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 App token
        id: get_token
        uses: tibdex/github-app-token@v1
        with:
          app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
          private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
          repository: DataDog/datadog-api-spec
      - name: Post PR review status check
        uses: DataDog/github-actions/post-review-status@v2
        with:
          github-token: ${{ steps.get_token.outputs.token }}
          repo: datadog-api-spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 .github/workflows/approved_status.yml
datadog_api_client-2.27.1 .github/workflows/approved_status.yml