Skip to content

Commit a31cced

Browse files
targosphillipj
authored andcommitted
chore: update github to v7.0.1 (nodejs#101)
1 parent b7c1558 commit a31cced

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎lib/node-repo.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function resolveLabelsThenUpdatePr (options) {
1515
options.logger.debug('Fetching PR files for labelling')
1616

1717
githubClient.pullRequests.getFiles({
18-
user: options.owner,
18+
owner: options.owner,
1919
repo: options.repo,
2020
number: options.prId
2121
}, (err, res) => {
@@ -48,7 +48,7 @@ function updatePrWithLabels (options, labels) {
4848
options.logger.debug('Trying to add labels: ' + labels)
4949

5050
githubClient.issues.addLabels({
51-
user: options.owner,
51+
owner: options.owner,
5252
repo: options.repo,
5353
number: options.prId,
5454
body: labels
@@ -70,7 +70,7 @@ function removeLabelFromPR (options, label) {
7070
options.logger.debug('Trying to remove label: ' + label)
7171

7272
githubClient.issues.removeLabel({
73-
user: options.owner,
73+
owner: options.owner,
7474
repo: options.repo,
7575
number: options.prId,
7676
name: label
@@ -111,7 +111,7 @@ function fetchLabelPages (options, startPageNum, cb) {
111111
// the github client API is somewhat misleading,
112112
// this fetches *all* repo labels not just for an issue
113113
githubClient.issues.getLabels({
114-
user: options.owner,
114+
owner: options.owner,
115115
repo: options.repo,
116116
page: startPageNum,
117117
per_page: 100

‎lib/pollTravis.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports.pollThenStatus = pollByCommitThenStatus
1616
*/
1717
function pollByCommitThenStatus (options) {
1818
githubClient.pullRequests.getCommits({
19-
user: options.owner,
19+
owner: options.owner,
2020
repo: options.repo,
2121
number: options.pr
2222
}, (err, commitMetas) => {
@@ -95,7 +95,7 @@ function pollTravisBuildBySha (options, checkNumber = 1) {
9595
function createGhStatusFn (options) {
9696
return (state, travisId, message) => {
9797
githubClient.repos.createStatus({
98-
user: options.owner,
98+
owner: options.owner,
9999
repo: options.repo,
100100
sha: options.lastCommit.sha,
101101
target_url: `https://travis-ci.org/${options.owner}/${options.repo}/builds/${travisId}`,

‎lib/push-jenkins-update.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function findPrInRef (gitRef) {
6161

6262
function findLatestCommitInPr (options, cb) {
6363
githubClient.pullRequests.getCommits({
64-
user: options.owner,
64+
owner: options.owner,
6565
repo: options.repo,
6666
number: options.pr
6767
}, (err, commitMetas) => {
@@ -81,7 +81,7 @@ function findLatestCommitInPr (options, cb) {
8181

8282
function createGhStatus (options, logger) {
8383
githubClient.repos.createStatus({
84-
user: options.owner,
84+
owner: options.owner,
8585
repo: options.repo,
8686
sha: options.sha,
8787
target_url: options.url,

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"debug": "^2.2.0",
2121
"dotenv": "^2.0.0",
2222
"express": "^4.13.4",
23-
"github": "^2.5.2",
23+
"github": "^7.0.1",
2424
"glob": "^7.0.3",
2525
"lru-cache": "^4.0.1",
2626
"travis-ci": "^2.1.0"

0 commit comments

Comments
 (0)