You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think generally I only follow releases on repos, so I think it should be easier to do that. Currently it requires 4 clicks but maybe we can reduce it to two.
I looked into this, it doesn't look like neither the REST nor the GQL API offers even a way to check whether the user is subscribed to releases. Subscriptions are handled everywhere as yes | no | ignored. "Repo releases" are not a "subscribable entity" either.
Activity
yakov116 commentedon Oct 19, 2022
I would love if #3005 was done first
fregante commentedon May 15, 2023
I think this would work great on the
Releasespage as a "Follow releases" button, especially now that theWatchdropdown is relegated to theCodetab.It could work as a one-way button, if you're not following the repo:
If you're following the releases OR "every event in the repo", show the status, but disabled:
Then somehow we can inform the user that they can unfollow the repo or change the watch status in the
Codetab.This is because if the user is following the whole repo, we can't just unfollow the releases.
This button can probably be built directly via API:
fregante commentedon Nov 22, 2023
I looked into this, it doesn't look like neither the REST nor the GQL API offers even a way to check whether the user is subscribed to releases. Subscriptions are handled everywhere as
yes | no | ignored. "Repo releases" are not a "subscribable entity" either.So on the repo root:
formandauthenticity_tokenfoundOn the releases page:
fregante commentedon Nov 18, 2024
This just got super easy:
I captured this native request from GitHub's new form. The body is just a FormData and the repo ID is in a
metatagThe GET can be done by fetching and parsing GitHub's partial:
The number is the
repository_id, the data lives in the<script type="application/json" data-target="react-partial.embeddedData">element.