mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +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:
@@ -202,14 +202,14 @@ You can use the `github.graphql` object to run custom GraphQL queries against th
|
|||||||
```yaml
|
```yaml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
list-packages:
|
list-issues:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v3
|
- uses: actions/github-script@v3
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
const query = `query($owner:String!, $name:String!) {
|
const query = `query($owner:String!, $name:String!, $label:String!) {
|
||||||
repository(owner:$owner, name:$name){
|
repository(owner:$owner, name:$name){
|
||||||
issues(first:100, labels: [$label]) {
|
issues(first:100, labels: [$label]) {
|
||||||
nodes {
|
nodes {
|
||||||
|
|||||||
Reference in New Issue
Block a user