From 2313fb8ac3746faf3e971ef955a5499d8618d2ee Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 29 Jul 2026 22:23:20 +0300 Subject: ci: allow repository organization migration --- .github/workflows/pr-gate.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.github') 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; } -- cgit v1.2.3