Skip to content

Commit 2da2521

Browse files
committed
Document could not find the github team error on cargo owner --add
1 parent 0877f61 commit 2da2521

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/doc/src/reference/publishing.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,23 @@ the “Grant Access” button next to its name:
240240

241241
![Authentication Access Control](../images/auth-level-acl.png)
242242

243+
#### could not find the github team
244+
245+
Or, when trying to add a GitHub team as crate owner, you may see an error like:
246+
247+
```text
248+
error: failed to invite owners to crate <crate_name>: api errors (status 200 OK): could not find the github team org/repo
249+
```
250+
In that case, you should go to [the GitHub Application settings page] and
251+
check if crates.io is listed in the `Authorized OAuth Apps` tab.
252+
If it isn't, you should go to <https://crates.io/login> and authorize it.
253+
Then go to the crates.io app page, make sure you or your organization
254+
is granted the access (you should see a green checkmark next to the org name).
255+
If there's a button labeled `Grant` or `Request`, you should grant the access
256+
or request the org owner to do so.
257+
243258
[RFC 1105]: https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md
244-
[Rust API Guidelines]: https://rust-lang-nursery.github.io/api-guidelines/
259+
[Rust API Guidelines]: https://rust-lang.github.io/api-guidelines/
245260
[`authors`]: manifest.md#the-authors-field
246261
[`cargo login`]: ../commands/cargo-login.md
247262
[`cargo package`]: ../commands/cargo-package.md
@@ -256,3 +271,4 @@ the “Grant Access” button next to its name:
256271
[`repository`]: manifest.md#the-repository-field
257272
[crates.io]: https://crates.io/
258273
[oauth-scopes]: https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/
274+
[the GitHub Application settings page]: https://github.com/settings/applications

0 commit comments

Comments
 (0)