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

Added GitHub token for authenticated GitHub API calls #1963

Merged
merged 3 commits into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from 2 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: 5 additions & 0 deletions src/scripts/fetch_package_names.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ function main() {
function fetchPackageNames(options, cb) {
const github = new GitHubApi();

github.authenticate({
type: 'token',
token: process.env.GITHUB_TOKEN
});

// XXX: weak since this handles only one page
github.repos.getForOrg({
org: options.organization,
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7439,9 +7439,9 @@ tap-parser@^6.0.1:
js-yaml "^3.2.7"
minipass "^2.2.0"

"tap-render@github:munter/tap-render#0.1.7-patch1":
tap-render@Munter/tap-render#0.1.7-patch1:
version "0.1.7"
resolved "https://codeload.github.com/munter/tap-render/tar.gz/35bf3ac21c4fd2776d8569d5e8a1ab62df1f6d4f"
resolved "https://codeload.github.com/Munter/tap-render/tar.gz/35bf3ac21c4fd2776d8569d5e8a1ab62df1f6d4f"
dependencies:
jsonify "0.0.0"
pause-stream "0.0.7"
Expand Down