-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Branch is not created from default branch and it is creating from base branch #3364
Comments
@peter-evans Please update on this. |
This is not a particularly common workflow, so I'm not 100% sure if what you want to do will work, but it looks like it should. First of all, check that - uses: actions/checkout@v4
with:
ref: main |
I already had a branch and wanted to create a pullrequest whose base will be the other branch which I had defined while calling this action. But what this action does is just resets my already present PR branch to make it same as base branch and then says "this branch no longer differs from the base". Then I also tried creating another branch from my already created PR branch by giving different input to |
can you suggest me a workaround for above? @peter-evans |
@peter-evans checkout is updated as below. It seems the reference is still from the target branch test1 or test2.
|
@peter-evans We are also encountering conflicts because of this case. |
@peter-evans Please update |
@peter-evans We are facing conflicts because of this issue. Please assist. |
@Poornachand200 I'm afraid I don't have a lot of time at the moment. The next thing you can do is provide a log of the complete run so I can see what is happening. |
logs_28879649215.zip |
@Poornachand200 I think I understand what you mean now. You need to follow the example here: https://github.com/peter-evans/create-pull-request/blob/main/docs/examples.md#keep-a-branch-up-to-date-with-another i.e. Checkout the target, e.g. |
Branch is not created from default branch and it is creating from base branch
Describe your issue here.
I need to create a pull request to target branch test1 or test2. But I want to create the branch with reference to main. This means branch should be created or checked out from main branch. But the branch doesn't have changes from main. Instead it is getting created from test1 branch. Below is the example. The workflow actions runs on main branch.
Steps to reproduce
If this issue is describing a possible bug please provide (or link to) your GitHub Actions workflow.
The text was updated successfully, but these errors were encountered: