[GitHubDiscussions] Add the variant badge of github discussion (answered/unanswered) #8168
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: Danger | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened, synchronize] | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| statuses: write | |
| jobs: | |
| danger: | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'dependabot[bot]' && github.actor != 'repo-ranger[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| # Pin below Node 22.23.0 which regressed node-fetch@2 (https://github.com/nodejs/node/issues/63989). | |
| node-version: '22.22' | |
| - name: Danger | |
| run: npm run danger ci | |
| env: | |
| # https://github.com/gatsbyjs/gatsby/pull/11555 | |
| NODE_ENV: test | |
| GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' |