-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,6 @@ jobs: | |
- name: Install js-yaml | ||
run: npm install [email protected] | ||
|
||
- name: Install @octokit/rest | ||
run: npm install @octokit/rest | ||
|
||
- name: Compare CODEOWNERS | ||
id: compare-codeowners | ||
env: | ||
|
@@ -88,14 +85,6 @@ jobs: | |
const maintainersFile = './community/MAINTAINERS.yaml'; | ||
const maintainers = yaml.safeLoad(fs.readFileSync(maintainersFile, 'utf8')); | ||
|
||
const { Octokit } = require("@octokit/rest"); | ||
|
||
const octokit = new Octokit({ | ||
auth: process.env.GITHUB_TOKEN, | ||
request: { | ||
fetch: (url, options) => fetch(url, options) | ||
} | ||
}); | ||
|
||
// Update for added usernames | ||
for (const username of addedUsernames) { | ||
|
@@ -107,7 +96,7 @@ jobs: | |
|
||
const maintainer = maintainers.find(maintainer => maintainer.github === username); | ||
if (!maintainer) { | ||
const { data } = await octokit.users.getByUsername({ username }); | ||
const { data } = await github.rest.users.getByUsername({ username }); | ||
const twitterUsername = data.twitter_username; | ||
maintainers.push({ | ||
github: username, | ||
|