-
Notifications
You must be signed in to change notification settings - Fork 20
chore: add auto-project workflow #14
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
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 to automatically add issues and pull requests to the RequestNetwork organization's project board. The workflow triggers on issue and PR opens, using a reusable workflow from RequestNetwork/.github and passing the PROJECT_TOKEN secret. Key points:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant GitHub as GitHub Event
participant Workflow as auto-project.yml
participant ReusableWF as RequestNetwork/.github<br/>(add-to-project.yml)
participant ProjectAPI as GitHub Project API
User->>GitHub: Open Issue or PR
GitHub->>Workflow: Trigger workflow (on: opened)
Workflow->>ReusableWF: Call reusable workflow with PROJECT_TOKEN
alt Issue or PR without linked issue
ReusableWF->>ProjectAPI: Add item to project board
ProjectAPI-->>ReusableWF: Success
else PR with linked issue
ReusableWF-->>ReusableWF: Skip (linked issue tracked instead)
end
ReusableWF-->>Workflow: Complete
Workflow-->>GitHub: Workflow completed
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 1 comment
|
|
||
| jobs: | ||
| add-to-project: | ||
| uses: RequestNetwork/.github/.github/workflows/add-to-project.yml@main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: The reusable workflow path uses @main which references the latest version of the shared workflow. This can cause unexpected behavior changes if the shared workflow is updated without this repository being aware of the changes. Consider pinning to a specific commit SHA (e.g., @abc1234) or tag version for reproducibility and to control when workflow behavior changes.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/auto-project.yml
Line: 11:11
Comment:
**logic:** The reusable workflow path uses `@main` which references the latest version of the shared workflow. This can cause unexpected behavior changes if the shared workflow is updated without this repository being aware of the changes. Consider pinning to a specific commit SHA (e.g., `@abc1234`) or tag version for reproducibility and to control when workflow behavior changes.
How can I resolve this? If you propose a fix, please make it concise.
Adds workflow to automatically add issues and PRs to the project board.
Uses the reusable workflow from RequestNetwork/.github.