contrib: add script that returns link to active MR of upstream branch
[🎩︎djasa@toolbox NetworkManager-ci] (dj/mr-backlinks) $ contrib/gitlab-get-mr
Current branch has no upstream
[🎩︎djasa@toolbox NetworkManager-ci] (dj/mr-backlinks) $ git puf --set-upstream origin $(git branch --show-current)
(...)
[🎩︎djasa@toolbox NetworkManager-ci] (dj/mr-backlinks) $ contrib/gitlab-get-mr > /dev/null
This seems like a valid GL instance: https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci
Branch dj/mr-backlinks however was not found among active MRs at: https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/merge_requests
After I created MR in the web UI:
[🎩︎djasa@toolbox NetworkManager-ci] (dj/mr-backlinks) $ contrib/gitlab-get-mr
https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/merge_requests/1358
Next: when given a CLI option, read messages of commits since main and add a MR link to them if it is not there.
@RunTests:pass
Edited by David Jaša