chore: handle "Close with comment" (#23668)

This commit is contained in:
Matt Schile
2022-09-02 08:37:00 -06:00
committed by GitHub
parent 8b8f20eec7
commit 06beffdfe8
2 changed files with 8 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ on:
types:
- labeled
jobs:
add-to-e2e:
route-to-e2e:
if: github.event.label.name == 'routed-to-e2e'
runs-on: ubuntu-latest
steps:

View File

@@ -4,8 +4,12 @@ on:
types:
- created
jobs:
add-to-e2e:
if: ${{ !github.event.issue.pull_request && github.event.issue.state == 'closed' && github.event.sender.login != 'cypress-bot' }}
move-to-new-issue-status:
if: |
!github.event.issue.pull_request &&
github.event.issue.state == 'closed' &&
github.event.comment.created_at != github.event.issue.closed_at &&
github.event.sender.login != 'cypress-bot'
runs-on: ubuntu-latest
steps:
- name: Get project data
@@ -65,7 +69,7 @@ jobs:
- name: Move issue to New Issue status
env:
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_TOKEN }}
if: ${{ env.STATUS == 'Closed' }}
if: env.STATUS == 'Closed'
run: |
gh api graphql -f query='
mutation (