Skip to content
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

Error when commit comment is added #846

Closed
Moncky opened this issue Nov 18, 2019 · 5 comments · Fixed by #864
Closed

Error when commit comment is added #846

Moncky opened this issue Nov 18, 2019 · 5 comments · Fixed by #864
Labels
bug Something isn't working

Comments

@Moncky
Copy link

Moncky commented Nov 18, 2019

I am using atlantis 0.10.1 and Gitlab
When I create an initial merge requests things work as expected and I get a merge request with the appropriate changes noted in the output.

If, however, I add a coment for atlantis plan or atlantis apply I get the following errors in the logs:


2019/11/18 16:24:14+0000 [INFO] middleware.go:38 server: POST /events – from 10.0.0.16:45234
2019/11/18 16:24:14+0000 [DBUG] events_controller.go:103 server: Handling GitLab post
2019/11/18 16:24:14+0000 [WARN] events_controller.go:372 server: Json: cannot unmarshal bool into Go struct field .merge_request.merge_params.force_remove_source_branch of type string
2019/11/18 16:24:14+0000 [INFO] middleware.go:42 server: POST /events – respond HTTP 400

I have attempted to have a look at the code, however my golang is not really existent.

@lkysow
Copy link
Member

lkysow commented Nov 18, 2019 via email

@Moncky
Copy link
Author

Moncky commented Nov 18, 2019 via email

@lkysow
Copy link
Member

lkysow commented Nov 19, 2019 via email

@Moncky
Copy link
Author

Moncky commented Nov 19, 2019

For what its worth I have just had a bit of time to build from the current master (c14c9aa) and had the same issue.

@lkysow
Copy link
Member

lkysow commented Nov 27, 2019

I figured it out, the library missed a spot. I've created xanzy/go-gitlab#740 but need to wait for the library to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants