Skip to content

Commit

Permalink
Merge a0d7aa7 into 92696d2
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed Dec 7, 2019
2 parents 92696d2 + a0d7aa7 commit 0f9055e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
}
},

"rules": {
"camelcase": "off"
},

"overrides": [
{
"files": [ "test/**/*.js" ],
Expand Down
2 changes: 1 addition & 1 deletion lib/getPullRequestLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ async function getPullRequestLabel(githubRepo, validLabels, pullRequestId, { git
const validLabelNames = Array.from(validLabels.keys());

const [ owner, repo ] = githubRepo.split('/');
const params = { owner, repo, number: pullRequestId };
const params = { owner, repo, issue_number: pullRequestId };
const { data: labels } = await githubClient.issues.listLabelsOnIssue(params);

const listOfLabels = validLabelNames.join(', ');
Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/getPullRequestLabelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('requests the labels for the correct repo and pull request', async (t) => {

t.is(githubClient.issues.listLabelsOnIssue.callCount, 1);
t.deepEqual(githubClient.issues.listLabelsOnIssue.firstCall.args, [
{ owner: 'any', repo: 'repo', number: 123 }
{ owner: 'any', repo: 'repo', issue_number: 123 }
]);
});

Expand Down

0 comments on commit 0f9055e

Please sign in to comment.