-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
NO PR created and branch changes to new branch and updates from main #2889
Comments
Hi @grndvl1
I think this is a misunderstanding about how this action works. This action expects to be creating and managing the PR branch itself. The I can't see your linked workflow, probably because the repository is private. If you show me your workflow I'll try to help you further. |
This action does not just create a pr but first commits and pushes current working changes. |
Hi @peter-evans
My goal is that whenever a new commit is pushed to dev (ie., when a PR targeting dev is closed and merged), this workflow should create a PR to merge those new changes into the main branch, if such PR does not already exists. In the logs of the action I see (removed some useless lines)
So it seems that the branch specified in the It's not clear to me from the doc how the action works, and it seems i'm not using it properly. Can you understand and fix my workflow ? |
Hi @antoineqian, You are trying to create a PR where the changes already exist in a branch. There's a section in the docs about this, with possible solutions: https://github.com/peter-evans/create-pull-request/blob/main/docs/common-issues.md#create-using-an-existing-branch-as-the-pr-branch |
I'm closing this now because this isn't really an issue with the action, it's just a bit of misunderstanding about how the action works. |
Subject of the issue
Previous steps I created a new branch that automatically sets and pushes changes to build.gradle.kts file and updates the versionName and code. I wanted to create a PR automatically then. But not have it approve it too. Problem is my new branch get overwritten with main changes. And no PR is created or commits are actually logged. I can see the branch created but no commit history, it's very odd never seen that before. Yet before the this PR step I can view the file and the changes are there before the PR creation step
Steps to reproduce
manual workflow
The text was updated successfully, but these errors were encountered: