diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-29 22:23:20 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-29 22:23:20 +0300 |
| commit | 2313fb8ac3746faf3e971ef955a5499d8618d2ee (patch) | |
| tree | 7651ce0c6695fe0a5aa8472eb09bbd0fa60e61e6 /.github/workflows | |
| parent | f6060cf682f69ef8302c25e8924c0b27aef7ae16 (diff) | |
ci: allow repository organization migration
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; } |
