From 44f9d178c5b1e1d4b4af1ccad605aaee654bc40e Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 18 Mar 2021 19:03:37 +0100 Subject: [PATCH] Add label sponsor --- .github/labels.yml | 22 +++++++++++++++------- .github/stale.yml | 3 ++- .github/workflows/label-sponsor.yml | 21 +++++++++++++++++++++ 3 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/label-sponsor.yml diff --git a/.github/labels.yml b/.github/labels.yml index 3444025..ac87246 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -47,26 +47,34 @@ name: ":pray: help wanted" color: "4caf50" description: "" -- # hold - name: ":hand: hold" - color: "24292f" - description: "" - # invalid name: ":no_entry_sign: invalid" color: "e6e6e6" description: "" -- # maybe bug - name: ":interrobang: maybe bug" - color: "ff5722" +- # investigate + name: ":mag: investigate" + color: "e6625b" description: "" - # needs more info name: ":thinking: needs more info" color: "795548" description: "" +- # pinned + name: ":pushpin: pinned" + color: "28008e" + description: "" - # question name: ":question: question" color: "3f51b5" description: "" +- # sponsor + name: ":sparkling_heart: sponsor" + color: "fedbf0" + description: "" +- # stale + name: ":skull: stale" + color: "237da0" + description: "" - # upstream name: ":eyes: upstream" color: "fbca04" diff --git a/.github/stale.yml b/.github/stale.yml index cf504f7..3451699 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -4,7 +4,8 @@ daysUntilStale: 30 daysUntilClose: 7 # Issues with these labels will never be considered stale exemptLabels: - - ":hand: hold" + - ":pushpin: pinned" + - ":game_die: dependencies" # Set to true to ignore issues in a milestone (defaults to false) exemptMilestones: true # Label to use when marking an issue as stale diff --git a/.github/workflows/label-sponsor.yml b/.github/workflows/label-sponsor.yml new file mode 100644 index 0000000..749b9a6 --- /dev/null +++ b/.github/workflows/label-sponsor.yml @@ -0,0 +1,21 @@ +name: label-sponsor + +on: + pull_request: + types: + - 'opened' + issues: + types: + - 'opened' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Set sponsor label + uses: JasonEtco/is-sponsor-label-action@v1 + with: + label: ":sparkling_heart: sponsor" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}