Bug 316864
| Summary: | People without triage access on GitHub cannot set labels/assignees | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sam Sneddon [:gsnedders]
See, e.g.,
```
chengma@Chengs-MacBook-Pro OpenSource % git-webkit pr
Total errors found: 0 in 12 files
Pushing to fork, which is classified as a public remote
No novel content being pushed
Everything up-to-date
Failed to modify 'https://github.com/WebKit/WebKit/issues/66799 Add initial support for file URLs to Web Extensions'
Request to 'https://api.github.com/repos/WebKit/WebKit/issues/66799/assignees' returned status code '403'
Message: Must have admin rights to Repository.
Is your API token out of date? Run 'git-webkit setup' to refresh credentials
Could not add any assignee(s) to issueFailed to assign 'PR 66799 | Add initial support for file URLs to Web Extensions' to 'charles-ma-1'
Updated 'PR 66799 | Add initial support for file URLs to Web Extensions'!
Failed to modify 'https://bugs.webkit.org/show_bug.cgi?id=316682 Add initial support for file URLs to Web Extensions'
Assigning associated issue to Charles Ma <cheng_ma@apple.com>
Failed to modify 'https://github.com/WebKit/WebKit/issues/66799 Add initial support for file URLs to Web Extensions'
Request to 'https://api.github.com/repos/WebKit/WebKit/issues/66799/labels' returned status code '403'
Message: Must have admin rights to Repository.
Is your API token out of date? Run 'git-webkit setup' to refresh credentials
https://github.com/WebKit/WebKit/pull/66799
chengma@Chengs-MacBook-Pro OpenSource %
```
This is expected on the GitHub side: only those with triage, write, maintain, and admin roles can assign issues/PRs and apply labels per https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization#permissions-for-each-role.
We shouldn't give so much output — it's nothing but noise and a distraction to first-time contributors, who are the least likely to know what to do with this.
If we want to set labels on all PRs, we need to do that with a privileged account — we can't just rely on the contributor having a privileged account.
Note that non-org members cannot be an assignee, so we can't do that at all unless we automatically invite anyone who submits a PR to the WebKit org and have them accept the invite.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/179293243>
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 243691 ***