Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01904b9

Browse files
authored
Fix typo in Readme example
$label was not defined as input argument. Also updated job name to reflect what it actually does.
1 parent 315fb4f commit 01904b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,14 @@ You can use the `github.graphql` object to run custom GraphQL queries against th
202202
```yaml
203203
204204
jobs:
205-
list-packages:
205+
list-issues:
206206
runs-on: ubuntu-latest
207207
steps:
208208
- uses: actions/github-script@v3
209209
with:
210210
github-token: ${{secrets.GITHUB_TOKEN}}
211211
script: |
212-
const query = `query($owner:String!, $name:String!) {
212+
const query = `query($owner:String!, $name:String!, $label:String!) {
213213
repository(owner:$owner, name:$name){
214214
issues(first:100, labels: [$label]) {
215215
nodes {

0 commit comments

Comments
 (0)