Users added to "Teams" are automatically added to watchers on all repos in organization #10587

Open
opened 2025-11-02 09:12:03 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @sgabenov on GitHub (Apr 3, 2023).

Description

When you add new user to Team, this user is automatically subscribed to watch on all repos in the organization.
The planed behavior is to add user WITHOUT watching all repos.

Also, it would be great, if there was a function to manage subscriptions by Admin for managed users, so you can in batch operation subscribe or unsubsribe users to watch repos.

Gitea Version

1.19.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

PostgreSQL

Originally created by @sgabenov on GitHub (Apr 3, 2023). ### Description When you add new user to Team, this user is automatically subscribed to watch on all repos in the organization. The planed behavior is to add user WITHOUT watching all repos. Also, it would be great, if there was a function to manage subscriptions by Admin for managed users, so you can in batch operation subscribe or unsubsribe users to watch repos. ### Gitea Version 1.19.0 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? docker ### Database PostgreSQL
GiteaMirror added the type/proposal label 2025-11-02 09:12:03 -06:00
Author
Owner

@silverwind commented on GitHub (Apr 3, 2023):

Do we know how this works on other Forges like GitHub or GitLab? I'm kind of torn on this one as sometimes these auto-watches are useful, but I do recall complaints about them too.

@silverwind commented on GitHub (Apr 3, 2023): Do we know how this works on other Forges like GitHub or GitLab? I'm kind of torn on this one as sometimes these auto-watches are useful, but I do recall complaints about them too.
Author
Owner

@BElluu commented on GitHub (Apr 3, 2023):

I'm pretty sure that's not how it works on github. However, for some it may be a feature and for others a bug, so I would parameterize it in the organization's settings.

@BElluu commented on GitHub (Apr 3, 2023): I'm pretty sure that's not how it works on github. However, for some it may be a feature and for others a bug, so I would parameterize it in the organization's settings.
Author
Owner

@silverwind commented on GitHub (Apr 3, 2023):

Yes, per-org configuration would be ideal, and a default in app.ini that applies to new orgs.

@silverwind commented on GitHub (Apr 3, 2023): Yes, per-org configuration would be ideal, and a default in `app.ini` that applies to new orgs.
Author
Owner

@melmus commented on GitHub (Apr 10, 2023):

I agree with author this issue.
Can you add some option in app.ini to fix problem?

@melmus commented on GitHub (Apr 10, 2023): I agree with author this issue. Can you add some option in app.ini to fix problem?
Author
Owner

@gabriel-vasile commented on GitHub (Apr 20, 2023):

There is a app.ini setting for this but it seems to have 2 purposes:

  1. tell if new repo should be automatically watched by members
  2. tell if new member should automatically watch all repos

92e07f270a/custom/conf/app.example.ini (L874-L877)
92e07f270a/models/org_team.go (L504-L518)

@gabriel-vasile commented on GitHub (Apr 20, 2023): There is a app.ini setting for this but it seems to have 2 purposes: 1. tell if new repo should be automatically watched by members 2. tell if new member should automatically watch all repos https://github.com/go-gitea/gitea/blob/92e07f270aa925d518b13686f78befb63da0a747/custom/conf/app.example.ini#L874-L877 https://github.com/go-gitea/gitea/blob/92e07f270aa925d518b13686f78befb63da0a747/models/org_team.go#L504-L518
Author
Owner

@silverwind commented on GitHub (Apr 20, 2023):

app.ini setting is fine for global default, but per-org override config in UI would be nice.

@silverwind commented on GitHub (Apr 20, 2023): app.ini setting is fine for global default, but per-org override config in UI would be nice.
Author
Owner

@ddi-acassidy commented on GitHub (May 31, 2023):

per-user would be nice as well. Not all users need or want notifications for everything in the organization

@ddi-acassidy commented on GitHub (May 31, 2023): per-user would be nice as well. Not all users need or want notifications for everything in the organization
Author
Owner

@AndersBennedsgaard commented on GitHub (Apr 17, 2024):

I fully agree with @ddi-acassidy . It would be nice with something similar to the notifications tab in Github: https://github.com/settings/notifications

@AndersBennedsgaard commented on GitHub (Apr 17, 2024): I fully agree with @ddi-acassidy . It would be nice with something similar to the notifications tab in Github: https://github.com/settings/notifications
Author
Owner

@lunny commented on GitHub (Apr 29, 2024):

So I think this issue proposal a per-user level notification setting UI but not a bug.

@lunny commented on GitHub (Apr 29, 2024): So I think this issue proposal a per-user level notification setting UI but not a bug.
Author
Owner

@AndersBennedsgaard commented on GitHub (Apr 29, 2024):

I forgot to mention that I created https://github.com/go-gitea/gitea/issues/30537, which is a proposal for per-user notification settings.

I don't think this is a duplicate, due @sgabenov's proposal for

[...] a function to manage subscriptions by Admin for managed users, so you can in batch operation subscribe or unsubsribe users to watch repos.

unless we think that https://github.com/go-gitea/gitea/issues/30537 solves that

@AndersBennedsgaard commented on GitHub (Apr 29, 2024): I forgot to mention that I created https://github.com/go-gitea/gitea/issues/30537, which is a proposal for per-user notification settings. I don't think this is a duplicate, due @sgabenov's proposal for > [...] a function to manage subscriptions by Admin for managed users, so you can in batch operation subscribe or unsubsribe users to watch repos. unless we think that https://github.com/go-gitea/gitea/issues/30537 solves that
Author
Owner

@zc-devs commented on GitHub (Jun 23, 2024):

It goes funny when you set users as private/hidden:

Screenshot 2024-06-23 134742
Screenshot 2024-06-23 134852

Create test repository and look from guest:
Screenshot 2024-06-23 140204
Screenshot 2024-06-23 135028

Gitea 1.22.0, 1.21.11

@zc-devs commented on GitHub (Jun 23, 2024): It goes funny when you set users as `private/hidden`: ![Screenshot 2024-06-23 134742](https://github.com/go-gitea/gitea/assets/127358482/7888b5b0-0fd4-40e3-a471-465bf9ac1be1) ![Screenshot 2024-06-23 134852](https://github.com/go-gitea/gitea/assets/127358482/1c0b1724-ed3d-42f3-afd9-41be0c9f28f1) Create test repository and look from guest: ![Screenshot 2024-06-23 140204](https://github.com/go-gitea/gitea/assets/127358482/f6cf00c0-a440-4cbd-868d-0cc9f2ade31c) ![Screenshot 2024-06-23 135028](https://github.com/go-gitea/gitea/assets/127358482/3db7ab36-ae32-47e0-90ff-549b8f7deb7c) Gitea `1.22.0`, `1.21.11`
Author
Owner

@lunny commented on GitHub (Sep 4, 2024):

Watchers are not team members or organization members.

@lunny commented on GitHub (Sep 4, 2024): Watchers are not team members or organization members.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10587