mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Fix typo in Readme example
$label was not defined as input argument. Also updated job name to reflect what it actually does.
This commit is contained in:
parent
315fb4f388
commit
01904b97ff
1 changed files with 2 additions and 2 deletions
|
|
@ -202,14 +202,14 @@ You can use the `github.graphql` object to run custom GraphQL queries against th
|
|||
```yaml
|
||||
|
||||
jobs:
|
||||
list-packages:
|
||||
list-issues:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v3
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const query = `query($owner:String!, $name:String!) {
|
||||
const query = `query($owner:String!, $name:String!, $label:String!) {
|
||||
repository(owner:$owner, name:$name){
|
||||
issues(first:100, labels: [$label]) {
|
||||
nodes {
|
||||
|
|
|
|||
Loading…
Reference in a new issue