NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 396 forks source link

"Closed via" for Issue #603

Closed daukadolt closed 3 years ago

daukadolt commented 3 years ago

Hi!

This is probably a question that should has been raised first in Gitlab, but it's very confusing how it's done there, + it's also related to this gem so I thought to raise the question here.

I'm interested in identifying what closed a closed issue - merge request, moved to another project or manually closed.

I found this method in Issues.rb:

https://github.com/NARKOZ/gitlab/blob/3df8f136613788990a60104c728d0a02e297e31b/lib/gitlab/client/issues.rb#L227-L229

This endpoint is the closest I got to figuring out what I want, but it's naming is misleading (gem handled it perfectly).

Is there a direct way to find what closed the ticket?

This seems something that should be available by default, yet I'm having a hard time figuring it out.

Gitlab's web UI seems to always know what closed the issue - in the activity it says "merged via", "moved", or simply "closed".

P.S. Awesome gem!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.