Skip to content

Commit c65f6d7

Browse files
Merge pull request #4 from tharapalanivel/pr_label_wf
Fix workflow
2 parents 78a4820 + d26bffa commit c65f6d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/labelpr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
const valid_pr_types = ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert'];
1818
1919
if(context.payload.pull_request.comments === 0) {
20-
await github.issues.createComment({ ...context.repo, issue_number: context.payload.number, body: pr_welcome_msg});
20+
await github.rest.issues.createComment({ ...context.repo, issue_number: context.payload.number, body: pr_welcome_msg});
2121
}
2222
2323
const title = context.payload.pull_request.title;
@@ -32,4 +32,4 @@ jobs:
3232
const labels = context.payload.pull_request.labels;
3333
const new_labels = labels.filter(label => !valid_pr_types.includes(label.name)); // keep all labels that are not in valid_pr_types
3434
new_labels.push({name: pr_type});
35-
await github.issues.update({ ...context.repo, issue_number: context.payload.number, labels: new_labels });
35+
await github.rest.issues.update({ ...context.repo, issue_number: context.payload.number, labels: new_labels });

0 commit comments

Comments
 (0)