-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Open the current merge request with lab mr b #221
Open the current merge request with lab mr b #221
Conversation
Ok I fixed the problems I had but now travis failed. I guess I should update the tests. @zaquestion How can I run the test locally? |
Ok it fails locally:
|
Yeah the tests can be a bit annoying because they test against the real gitlab.com You should just need to have an ssh key connected to a user on gitlab. Sorry there aren't better instructions on running the tests. You can select tests with
|
I had one but I forgot that I changed my laptop since! The problem now is that I don't have the right to create a merge request on this project. The problem on travis is that there is an open merge request on the project with the same title: https://travis-ci.org/zaquestion/lab/builds/432038074#L576 I will try to close it via travis. |
@zaquestion Maybe it'll be easier if you close it by hand! |
@zaquestion Any idea what's going wrong? https://travis-ci.org/zaquestion/lab/builds/432954946#L572 |
Thats a pretty weird error -- I suspect it might be reproducible on master as well and have nothing to do with your code |
Do you think you can add a test using https://github.com/zaquestion/lab/blob/master/cmd/mr_browse_test.go as guidance |
@MartinDelille The test issue should be fixed by #222 -- can you rebase/update your branch. Sorry for the merge conflict! |
a2ddbce
to
479cda4
Compare
Codecov Report
@@ Coverage Diff @@
## master #221 +/- ##
==========================================
- Coverage 68.09% 67.58% -0.51%
==========================================
Files 41 41
Lines 2131 2147 +16
==========================================
Hits 1451 1451
- Misses 533 548 +15
- Partials 147 148 +1
Continue to review full report at Codecov.
|
It fixed the problem! |
Do you have a test scenario to propose? I'm a kind of lost how to do that. |
@MartinDelille Sorry I just started a new job and haven't had much time to help out here. I'd suggest something like the existing test in https://github.com/zaquestion/lab/blob/master/cmd/mr_browse_test.go but don't pass an MR. You may have to checkout the mr test branch as well ( https://github.com/zaquestion/lab/blob/master/cmd/mr_test.go#L17-L23 )
If you can create something like the above, I can pick it up and get it in the next release which needs to happen soon because of an annoying bug. |
Codecov Report
@@ Coverage Diff @@
## master #221 +/- ##
==========================================
- Coverage 68.09% 67.58% -0.51%
==========================================
Files 41 41
Lines 2131 2147 +16
==========================================
Hits 1451 1451
- Misses 533 548 +15
- Partials 147 148 +1
Continue to review full report at Codecov.
|
Hi @zaquestion ! It works on my side locally. I tried again to write test but it requires times that I don't have. Maybe you could merge it without test so that people can at least use the feature? We'll create an issue to create a test for this feature then (I don't like untested code too but sometimes we need to get thing done). |
This is a work in progress.
The current code fails with the following error:
There is indeed a
ListProjectMergeRequestsOptions.SourceBranch
here: https://github.com/xanzy/go-gitlab/blob/master/merge_requests.go#L262Unfortunately, I have a different file in
vi vendor/github.com/xanzy/go-gitlab/merge_requests.go
...