Skip to content

Commit 1a49f59

Browse files
committed
Handle deprecation of number param in Octokit
1 parent 70dbd8d commit 1a49f59

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ jobs:
3737
with:
3838
github-token: ${{secrets.GITHUB_TOKEN}}
3939
script: |
40-
github.issues.createComment({...context.issue, body: '👋 Thanks for reporting!'})
40+
github.issues.createComment({
41+
issue_number: context.issue,
42+
owner: context.owner,
43+
repo: context.repo,
44+
body: '👋 Thanks for reporting!'
45+
})
4146
```
4247
4348
### Apply a label to an issue
@@ -54,7 +59,12 @@ jobs:
5459
with:
5560
github-token: ${{secrets.GITHUB_TOKEN}}
5661
script: |
57-
github.issues.addLabels({...context.issue, labels: ['Triage']})
62+
github.issues.addLabels({
63+
issue_number: context.issue,
64+
owner: context.owner,
65+
repo: context.repo,
66+
labels: ['Triage']
67+
})
5868
```
5969
6070
### Welcome a first-time contributor
@@ -90,7 +100,12 @@ jobs:
90100
}
91101
}
92102
93-
await github.issues.createComment({...context.issue, body: 'Welcome, new contributor!'})
103+
await github.issues.createComment({
104+
issue_number: context.issue,
105+
owner: context.owner,
106+
repo: context.repo,
107+
body: 'Welcome, new contributor!'
108+
})
94109
```
95110
96111
### Download data from a URL

0 commit comments

Comments
 (0)