Skip to content

Fix permission for pull request labelling script - #61525

Merged
MrSubidubi merged 1 commit into
mainfrom
fix-label-permissions
Jul 23, 2026
Merged

Fix permission for pull request labelling script#61525
MrSubidubi merged 1 commit into
mainfrom
fix-label-permissions

Conversation

@MrSubidubi

@MrSubidubi MrSubidubi commented Jul 23, 2026

Copy link
Copy Markdown
Member

While its the issues API we use for labelling, it seems that GitHub still wants PR permissions for those. Hence, fixing here.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jul 23, 2026
@MrSubidubi
MrSubidubi added this pull request to the merge queue Jul 23, 2026
Merged via the queue into main with commit 9a8e09b Jul 23, 2026
38 of 39 checks passed
@MrSubidubi
MrSubidubi deleted the fix-label-permissions branch July 23, 2026 12:30
@zelenenka zelenenka added the staff Pull requests authored by a current member of Zed staff label Jul 27, 2026
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
While its the `issues` API we use for labelling, it seems that GitHub
still wants PR permissions for those. Hence, fixing here.

Release Notes:

- N/A
pixel365 pushed a commit to pixel365/zed that referenced this pull request Aug 10, 2026
Now, this is one of these beautiful cases where GitHubs API ist just so
pleasant to work with: Because PRs are treated as issues, assigning an
assignee to a PR suddenly requires issue write permissions, despite the
issue in question being a PR. Not having that permission resulted in
some missing assignees on zed zippy bumps and failures of the workflows
as seen in
https://github.com/zed-industries/zed/actions/runs/31339736929/job/93311493258.

In comparison, labelling PRs requires PR write permissions as seen in
zed-industries#61525 🤡

Beautiful API and a pleasure to work with, 10/10 would recommend. 

Release Notes:

- N/A
playdohface pushed a commit to playdohface/zed that referenced this pull request Aug 29, 2026
While its the `issues` API we use for labelling, it seems that GitHub
still wants PR permissions for those. Hence, fixing here.

Release Notes:

- N/A
playdohface pushed a commit to playdohface/zed that referenced this pull request Aug 29, 2026
Now, this is one of these beautiful cases where GitHubs API ist just so
pleasant to work with: Because PRs are treated as issues, assigning an
assignee to a PR suddenly requires issue write permissions, despite the
issue in question being a PR. Not having that permission resulted in
some missing assignees on zed zippy bumps and failures of the workflows
as seen in
https://github.com/zed-industries/zed/actions/runs/31339736929/job/93311493258.

In comparison, labelling PRs requires PR write permissions as seen in
zed-industries#61525 🤡

Beautiful API and a pleasure to work with, 10/10 would recommend. 

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants