Git Product home page Git Product logo

Comments (11)

timabbott avatar timabbott commented on June 3, 2024 3

I think a good approach is to just add a special comment when we add them to the repo (it's only 1 time per user, so not too spammy), letting them know that they've been subscribed and they may want to edit their notification settings for the repo to just include issues they're following, and not the full firehose.

from zulipbot.

YagoGG avatar YagoGG commented on June 3, 2024 1

@lonerz I wonder if those have to be run as the (un)subscribed user, rather than as the bot.

It's probably specified in those docs, so I apologize in advance (I just made a quick skim).

I would be happy to work on this after I finish with my current PRs, but if anyone else is willing to fix this, feel free to take over :)

from zulipbot.

lonerz avatar lonerz commented on June 3, 2024

@YagoGG there should be a function in the node-github api to deal with this problem: http://mikedeboer.github.io/node-github/

from zulipbot.

lonerz avatar lonerz commented on June 3, 2024

@YagoGG I'm almost certain that when you are added as a collaborator, then you are automatically subscribed.

from zulipbot.

YagoGG avatar YagoGG commented on June 3, 2024

@lonerz Yup, that's the theory.

However, I wonder if there's anything we can do to avoid it, or at least undo it. If it's completely impossible, I guess that a friendly message pointing to the notification settings (https://github.com/zulip/<repo>/subscription) would do the trick.

from zulipbot.

synicalsyntax avatar synicalsyntax commented on June 3, 2024

@YagoGG Unfortunately, I don't think zulipbot can remove your automatic subscription to a repository when you're added as a collaborator; the GitHub API only allows you to modify the notifications of the user you are authenticated as.

from zulipbot.

synicalsyntax avatar synicalsyntax commented on June 3, 2024

Sounds good! Will add that in my next push.

from zulipbot.

synicalsyntax avatar synicalsyntax commented on June 3, 2024

@YagoGG Oh, turns out you're not automatically subscribed to a repository's events when you're given push settings.

If you have the Automatically watch repositories option selected in https://github.com/settings/notifications, you'll automatically watch a repository when you are given push access to it, but you won't get notifications or watch the repo if you disable that setting. I've tested this out personally and confirmed that this issue doesn't apply to everyone.

@timabbott @lonerz Do you still think that a warning comment should be added even though this isn't an issue for everyone?

from zulipbot.

YagoGG avatar YagoGG commented on June 3, 2024

Hmmm, interesting. Nice catch, @synicalsyntax!

I don't remember having modified those settings. Could you guys check whether you have that setting activated by default or not?

from zulipbot.

synicalsyntax avatar synicalsyntax commented on June 3, 2024

That setting is activated by default.

from zulipbot.

lonerz avatar lonerz commented on June 3, 2024

Yep, it is most definitely default.

from zulipbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.