Automate GitHub Projects with Actions
GitHub Projects is a simple way to track work across repositories, but getting every new issue and pull request onto a central board without Enterprise features leaves you doing it by hand. That is exactly the kind of task that should be automated.
The approach
Add a small GitHub Actions workflow to each repository that sends newly opened issues and PRs to a single project board. Here is the workflow:
|
|
It uses the actions/add-to-project
action, listens to issues
and pull_request
events when they are opened, and targets your project via its URL. Authentication is via a repo secret named ADD_TO_PROJECT_PAT
.
Token setup
Create a Personal Access Token with the appropriate scopes and store it as ADD_TO_PROJECT_PAT
in each repo’s secrets.
Docs: GitHub Projects • Personal access tokens • Workflow syntax (all on docs.github.com)
What it delivers
- All newly opened issues and PRs show up on the board automatically.
- One place to scan the day’s work across multiple repositories.
- No upgrade required to use the automation.
Optional extensions
- Trigger on more events like
issue_comment
. - Route items to specific columns based on labels.
- Filter to include only certain issues.
Simple file, big quality of life improvement.
Thanks for reading. If you have a neat column assignment pattern for Projects, share it so others can try it too.