Skip to content

chore: automatic rebase tests #21

chore: automatic rebase tests

chore: automatic rebase tests #21

name: Automatic rebase
on:
workflow_dispatch: ~
push:
branches:
- master
jobs:
rebase:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
const query = `query($owner:String!, $name:String!, $labels:[String!]) {
repository(owner:$owner, name:$name){
pullRequests(labels: $labels, first: 50) {
nodes {
headRefName
}
}
}
}`;
const variables = {
owner: context.repo.owner,
name: context.repo.repo,
labels: ['Module']
}
const result = await github.graphql(query, variables)
const branches = result.repository.pullRequests.nodes.map(node => node.headRefName))
branches.forEach(b => {
})
-

Check failure on line 38 in .github/workflows/automatic-rebase.yml

View workflow run for this annotation

GitHub Actions / Automatic rebase

Invalid workflow file

The workflow is not valid. .github/workflows/automatic-rebase.yml (Line: 38, Col: 14): Unexpected value '' .github/workflows/automatic-rebase.yml (Line: 40, Col: 9): Unexpected value 'run'
name: gh test
run: |
gh pr list --label Module --limit 50