github-pr-resource
github-pr-resource copied to clipboard
clone PR branch instead of base/mainbranch
It would be great if i could just checkout branch X without having to worry about wether the branch can be merged into the main branch.
Currently we run into issues when the PR branch differs too much or conflicts withe the main branch:
Initialized empty Git repository in /tmp/build/get/.git/
Switched to a new branch 'master'
Auto-merging A
CONFLICT (content): Merge conflict in A
Auto-merging A
Auto-merging B
Auto-merging C
Automatic merge failed; fix conflicts and then commit the result.
2020/07/02 09:27:23 get failed: merge failed: exit status 1
It should be possible to just checkout some branch when choosing integration_tool: checkout. Then we use the resource to just get $branch instead of having an integrated merge/rebase check.
I agree - we're being hit by this too! Any input @rickardl ?