Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions lib/node-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function resolveLabelsThenUpdatePr (options) {
options.logger.debug('Fetching PR files for labelling')

githubClient.pullRequests.getFiles({
user: options.owner,
owner: options.owner,
repo: options.repo,
number: options.prId
}, (err, res) => {
Expand Down Expand Up @@ -48,7 +48,7 @@ function updatePrWithLabels (options, labels) {
options.logger.debug('Trying to add labels: ' + labels)

githubClient.issues.addLabels({
user: options.owner,
owner: options.owner,
repo: options.repo,
number: options.prId,
body: labels
Expand All @@ -70,7 +70,7 @@ function removeLabelFromPR (options, label) {
options.logger.debug('Trying to remove label: ' + label)

githubClient.issues.removeLabel({
user: options.owner,
owner: options.owner,
repo: options.repo,
number: options.prId,
name: label
Expand Down Expand Up @@ -111,7 +111,7 @@ function fetchLabelPages (options, startPageNum, cb) {
// the github client API is somewhat misleading,
// this fetches *all* repo labels not just for an issue
githubClient.issues.getLabels({
user: options.owner,
owner: options.owner,
repo: options.repo,
page: startPageNum,
per_page: 100
Expand Down
4 changes: 2 additions & 2 deletions lib/pollTravis.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports.pollThenStatus = pollByCommitThenStatus
*/
function pollByCommitThenStatus (options) {
githubClient.pullRequests.getCommits({
user: options.owner,
owner: options.owner,
repo: options.repo,
number: options.pr
}, (err, commitMetas) => {
Expand Down Expand Up @@ -95,7 +95,7 @@ function pollTravisBuildBySha (options, checkNumber = 1) {
function createGhStatusFn (options) {
return (state, travisId, message) => {
githubClient.repos.createStatus({
user: options.owner,
owner: options.owner,
repo: options.repo,
sha: options.lastCommit.sha,
target_url: `https://travis-ci.org/${options.owner}/${options.repo}/builds/${travisId}`,
Expand Down
4 changes: 2 additions & 2 deletions lib/push-jenkins-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function findPrInRef (gitRef) {

function findLatestCommitInPr (options, cb) {
githubClient.pullRequests.getCommits({
user: options.owner,
owner: options.owner,
repo: options.repo,
number: options.pr
}, (err, commitMetas) => {
Expand All @@ -81,7 +81,7 @@ function findLatestCommitInPr (options, cb) {

function createGhStatus (options, logger) {
githubClient.repos.createStatus({
user: options.owner,
owner: options.owner,
repo: options.repo,
sha: options.sha,
target_url: options.url,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"debug": "^2.2.0",
"dotenv": "^2.0.0",
"express": "^4.13.4",
"github": "^2.5.2",
"github": "^7.0.1",
"glob": "^7.0.3",
"lru-cache": "^4.0.1",
"travis-ci": "^2.1.0"
Expand Down