Skip to content

Commit 3e127f0

Browse files
authored
Merge pull request #14 from blombard/fix/typo
Fix repository typo
2 parents 1c138c3 + 079f981 commit 3e127f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const run = async () => {
1616

1717
const octokit = github.getOctokit(token);
1818
const owner = github.context.payload.sender && github.context.payload.sender.login;
19-
const repo = github.context.payload.repositor && github.context.payload.repository.name;
19+
const repo = github.context.payload.repository && github.context.payload.repository.name;
2020
const { data } = await octokit.pulls.list({ owner, repo, state: 'open' });
2121

2222
data.forEach(({ requested_reviewers, updated_at, number }) => {

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const run = async () => {
99

1010
const octokit = github.getOctokit(token);
1111
const owner = github.context.payload.sender && github.context.payload.sender.login;
12-
const repo = github.context.payload.repositor && github.context.payload.repository.name;
12+
const repo = github.context.payload.repository && github.context.payload.repository.name;
1313
const { data } = await octokit.pulls.list({ owner, repo, state: 'open' });
1414

1515
data.forEach(({ requested_reviewers, updated_at, number }) => {

index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jest.mock('@actions/core');
1919

2020
describe('Run the test suite', () => {
2121
nock('https://api.github.com')
22-
.get(/\/repos\/.*\/\/pulls\?state=open/)
22+
.get(/\/repos\/.*\/pulls\?state=open/)
2323
.reply(200, [{ requested_reviewers: [{ login: 'foo' }], updated_at: '2011-01-26T19:01:12.000Z', number: 1 }]);
2424
nock('https://api.github.com')
25-
.post(/\/repos\/.*\/\/issues\/1\/comments/, { body: "Hey @foo ! Don't forget to review this PR !" })
25+
.post(/\/repos\/.*\/issues\/1\/comments/, { body: "Hey @foo ! Don't forget to review this PR !" })
2626
.reply(200, {});
2727

2828
test('it should be a success when the params are good', async () => {

0 commit comments

Comments
 (0)