From de77ac9f49b75d3be8ab69578f56a7d3cc1980ad Mon Sep 17 00:00:00 2001 From: Cael Warner <52902343+CaelWarner@users.noreply.github.com> Date: Wed, 15 Dec 2021 11:24:05 -0800 Subject: [PATCH] Added "Label Issues" action - Added label_issues.yml to label issues with the correct MC version - Refactored manage_issues.yml to close_issues.yml --- .github/config/labels.yml | 10 ++++++++++ .../{manage_issues.yml => close_issues.yml} | 5 +++-- .github/workflows/label_issues.yml | 13 +++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/config/labels.yml rename .github/workflows/{manage_issues.yml => close_issues.yml} (94%) create mode 100644 .github/workflows/label_issues.yml diff --git a/.github/config/labels.yml b/.github/config/labels.yml new file mode 100644 index 000000000..c5a1bc5a6 --- /dev/null +++ b/.github/config/labels.yml @@ -0,0 +1,10 @@ +1.14: + - "1.14" +1.15: + - "1.15" +1.16: + - "1.16" +1.17: + - "1.17" +1.18: + - "1.18" diff --git a/.github/workflows/manage_issues.yml b/.github/workflows/close_issues.yml similarity index 94% rename from .github/workflows/manage_issues.yml rename to .github/workflows/close_issues.yml index 0b1b1a10f..d4e4b3b57 100644 --- a/.github/workflows/manage_issues.yml +++ b/.github/workflows/close_issues.yml @@ -1,10 +1,11 @@ -name: "Manage Issues" +name: "Close Issues" on: schedule: - cron: '0 */12 * * *' + workflow_dispatch: jobs: - stale: + close: runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/label_issues.yml b/.github/workflows/label_issues.yml new file mode 100644 index 000000000..1ab808c88 --- /dev/null +++ b/.github/workflows/label_issues.yml @@ -0,0 +1,13 @@ +name: "Label Issues" +on: + issues: + types: [opened, edited] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v2.0 + with: + configuration-path: .github/config/labels.yml + repo-token: ${{ secrets.GITHUB_TOKEN }}