Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ Creating test PRs can be spammy so don't do the tutorial on other people's repos
git clone https://github.com/<your-name>/revup.git && cd revup
```

On first run, you will need to configure github credentials. Create a [GitHub Personal Access Token](https://github.com/settings/tokens/new?scopes=repo)
with "repo" scope. Revup needs this in order to create and modify pull requests. Then run
On first run, you will need to configure github credentials. Create a [GitHub Personal Access Token](https://github.com/settings/tokens/new?scopes=repo,read:org)
with the "repo" and "read:org" scopes, which revup needs in order to create and modify pull
requests. Then run
```sh
revup config forge_oauth
```
Expand Down
4 changes: 2 additions & 2 deletions docs/revup.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ graphql requests to the forge.
**--forge-oauth**
: The oauth token that provides login credentials to the forge. Revup
requires full repository read/write permissions in order to create
and modify reviews. For GitHub, this is represented by the "repo" section of
https://github.com/settings/tokens/new.
and modify reviews. For GitHub, this requires the "repo" and "read:org" scopes at
https://github.com/settings/tokens/new?scopes=repo,read:org.

**--forge-url**
: URL to use for the forge. Defaults to "github.com" and would only
Expand Down
2 changes: 1 addition & 1 deletion revup/forge_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def forge_connection(
"Set the GITHUB_TOKEN environment variable, "
"login with 'gh auth login', "
"or make one at https://github.com/settings/tokens/new "
"(revup needs full repo permissions) "
"(revup needs the 'repo' and 'read:org' scopes) "
"then set it with `revup config forge_oauth`."
)

Expand Down
Loading