fix(ci): handle needs labels properly (#7689)
This commit is contained in:
parent
b1005af705
commit
474ea808e7
3 changed files with 7 additions and 8 deletions
11
.github/workflows/issue-labeled.yml
vendored
11
.github/workflows/issue-labeled.yml
vendored
|
@ -10,23 +10,22 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: remove triage
|
- name: remove triage
|
||||||
if: |
|
if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs triage')
|
||||||
${{ contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs: triage') }}
|
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
actions: "remove-labels"
|
actions: "remove-labels"
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.issue.number }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
labels: "needs: triage"
|
labels: "needs triage"
|
||||||
|
|
||||||
- name: needs repro
|
- name: needs repro
|
||||||
if: |
|
if: |
|
||||||
${{ github.event.label.name == 'needs: repro' }}
|
${{ github.event.label.name == 'needs repro' }}
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
actions: "create-comment, remove-labels"
|
actions: "create-comment, remove-labels"
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.issue.number }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
body: |
|
body: |
|
||||||
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new). Issues marked with `needs: repro` will be closed if they have no activity within 3 days.
|
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new). Issues marked with `needs repro` will be closed if they have no activity within 3 days.
|
||||||
labels: "needs: triage"
|
labels: "needs triage"
|
||||||
|
|
2
.github/workflows/issue-needs-repro.yml
vendored
2
.github/workflows/issue-needs-repro.yml
vendored
|
@ -14,5 +14,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
actions: "close-issues"
|
actions: "close-issues"
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
labels: "needs: repro"
|
labels: "needs repro"
|
||||||
inactive-day: 3
|
inactive-day: 3
|
||||||
|
|
2
.github/workflows/issue-opened.yml
vendored
2
.github/workflows/issue-opened.yml
vendored
|
@ -19,5 +19,5 @@ jobs:
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
labels: ["needs: triage"]
|
labels: ["needs triage"]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue