|
|
@ -41,6 +41,7 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/github-script@v7 # v6
|
|
|
|
- uses: actions/github-script@v7 # v6
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
if (!context.payload.pull_request.merged) {
|
|
|
|
if (!context.payload.pull_request.merged) {
|
|
|
|
console.log('PR was not merged, skipping.');
|
|
|
|
console.log('PR was not merged, skipping.');
|
|
|
@ -56,9 +57,10 @@ jobs:
|
|
|
|
owner: context.repo.owner,
|
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
state: 'open',
|
|
|
|
state: 'open',
|
|
|
|
sort: 'due_on',
|
|
|
|
sort: 'title',
|
|
|
|
direction: 'asc'
|
|
|
|
direction: 'desc'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
if (milestones.data.length === 0) {
|
|
|
|
if (milestones.data.length === 0) {
|
|
|
|
console.log('There are no milestones, skipping.');
|
|
|
|
console.log('There are no milestones, skipping.');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|