Elffuss BraidHub

kikocis/continue public

Merge pull request #5678 from continuedev/nate/no-cla-forks

ci: :green_heart: don't run cla assistant on fork repositories
Changeset034d0b6877695ce2f85ae44443c536970f59384eabd17ad549401bfad3b6f7b1
AuthorPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-05-14 21:09 -07:00
CommitterGitHub <noreply@github.com> · 2025-05-14 21:09 -07:00
Parentsaf8dfc66e16a, c91484c28855

Browse the files at this changeset

1 file changed

modified .github/workflows/cla.yaml +7 −5
@@ -1,9 +1,9 @@
11 name: "CLA Assistant"
22 on:
33 issue_comment:
4- types: [ created ]
4+ types: [created]
55 pull_request_target:
6- types: [ opened,closed,synchronize ]
6+ types: [opened, closed, synchronize]
77
88 permissions:
99 actions: write
@@ -14,6 +14,8 @@
1414 jobs:
1515 CLAAssistant:
1616 runs-on: ubuntu-latest
17+ # Only run this workflow on the main repository (continuedev/continue)
18+ if: github.repository == 'continuedev/continue'
1719 steps:
1820 - name: "CLA Assistant"
1921 if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
@@ -21,7 +23,7 @@
2123 env:
2224 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2325 with:
24- path-to-signatures: 'signatures/version1/cla.json'
25- path-to-document: 'https://github.com/continuedev/continue/blob/main/docs/docs/CLA.md'
26+ path-to-signatures: "signatures/version1/cla.json"
27+ path-to-document: "https://github.com/continuedev/continue/blob/main/docs/docs/CLA.md"
2628 branch: cla-signatures
27- allowlist: dependabot[bot]
No newline at the end of the file
29+ allowlist: dependabot[bot]