aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-08-01 18:21:42 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-08-01 18:21:42 +0300
commit219e0be351436b5bf1ccf5b7c13dbf6c2cdb0986 (patch)
tree48363412eb4e67c7c30f0b6d3f9443a47d4cb484 /.github/workflows
parentf6031f7fb062c89a47fd9fffbe641358f2bd0701 (diff)
fix(ci): skip pr gate in forks
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr-gate.yml11
1 files changed, 1 insertions, 10 deletions
diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml
index dbb674bc..a7013a1c 100644
--- a/.github/workflows/pr-gate.yml
+++ b/.github/workflows/pr-gate.yml
@@ -6,6 +6,7 @@ on:
jobs:
check-contributor:
+ if: github.repository == 'herdrdev/herdr' || github.repository == 'ogulcancelik/herdr'
runs-on: ubuntu-latest
permissions:
contents: read
@@ -17,10 +18,6 @@ jobs:
with:
github-token: ${{ secrets.KANGAL_GITHUB_TOKEN }}
script: |
- 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]
@@ -36,12 +33,6 @@ jobs:
const reopener = context.payload.sender?.login ?? null;
const action = context.payload.action;
const defaultBranch = context.payload.repository.default_branch;
- const repositoryName = context.payload.repository.full_name.toLowerCase();
-
- if (!CANONICAL_REPOSITORIES.has(repositoryName)) {
- core.setFailed(`PR Gate only runs for ${[...CANONICAL_REPOSITORIES].join(' or ')}`);
- return;
- }
const { data: pr } = await github.rest.pulls.get({
owner: context.repo.owner,