Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

ci: allow repository organization migration

Ogulcan Celik2313fb8ac374
diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml
index 6d2e25be4..e0cb3e4df 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;
}