-
Notifications
You must be signed in to change notification settings - Fork 96
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
dependabot labeled PRs do not add to project #518
Comments
Seems to be this reason.
|
The dependabot creates branch and PR in the repo, not from a fork, why the above action does not work? |
from the docs: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
So if you want to respond to events that are triggered by bots you have two options:
|
The token I used is my personal token. Again, manually label PR works fine. The question is "Why the dependabot labeled PRs (the Bump PRs) does not work?" |
ah, my bad
you cannot have a bot apply a label and then have the https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=labeled#pull_request event trigger another workflow. So likely your issue is that the label is applied by dependabot. Our workaround is as I mentioned to have a cron job do this: https://github.com/neurobagel/planning/blob/3790a983b3c6aacf7eaabef05895b68cd200b99a/.github/workflows/global_move_bot_pr_to_board.yml |
How's about
|
@surchs did you find another solution to this? I had a look round some of the neurobagal repos and I can see your not using it anymore. Did it not work as expected? I'm currently trying find a solution to adding dependabot prs from around 20-30 repos to a project. |
Hey @mikebell, we now have a dedicated workflow to label pre-commit PRs and applies a label: https://github.com/neurobagel/workflows/blob/4a81101e34ba511d085ac9184172e6550ad3835b/template_workflows/project_automation/handle_external_pr.yml here is the specific job that does it: all it does is filter based on the PR title. Hope that helps |
I created a action:
This action works to add the PR to the project if I manually add the
dependencies
label.But, the dependabot created PRs (the Bump PRs) do not automatically add to the project.
The text was updated successfully, but these errors were encountered: