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

Use links to merge request diff view #16

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

Djuuu
Copy link
Owner

@Djuuu Djuuu commented Feb 25, 2024

Commit links in merge request descriptions are generated by Gitlab when it detects SHA-1 strings matching existing commits. Ex:
01234567ab -> https://gitlab.com/my/project/-/commit/01234567ab

These links have not direct link to a merge request. When commenting on them, comments might be lost at rebase.

Linking to the diff view, focused on a given commit, is better : https://gitlab.com/my/project/-/merge_requests/123/diffs?commit_id=0123456789abcdef0123456789abcdef0123456

Fixes #14

@Djuuu Djuuu force-pushed the fix/14-link-to-merge-request-diff-by-commit branch 3 times, most recently from 9140d5e to b145273 Compare February 26, 2024 15:08
Commit links in merge request descriptions are generated by Gitlab when it detects SHA-1 strings matching existing commits.
Ex:
01234567ab -> https://gitlab.com/my/project/-/commit/01234567ab

These links have not direct link to a merge request. When commenting on them, comments might be lost at rebase.

Linking to the diff view, focused on a given commit, is better :
https://gitlab.com/my/project/-/merge_requests/123/diffs?commit_id=0123456789abcdef0123456789abcdef0123456
@Djuuu Djuuu force-pushed the fix/14-link-to-merge-request-diff-by-commit branch from 4ad3824 to 1d98624 Compare February 26, 2024 15:44
@Djuuu Djuuu merged commit ab7136a into master Feb 26, 2024
6 checks passed
@Djuuu Djuuu deleted the fix/14-link-to-merge-request-diff-by-commit branch February 26, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commit links should target the merge request diff view instead of generic commit links
1 participant