From 93c7324844942a5b9ae1fede2665ad98d416321b Mon Sep 17 00:00:00 2001 From: "Suneet Tipirneni (Siris)" Date: Fri, 6 Mar 2020 11:46:42 -0500 Subject: [PATCH] Marks PR's and issues as "Stale" and add PR auto labeler (#3738) * Marks PR's and issues as "Stale" * set "stale" time period to 90 days. * Add labeler.yml * Add labeler workflow. * test workflow. * undo last commit --- .github/labeler.yml | 25 +++++++++++++++++++++++++ .github/workflows/label.yml | 18 ++++++++++++++++++ .github/workflows/stale.yml | 21 +++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..15cc67a692 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,25 @@ +towny-war: + - src/com/palmergames/bukkit/towny/war/* + +commands: + - src/com/palmergames/bukkit/towny/command/* + +towny-objects: + - src/com/palmergames/bukkit/towny/object/* + +database: + - src/com/palmergames/bukkit/towny/db/* + +towny-chat: + - src/com/palmergames/bukkit/towny/chat/* + +economy: + - src/com/palmergames/bukkit/towny/object/EconomyAccount.java + - src/com/palmergames/bukkit/towny/object/EconomyHandler.java + - src/com/palmergames/bukkit/towny/TownyEconomyHandler.java + +events: + - src/com/palmergames/bukkit/towny/event/* + +github: + - .github/* \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000..dda164312e --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,18 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Labeler +on: [pull_request] + +jobs: + label: + runs-on: ubuntu-latest + + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..5d6f7da626 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,21 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "This Issue hasn't had any activity in a while." + stale-pr-message: "This Pull Request hasn't had any activity in a while." + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' + days-before-stale: 90 +