Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document could not find the github team error on cargo owner --add #9000

Merged
merged 2 commits into from
Jan 10, 2021

Conversation

JohnTitor
Copy link
Member

When running cargo owner --add, the could not find the github team error often occurs due to lack of the permissions.
Example cases: #5297 (comment), rust-lang/crates.io#2928

I think it's worth documenting that error and the possible solution.

@rust-highfive
Copy link

r? @Eh2406

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 19, 2020
@@ -240,8 +240,23 @@ the “Grant Access” button next to its name:

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

#### could not find the github team
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a little strange starting with a lowercase letter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, "`could not find the github team` error" is fine?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "Troubleshooting GitHub team access errors"?

```
In that case, you should go to [the GitHub Application settings page] and
check if crates.io is listed in the `Authorized OAuth Apps` tab.
If it isn't, you should go to <https://crates.io/login> and authorize it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://crates.io/login doesn't seem to be a valid URL.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, the error message on crates.io is outdated, will fix it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message was updated by rust-lang/crates.io#3146.

@@ -240,8 +240,23 @@ the “Grant Access” button next to its name:

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

#### could not find the github team

Or, when trying to add a GitHub team as crate owner, you may see an error like:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the leading "or" here is for.

Suggested change
Or, when trying to add a GitHub team as crate owner, you may see an error like:
When trying to add a GitHub team as crate owner, you may see an error like:

In that case, you should go to [the GitHub Application settings page] and
check if crates.io is listed in the `Authorized OAuth Apps` tab.
If it isn't, you should go to <https://crates.io/login> and authorize it.
Then go to the crates.io app page, make sure you or your organization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm uncertain what the "app page" is.

This also might flow a little better like this:

Suggested change
Then go to the crates.io app page, make sure you or your organization
Then go to the crates.io app page and make sure you or your organization

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm uncertain what the "app page" is.

This one: https://github.com/settings/connections/applications/9fe8110dfe185fe90b5c

I'm not sure what's the best wording for it, any idea?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I would try to be explicit about exactly what to do. Maybe something like this:

Then go back to the Application Settings page on GitHub, click on the
crates.io application in the list, and make sure you or your organization is
listed in the "Organization access" list with a green check mark. If there's
a button labeled Grant or Request, you should grant the access or
request the org owner to do so.

bors added a commit to rust-lang/crates.io that referenced this pull request Dec 30, 2020
Remove outdated information about GitHub permission error

https://crates.io/login is no longer valid (found in rust-lang/cargo#9000 (comment)) and it's just enough to recommend re-authentication now, I think.
@JohnTitor
Copy link
Member Author

r? @ehuss
I'd like to hear some your thoughts before updating.

@rust-highfive rust-highfive assigned ehuss and unassigned Eh2406 Jan 7, 2021
@JohnTitor
Copy link
Member Author

Thanks! Updated the wording following the reviews.

@ehuss
Copy link
Contributor

ehuss commented Jan 10, 2021

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Jan 10, 2021

📌 Commit 4be6c18 has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 10, 2021
@bors
Copy link
Contributor

bors commented Jan 10, 2021

⌛ Testing commit 4be6c18 with merge 3021739...

@bors
Copy link
Contributor

bors commented Jan 10, 2021

☀️ Test successful - checks-actions
Approved by: ehuss
Pushing 3021739 to master...

@bors bors merged commit 3021739 into rust-lang:master Jan 10, 2021
@JohnTitor JohnTitor deleted the owner-add-docs branch January 10, 2021 20:59
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 15, 2021
Update cargo

10 commits in 329895f5b52a358e5d9ecb26215708b5cb31d906..a73e5b7d567c3036b296fc6b33ed52c5edcd882e
2021-01-06 00:01:52 +0000 to 2021-01-12 23:45:39 +0000
- Sort available binaries when multiple (rust-lang/cargo#9066)
- Fix misspelling of environment variable (rust-lang/cargo#9067)
- Remove statement that opt-level 0 turns on debug (rust-lang/cargo#9070)
- Fix `links` vars showing up for testing packages (rust-lang/cargo#9065)
- Fix unit_for computation on proc-macros in shared workspace. (rust-lang/cargo#9059)
- Document `could not find the github team` error on `cargo owner --add` (rust-lang/cargo#9000)
- Unstable section of cargo/config.toml takes bools (rust-lang/cargo#9057)
- [doc] add note about empty environment variables for missing manifest keys (rust-lang/cargo#9053)
- another round of clippy lint fixes (rust-lang/cargo#9051)
- Updated display message of cargo metadata --help (rust-lang/cargo#9050)
@ehuss ehuss added this to the 1.51.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants