-
- Downloads
Unify anchor link format for MR diff files !7298
Right now, the following naming scheme for diff files is used: diff-1, diff-2, ... and also we have "internal" format which is file-path-HASH, where HASH is sha1 of file path. Besides, we have HASH_lineA_lineB format to link exact line number in MR diff. It makes sence to unify the way we link diff from outside, while leave "file-path-HASH" format for internal (js) usage. Changes in this commit allow to link diff just by HASH, if we don't want specify exact lines, also it changes "file-path-HASH" and "diff-NUMBER" links in code to this unified format. Inspired by #24010 and !7298
Showing
- app/controllers/projects/blob_controller.rb 1 addition, 1 deletionapp/controllers/projects/blob_controller.rb
- app/views/notify/repository_push_email.html.haml 6 additions, 5 deletionsapp/views/notify/repository_push_email.html.haml
- app/views/projects/diffs/_diffs.html.haml 3 additions, 2 deletionsapp/views/projects/diffs/_diffs.html.haml
- app/views/projects/diffs/_file.html.haml 2 additions, 2 deletionsapp/views/projects/diffs/_file.html.haml
- app/views/projects/diffs/_stats.html.haml 6 additions, 5 deletionsapp/views/projects/diffs/_stats.html.haml
- changelogs/unreleased/24010-change-anchor-link-to-mr-diff.yml 4 additions, 0 deletions...gelogs/unreleased/24010-change-anchor-link-to-mr-diff.yml
- features/steps/project/merge_requests.rb 9 additions, 9 deletionsfeatures/steps/project/merge_requests.rb
Loading
Please register or sign in to comment