pluginupdate.py: GITHUB_API_TOKEN -> GITHUB_TOKEN

Should use the standard token variable that github and the rest of the
codebase uses.
This commit is contained in:
Austin Horstman 2025-05-06 14:05:08 -05:00
parent 20dbed8a6e
commit 9831a2b6c3
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ Finally, there are some plugins that are also packaged in nodePackages because t
Run the update script with a GitHub API token that has at least `public_repo` access. Running the script without the token is likely to result in rate-limiting (429 errors). For steps on creating an API token, please refer to [GitHub's token documentation](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).
```sh
nix-shell -p vimPluginsUpdater --run 'vim-plugins-updater --github-token=mytoken' # or set GITHUB_API_TOKEN environment variable
nix-shell -p vimPluginsUpdater --run 'vim-plugins-updater --github-token=mytoken' # or set GITHUB_TOKEN environment variable
```
Alternatively, set the number of processes to a lower count to avoid rate-limiting.

View file

@ -615,9 +615,9 @@ class Editor:
"--github-token",
"-t",
type=str,
default=os.getenv("GITHUB_API_TOKEN"),
default=os.getenv("GITHUB_TOKEN"),
help="""Allows to set --proc to higher values.
Uses GITHUB_API_TOKEN environment variables as the default value.""",
Uses GITHUB_TOKEN environment variables as the default value.""",
)
common.add_argument(
"--no-commit",