Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOTICKET adding automatic adding to Github Project #67

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

jamesepatrick
Copy link
Contributor

Adding automatic adding to the ALL PR's Project.

This automatically will run a github action when a PR is opened, and will add the PR to the All PRs project.

In order to enable this I had to create a personal access token (PAT) to allow read access to repos & projects. This has been stored in Github Using the ADD_TO_PROJECT_PAT secret. See here for more
The issue

The documentation[fn:1] for this suggests that this can only be done per action with a limit to the number of repos you can add per org of 5. There is a github feature request for this[fn:2], but it looks like the best way to add this functionality.

[fn:1] https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically
[fn:2] https://github.com/marketplace/actions/add-to-github-projects
[fn:3] https://github.com/orgs/greenfiling/projects/1/workflows/13348487

@jamesepatrick jamesepatrick requested a review from a team January 29, 2024 17:02
@jamesepatrick jamesepatrick merged commit 3a2e494 into main Jan 29, 2024
1 check passed
@jamesepatrick jamesepatrick deleted the feature/NOTICKET_add_to_project branch January 29, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants