Skip to content

Commit 112b2c1

Browse files
Upgrade probot
#82
1 parent 557ece8 commit 112b2c1

File tree

3 files changed

+432
-98
lines changed

3 files changed

+432
-98
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = robot => {
4343

4444
const filename = `${pr.number.toString().padStart(5, '0')}.md`;
4545

46-
const labels = await context.github.issues.getIssueLabels(
46+
const labels = await context.github.issues.listLabelsOnIssue(
4747
context.repo({number: pr.number}),
4848
);
4949

@@ -71,7 +71,7 @@ module.exports = robot => {
7171
Promise.all(
7272
packages.map(async pkg => {
7373
try {
74-
const res = await context.github.repos.getContent(
74+
const res = await context.github.repos.getContents(
7575
context.repo({
7676
path: join(pkg, 'docs/migrations'),
7777
ref: pr.head.sha,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"fix": "eslint . --fix"
1414
},
1515
"dependencies": {
16-
"probot": "7.5.0"
16+
"probot": "^9.2.10"
1717
},
1818
"devDependencies": {
1919
"eslint": "5.14.1",

0 commit comments

Comments
 (0)