Conversation
WalkthroughA new GitHub Actions workflow is added at Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR adds a GitHub Actions workflow that automatically adds newly opened issues and pull requests to the organization's project board. The workflow delegates to a reusable workflow from
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant GitHub
participant Workflow as auto-project.yml
participant Reusable as RequestNetwork/.github<br/>add-to-project.yml
participant Project as GitHub Project Board
alt Issue Opened
User->>GitHub: Create Issue
GitHub->>Workflow: Trigger (on: issues.opened)
Workflow->>Reusable: Call reusable workflow
Note over Workflow,Reusable: Pass PROJECT_TOKEN secret
Reusable->>Project: Add issue to project board
Project-->>Reusable: Confirm added
else Pull Request Opened (no linked issue)
User->>GitHub: Create Pull Request
GitHub->>Workflow: Trigger (on: pull_request.opened)
Workflow->>Reusable: Call reusable workflow
Note over Workflow,Reusable: Pass PROJECT_TOKEN secret
Reusable->>Reusable: Check for linked issues
Reusable->>Project: Add PR to project board
Project-->>Reusable: Confirm added
else Pull Request Opened (with linked issue)
User->>GitHub: Create Pull Request<br/>(with linked issue)
GitHub->>Workflow: Trigger (on: pull_request.opened)
Workflow->>Reusable: Call reusable workflow
Note over Workflow,Reusable: Pass PROJECT_TOKEN secret
Reusable->>Reusable: Check for linked issues
Reusable->>Reusable: Skip (issue already tracked)
end
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In @.github/workflows/auto-project.yml:
- Line 11: The reusable workflow reference currently uses a mutable ref ("uses:
RequestNetwork/.github/.github/workflows/add-to-project.yml@main"); replace the
`@main` ref with an immutable tag or commit SHA (e.g., `@v1.2.3` or
`@<commit-sha>`) so the action is pinned; update the "uses" line to point to
that tag/SHA and ensure any CI docs or callers are updated to the chosen release
tag if needed.
- Around line 6-13: The job-level guard is using invalid syntax by referencing
secrets in the if: expression; update the add-to-project job to expose the
secret as a job-level env var (e.g., set env: HAS_PROJECT_TOKEN: ${{
secrets.PROJECT_TOKEN }}) and then change the if: condition to reference that
env var (e.g., if: ${{ env.HAS_PROJECT_TOKEN != '' }}), keeping the secrets:
PROJECT_TOKEN mapping for the reusable workflow; this preserves the secret usage
for the uses: RequestNetwork/... add-to-project job while avoiding direct secret
references in the if: expression.
Adds workflow to automatically add issues and PRs to the project board.
Uses the reusable workflow from RequestNetwork/.github.
Closes RequestNetwork/public-issues#130