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

Automatically change target branch for dependabot PRs from main to develop #2456

Closed
robyngit opened this issue Jun 19, 2024 · 0 comments · Fixed by #2457
Closed

Automatically change target branch for dependabot PRs from main to develop #2456

robyngit opened this issue Jun 19, 2024 · 0 comments · Fixed by #2457
Assignees
Milestone

Comments

@robyngit
Copy link
Member

Dependabot PRs target the main branch by default and there is no setting to change this. Our development workflow requires these PRs to target the develop branch instead. If we forget to manually change to the target branch for a PR, then we risk committing directly to main (as has happened before).

Solution: Implement a GitHub Action that automatically changes the target branch from main to develop for all Dependabot PRs.

@robyngit robyngit added this to the 2.30.0 milestone Jun 19, 2024
@robyngit robyngit self-assigned this Jun 19, 2024
@robyngit robyngit linked a pull request Jun 19, 2024 that will close this issue
robyngit added a commit that referenced this issue Jun 19, 2024
To trigger action based on PR's head branch name instead base branch name, must use the github.head_ref context in a conditional. The branches property applies only to base branch.

Issue #2456
robyngit added a commit that referenced this issue Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant