HyukjinKwon opened a new pull request #31662:
URL: https://github.com/apache/spark/pull/31662
### What changes were proposed in this pull request?
This PR proposes to add an alias environment variable `GITHUB_OAUTH_KEY` for
`GITHUB_API_TOKEN` in `translate-contributors.py` script.
### Why are the changes needed?
```
dev/create-release/translate-contributors.py:GITHUB_OAUTH_KEY =
os.environ.get("GITHUB_OAUTH_KEY", os.environ.get("GITHUB_API_TOKEN", None))
dev/create-release/translate-contributors.py:if not GITHUB_OAUTH_KEY:
dev/create-release/translate-contributors.py: sys.exit("GITHUB_OAUTH_KEY
must be set")
dev/create-release/translate-contributors.py:github_client =
Github(GITHUB_OAUTH_KEY)
dev/github_jira_sync.py:GITHUB_OAUTH_KEY = os.environ.get("GITHUB_OAUTH_KEY")
dev/github_jira_sync.py: request.add_header('Authorization', 'token
%s' % GITHUB_OAUTH_KEY)
dev/github_jira_sync.py: request.add_header('Authorization', 'token
%s' % GITHUB_OAUTH_KEY)
dev/merge_spark_pr.py:GITHUB_OAUTH_KEY = os.environ.get("GITHUB_OAUTH_KEY")
dev/merge_spark_pr.py: if GITHUB_OAUTH_KEY:
dev/merge_spark_pr.py: request.add_header('Authorization', 'token
%s' % GITHUB_OAUTH_KEY)
dev/run-tests-jenkins.py: github_oauth_key =
os.environ["GITHUB_OAUTH_KEY"]
```
Spark uses `GITHUB_OAUTH_KEY` for GitHub token, but translate-contributors
script alone uses `GITHUB_API_TOKEN`. We should better match to make it easier
to run the script
### Does this PR introduce _any_ user-facing change?
No, it's dev-only.
### How was this patch tested?
I manually tested by running this script.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]