diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/pr-gate.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml index 6d2e25be..e0cb3e4d 100644 --- a/.github/workflows/pr-gate.yml +++ b/.github/workflows/pr-gate.yml @@ -17,7 +17,10 @@ jobs: with: github-token: ${{ secrets.KANGAL_GITHUB_TOKEN }} script: | - const CANONICAL_REPOSITORY = 'ogulcancelik/herdr'; + const CANONICAL_REPOSITORIES = new Set([ + 'ogulcancelik/herdr', + 'herdrdev/herdr', + ]); const KANGAL_USER_ID = 285672167; const CI_ONLY_PR_AUTHOR_IDS = new Set([ 49699333, // dependabot[bot] @@ -35,8 +38,8 @@ jobs: const defaultBranch = context.payload.repository.default_branch; const repositoryName = context.payload.repository.full_name.toLowerCase(); - if (repositoryName !== CANONICAL_REPOSITORY) { - core.setFailed(`PR Gate only runs for ${CANONICAL_REPOSITORY}`); + if (!CANONICAL_REPOSITORIES.has(repositoryName)) { + core.setFailed(`PR Gate only runs for ${[...CANONICAL_REPOSITORIES].join(' or ')}`); return; } |
