mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-10 05:24:18 +09:00
feat: add watch options (#37571)
Adds per-event watch options, so a user can choose which repository notifications they receive. The watch button is now a menu with four modes: participating and mentions (the unwatched state, as on GitHub), all activity, ignore, and custom, which opens a dialog to pick issues, pull requests and releases. The same dialog is reachable from the gear icon on the watched repository list. Options apply to UI notifications and to mail. The watcher, star and fork counts moved inside their buttons, so all three share one shape, and the links to those lists moved to the repository sidebar. Assignees and requested reviewers now also receive UI notifications without having commented first. Buttons and dropdown: <img width="688" height="398" alt="image" src="https://github.com/user-attachments/assets/889b567d-086f-4a06-ac67-3a4205fc63b2" /> Modal: <img width="841" height="327" alt="Screenshot 2026-08-07 at 21 10 59" src="https://github.com/user-attachments/assets/3bedbff5-9011-4f1b-91a9-e8f5c212fb5d" /> New entries in sidebar: <img width="170" height="207" alt="Screenshot 2026-08-07 at 21 13 28" src="https://github.com/user-attachments/assets/5f5150cd-f42d-4543-bd0b-7334cf4aab0e" /> Fixes: https://github.com/go-gitea/gitea/issues/17238 Ref: https://github.com/go-gitea/gitea/issues/35492 --------- Co-authored-by: bircni <bircni@icloud.com> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
co-authored by
bircni
silverwind
parent
2087d4a1a5
commit
7dbfed37eb
@@ -1154,8 +1154,21 @@
|
||||
"repo.fork_guest_user": "Sign in to fork this repository.",
|
||||
"repo.watch_guest_user": "Sign in to watch this repository.",
|
||||
"repo.star_guest_user": "Sign in to star this repository.",
|
||||
"repo.unwatch": "Unwatch",
|
||||
"repo.watch": "Watch",
|
||||
"repo.watching": "Watching",
|
||||
"repo.ignoring": "Ignoring",
|
||||
"repo.watch.options.required": "Select at least one event type.",
|
||||
"repo.watch.options.issues": "Issues",
|
||||
"repo.watch.options.pull_requests": "Pull Requests",
|
||||
"repo.watch.options.releases": "Releases",
|
||||
"repo.watch.mode.participating": "Participating and mentions",
|
||||
"repo.watch.mode.participating.desc": "Receive notifications from this repository when participating or mentioned.",
|
||||
"repo.watch.mode.all": "All activity",
|
||||
"repo.watch.mode.all.desc": "Receive notifications for all events.",
|
||||
"repo.watch.mode.ignore": "Ignore",
|
||||
"repo.watch.mode.ignore.desc": "Never receive notifications from this repository.",
|
||||
"repo.watch.mode.custom": "Custom",
|
||||
"repo.watch.mode.custom.desc": "Choose the events you want to receive notifications for.",
|
||||
"repo.unstar": "Unstar",
|
||||
"repo.star": "Star",
|
||||
"repo.fork": "Fork",
|
||||
|
||||
Reference in New Issue
Block a user