We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 147b66f commit 7edcc03Copy full SHA for 7edcc03
.github/workflows/milestone.yaml
@@ -30,13 +30,11 @@ jobs:
30
console.log('PR was not merged, skipping.');
31
return;
32
}
33
-
34
if (!!context.payload.pull_request.milestone) {
35
console.log('PR has existing milestone, skipping.');
36
37
38
39
- milestones = await github.issues.listMilestones({
+ milestones = await github.rest.issues.listMilestones({
40
owner: context.repo.owner,
41
repo: context.repo.repo,
42
state: 'open',
@@ -47,8 +45,7 @@ jobs:
47
45
console.log('There are no milestones, skipping.');
48
46
49
50
51
- await github.issues.update({
+ await github.rest.issues.update({
52
53
54
issue_number: context.payload.pull_request.number,
0 commit comments