You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sebastian-sauer 55532061c8
Add commits dropdown in PR files view and allow commit by commit review (#25528)
This PR adds a new dropdown to select a commit or a commit range
(shift-click like github) of a Pull Request.
After selection of a commit only the changes of this commit will be shown.
When selecting a range of commits the diff of this range is shown.

This allows to review a PR commit by commit or by viewing only commit ranges.
The "Show changes since your last review" mechanism github uses is implemented, too.
When reviewing a single commit or a commit range the "Viewed" functionality is disabled.

## Screenshots

### The commit dropdown

![image](https://github.com/go-gitea/gitea/assets/51889757/0db3ae62-1272-436c-be64-4730c5d611e3)

### Selecting a commit range

![image](https://github.com/go-gitea/gitea/assets/51889757/ad81eedb-8437-42b0-8073-2d940c25fe8f)

### Show changes of a single commit only

![image](https://github.com/go-gitea/gitea/assets/51889757/6b1a113b-73ef-4ecc-adf6-bc2340bb8f97)

### Show changes of a commit range

![image](https://github.com/go-gitea/gitea/assets/51889757/6401b358-cd66-4c09-8baa-6cf6177f23a7)


Fixes https://github.com/go-gitea/gitea/issues/20989
Fixes https://github.com/go-gitea/gitea/issues/19263

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
1 year ago
..
actions Restructure issue list template, styles (#25750) 1 year ago
branch Fix wrong branch name in rename branch modal (#26146) 1 year ago
cite Button and color enhancements (#24989) 1 year ago
code Newly pushed branches hints on repository home page (#25715) 1 year ago
diff Add commits dropdown in PR files view and allow commit by commit review (#25528) 1 year ago
editor Enable H014 and H023 djlint rules (#25786) 1 year ago
find Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 1 year ago
graph Improve commit graph alignment and truncating (#26112) 1 year ago
issue Improve display of Labels/Projects/Assignees sort options (#25886) 1 year ago
migrate Clarify "text-align" CSS helpers, fix clone button padding (#25763) 1 year ago
projects Fix inconsistent user profile layout across tabs (#25625) 1 year ago
pulls Don't stack PR tab menu on small screens (#25789) 1 year ago
release Fix UI for release tag page / wiki page / subscription page (#25948) 1 year ago
settings Add tooltip to describe LFS table column and color `delete LFS file` button red (#26181) 1 year ago
tag Enable H014 and H023 djlint rules (#25786) 1 year ago
wiki Fix UI for release tag page / wiki page / subscription page (#25948) 1 year ago
activity.tmpl Replace fomantic divider module with our own (#25539) 1 year ago
blame.tmpl Add template linting via djlint (#25212) 1 year ago
branch_dropdown.tmpl Use frontend fetch for branch dropdown component (#25719) 1 year ago
clone_buttons.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) 1 year ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 1 year ago
commit_load_branches_and_tags.tmpl Show branches and tags that contain a commit (#25180) 1 year ago
commit_page.tmpl Show branches and tags that contain a commit (#25180) 1 year ago
commit_status.tmpl Remove commit status running and warning from the dashboard repo list (#26036) 1 year ago
commit_statuses.tmpl Button and color enhancements (#24989) 1 year ago
commits.tmpl Fix some UI alignments (#25277) 1 year ago
commits_list.tmpl Show branches and tags that contain a commit (#25180) 1 year ago
commits_list_small.tmpl Show branches and tags that contain a commit (#25180) 1 year ago
commits_table.tmpl Several fixes for mobile UI (#25634) 1 year ago
create.tmpl Support copy protected branch from template repository (#25889) 1 year ago
create_helper.tmpl Add templates to customize text when creating and migrating repositories 2 years ago
empty.tmpl Repository Archived text title center align (#25767) 1 year ago
file_info.tmpl Show if File is Executable (#25287) 1 year ago
forks.tmpl Remove fomantic ".link" selector and styles (#23888) 1 year ago
graph.tmpl Replace remaining fontawesome dropdown icons with SVG (#24455) 1 year ago
header.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) 1 year ago
home.tmpl Tweak repo topics bar (#25769) 1 year ago
icon.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 1 year ago
release_tag_header.tmpl Fix incorrect release count (#25879) 1 year ago
search.tmpl Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
search_name.tmpl Clean template/helper.go (#23922) 1 year ago
shabox_badge.tmpl Fix shabox regression (#22924) 1 year ago
sub_menu.tmpl Fix tags header and pretty format numbers (#25624) 1 year ago
unicode_escape_prompt.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) 1 year ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
user_cards.tmpl Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 1 year ago
view_file.tmpl Button and color enhancements (#24989) 1 year ago
view_list.tmpl Show branches and tags that contain a commit (#25180) 1 year ago
watchers.tmpl Fix user-cards format (#24428) 1 year ago