Use merge-gatekeeper (#1245)

This commit is contained in:
Evan Simkowitz 2024-11-08 11:29:25 -08:00 committed by GitHub
parent 02c8827483
commit b24e2d917d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 22 deletions

View File

@ -1,22 +0,0 @@
# This workflow is a dummy workflow that runs whenever `deploy-docsite.yml` doesn't run to trick the GitHub Actions system into seeing `Docsite and Storybook CI/CD` as a valid status check.
# See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
name: Docsite and Storybook CI/CD
on:
pull_request:
branches:
- main
paths-ignore:
- "docs/**"
- "storybook/**"
- "**/*.story.*"
- "**/*.stories.*"
- ".github/workflows/deploy-docsite.yml"
jobs:
build:
name: Build Docsite
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required."'

26
.github/workflows/merge-gatekeeper.yml vendored Normal file
View File

@ -0,0 +1,26 @@
---
name: Merge Gatekeeper
on:
pull_request:
branches:
- main
- master
jobs:
merge-gatekeeper:
runs-on: ubuntu-latest
# Restrict permissions of the GITHUB_TOKEN.
# Docs: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
checks: read
statuses: read
steps:
- name: Run Merge Gatekeeper
# NOTE: v1 is updated to reflect the latest v1.x.y. Please use any tag/branch that suits your needs:
# https://github.com/upsidr/merge-gatekeeper/tags
# https://github.com/upsidr/merge-gatekeeper/branches
uses: upsidr/merge-gatekeeper@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ignored: Test Onboarding, Analyze (go), Analyze (javascript-typescript), License Compliance