[PR #1410] [MERGED] [Notifications Step 6] Per issue/PR watch/unwatch #15896

Closed
opened 2025-11-02 11:57:10 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1410
Author: @andreynering
Created: 3/30/2017
Status: Merged
Merged: 4/1/2017
Merged by: @andreynering

Base: masterHead: notification/issue-watch


📝 Commits (10+)

  • a0d0de7 Create issue_watch table
  • b674460 Add watch button on issue
  • aa6e949 Consider issue_watchers while sending notifications
  • cb36251 Add updated_unix column on issue_watch
  • e4a33ed Add octicons to watch/unwatch buttons
  • caed86f Fix lint
  • 4b284f8 UI and translation improvements
  • 18952c4 Add copyright headers
  • a90ffff Use variables for times
  • e6781d5 Add unit tests for issue_watch

📊 Changes

10 files changed (+271 additions, -8 deletions)

View changed files

📝 cmd/web.go (+1 -0)
models/fixtures/issue_watch.yml (+15 -0)
models/issue_watch.go (+96 -0)
models/issue_watch_test.go (+51 -0)
📝 models/models.go (+1 -0)
📝 models/notification.go (+32 -8)
📝 options/locale/locale_en-US.ini (+2 -0)
📝 routers/repo/issue.go (+14 -0)
routers/repo/issue_watch.go (+38 -0)
📝 templates/repo/issue/view_content/sidebar.tmpl (+21 -0)

📄 Description

  • Users that don't watch the repo can choose watch a single issue
  • Users that watch the repo can choose unwatch a single issue

watch

unwatch


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1410 **Author:** [@andreynering](https://github.com/andreynering) **Created:** 3/30/2017 **Status:** ✅ Merged **Merged:** 4/1/2017 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `notification/issue-watch` --- ### 📝 Commits (10+) - [`a0d0de7`](https://github.com/go-gitea/gitea/commit/a0d0de7233cd8a85d6572ae13d74078482a1ee27) Create issue_watch table - [`b674460`](https://github.com/go-gitea/gitea/commit/b6744607484008826d18f129326664105b9d7bfc) Add watch button on issue - [`aa6e949`](https://github.com/go-gitea/gitea/commit/aa6e949b3de11e675311e54b59e027cd82a230f4) Consider issue_watchers while sending notifications - [`cb36251`](https://github.com/go-gitea/gitea/commit/cb362513f027ca8e2c53204f5f2ea447ad06bf05) Add updated_unix column on issue_watch - [`e4a33ed`](https://github.com/go-gitea/gitea/commit/e4a33ed4d0d078c6d8a5b9025865c805f7eee179) Add octicons to watch/unwatch buttons - [`caed86f`](https://github.com/go-gitea/gitea/commit/caed86fc6ef87d11035889a11b8949c839e19d52) Fix lint - [`4b284f8`](https://github.com/go-gitea/gitea/commit/4b284f814c21c34b61f94f7daa39d6254246ab5f) UI and translation improvements - [`18952c4`](https://github.com/go-gitea/gitea/commit/18952c40f80d41d2edc582305265dbfe3b62120d) Add copyright headers - [`a90ffff`](https://github.com/go-gitea/gitea/commit/a90ffffb1a84d79f3e08bd1c7b90ab2f565833a0) Use variables for times - [`e6781d5`](https://github.com/go-gitea/gitea/commit/e6781d5488849d9415abc2402e914259214a13c4) Add unit tests for issue_watch ### 📊 Changes **10 files changed** (+271 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+1 -0) ➕ `models/fixtures/issue_watch.yml` (+15 -0) ➕ `models/issue_watch.go` (+96 -0) ➕ `models/issue_watch_test.go` (+51 -0) 📝 `models/models.go` (+1 -0) 📝 `models/notification.go` (+32 -8) 📝 `options/locale/locale_en-US.ini` (+2 -0) 📝 `routers/repo/issue.go` (+14 -0) ➕ `routers/repo/issue_watch.go` (+38 -0) 📝 `templates/repo/issue/view_content/sidebar.tmpl` (+21 -0) </details> ### 📄 Description - Users that don't watch the repo can choose watch a single issue - Users that watch the repo can choose unwatch a single issue ![watch](https://cloud.githubusercontent.com/assets/7011819/24481925/367a42d2-14c4-11e7-9ea3-b3b36ede1698.png) ![unwatch](https://cloud.githubusercontent.com/assets/7011819/24481930/3e41251c-14c4-11e7-816b-adb2118369dd.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:57:10 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15896