aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2023-07-17 14:48:24 -0500
committerGravatar GitHub <noreply@github.com> 2023-07-17 14:48:24 -0500
commit474ea808e7d982b93aa705d3d7cb0f7251518915 (patch)
treed4e6ea2ea6eea9dec0a3f2501c0bf457d146b922 /.github
parentb1005af70587bb2950470917ad1340b9c507e781 (diff)
downloadastro-474ea808e7d982b93aa705d3d7cb0f7251518915.tar.gz
astro-474ea808e7d982b93aa705d3d7cb0f7251518915.tar.zst
astro-474ea808e7d982b93aa705d3d7cb0f7251518915.zip
fix(ci): handle needs labels properly (#7689)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/issue-labeled.yml11
-rw-r--r--.github/workflows/issue-needs-repro.yml2
-rw-r--r--.github/workflows/issue-opened.yml2
3 files changed, 7 insertions, 8 deletions
diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml
index 853455ef3..441f97723 100644
--- a/.github/workflows/issue-labeled.yml
+++ b/.github/workflows/issue-labeled.yml
@@ -10,23 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: remove triage
- if: |
- ${{ contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs: triage') }}
+ if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs triage')
uses: actions-cool/issues-helper@v3
with:
actions: "remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
- labels: "needs: triage"
+ labels: "needs triage"
- name: needs repro
if: |
- ${{ github.event.label.name == 'needs: repro' }}
+ ${{ github.event.label.name == 'needs repro' }}
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment, remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
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.
- labels: "needs: triage"
+ 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"
diff --git a/.github/workflows/issue-needs-repro.yml b/.github/workflows/issue-needs-repro.yml
index 47b73ac5b..a859d85ad 100644
--- a/.github/workflows/issue-needs-repro.yml
+++ b/.github/workflows/issue-needs-repro.yml
@@ -14,5 +14,5 @@ jobs:
with:
actions: "close-issues"
token: ${{ secrets.GITHUB_TOKEN }}
- labels: "needs: repro"
+ labels: "needs repro"
inactive-day: 3
diff --git a/.github/workflows/issue-opened.yml b/.github/workflows/issue-opened.yml
index 83e195cd9..005d37208 100644
--- a/.github/workflows/issue-opened.yml
+++ b/.github/workflows/issue-opened.yml
@@ -19,5 +19,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
- labels: ["needs: triage"]
+ labels: ["needs triage"]
})