-
-
Notifications
You must be signed in to change notification settings - Fork 163
Can't merge a Merge Request if I am in detached HEAD state #735
Comments
Any timeline when you will do a release with this fix included? :) |
I have a new release (v1.18.0) planned for tomorrow (1st, June, 2021)... I'm also working on releasing docker images which you can use directly in your CI #746 |
Is there a workaround until 1.18 is released? (This also affects |
You can probably use |
Hi @jume-dev @pierlucg-xs, v1.18.0 is available now. It comes with docker images that you can use in your CI environments as well https://github.com/profclems/glab/releases/v1.18.0 |
I tried it, but it sadly didn't work. I checked your code change from #743 again and I think I know what the issue is. I provide a PR, but please be aware I have no go experience whatsoever 😁 Would be great if you could release a bugfix release or something :) EDIT: actually, spoke too soon, I have no idea why your fix doesn't solve the problem |
Thanks!
I will be glad to review your PR and provide as much help as possible
… On 9 Jun 2021, at 8:28 PM, Robert Kranz ***@***.***> wrote:
I tried it, but it sadly didn't work. I checked your code change from #743 again and I think I know what the issue is. I provide a PR, but please be aware I have no go experience whatsoever 😁
Would be great if you could release a bugfix release or something :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi, sorry, as you answered via mail, you probably didn't saw my edit. I checked the code more thoroughly and I can't seem to find what's the problem. Looks ok for me |
Scratch that, I got me some help from a colleague and we think we found the issue. I opened up an PR, please be so kind to review. I'd love it if you could make a small bugfix release for this fix, as I really depend on it for my project, but if not, that would be also ok, as I can use my fork. |
Hi @jume-dev… I have merged your PR and did a patch release… Thanks a lot for working on this! https://github.com/profclems/glab/releases/v1.18.1 |
you're welcome :) |
Description
So, I am running glab in a gitlab-ci pipeline with the goal to create a MR from development to main and automerge it, if the pipeline succeeds.
As I run in an MR pipeline, the git state is a detached HEAD. I try to execute
glab mr merge <id>
with an correct ID and get the error:could not determine current branch: git: not on any branch
.Creating the MR with
glab mr create -b main -s development -y -t test -d ""
did work howeverExpected Behavior vs Actual Behavior
It should not give me the error as I am not interacting with the current git state anyway
Possible Fix
Maybe mr merge can be refactored to use whatever mr create is doing.
Your Environment
I am trying to get this pipeline to work:
The text was updated successfully, but these errors were encountered: