Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:

jobs:
claude-review:
# CLAUDE_CODE_OAUTH_TOKEN is a repository secret, and secrets are withheld on
# pull_request events from forks, so the action started with an empty token
# and failed on every fork PR. Skip fork PRs; same-repo PRs still get reviewed.
if: github.event.pull_request.head.repo.full_name == github.repository
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/project-auto-add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:

jobs:
add-to-project:
# Pull requests from forks run without repository secrets, so PROJECT_TOKEN is
# empty there and the action fails with "Input required and not supplied:
# github-token". Skip those runs instead of failing them.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/project-auto-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:

# When a PR is opened → set "In review"
pr-opened:
if: github.event_name == 'pull_request' && github.event.action == 'opened'
# Fork PRs have no PROJECT_TOKEN (secrets are withheld on pull_request from forks).
if: github.event_name == 'pull_request' && github.event.action == 'opened' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Get project item ID
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:

# When a PR is merged → set PR + linked issues to "Done"
pr-merged:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Move PR to Done
Expand Down
Loading