From 9bfd466a0cb9c1a32ba981c7af5cf9784972c277 Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Wed, 24 Jan 2024 01:26:45 +0000 Subject: [PATCH] Add standard ponylang organization "discuss during sync" --- .github/workflows/add-discuss-during-sync.yml | 29 +++++++++++++++++++ .../workflows/remove-discuss-during-sync.yml | 19 ++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/add-discuss-during-sync.yml create mode 100644 .github/workflows/remove-discuss-during-sync.yml diff --git a/.github/workflows/add-discuss-during-sync.yml b/.github/workflows/add-discuss-during-sync.yml new file mode 100644 index 0000000..46d3f13 --- /dev/null +++ b/.github/workflows/add-discuss-during-sync.yml @@ -0,0 +1,29 @@ +name: Add discuss during sync label + +on: + issues: + types: + - opened + - reopened + issue_comment: + types: + - created + pull_request_target: + types: + - opened + - edited + - ready_for_review + - reopened + pull_request_review: + types: + - submitted + +jobs: + add-label: + runs-on: ubuntu-latest + steps: + - name: Add "discuss during sync" label to active GH entity + uses: andymckay/labeler@467347716a3bdbca7f277cb6cd5fa9c5205c5412 + with: + repo-token: ${{ secrets.PONYLANG_MAIN_API_TOKEN }} + add-labels: "discuss during sync" diff --git a/.github/workflows/remove-discuss-during-sync.yml b/.github/workflows/remove-discuss-during-sync.yml new file mode 100644 index 0000000..c4d7d6d --- /dev/null +++ b/.github/workflows/remove-discuss-during-sync.yml @@ -0,0 +1,19 @@ +name: Remove discuss during sync label + +on: + issues: + types: + - closed + pull_request_target: + types: + - closed + +jobs: + remove-label: + runs-on: ubuntu-latest + steps: + - name: Remove label + uses: andymckay/labeler@467347716a3bdbca7f277cb6cd5fa9c5205c5412 + with: + repo-token: ${{ secrets.PONYLANG_MAIN_API_TOKEN }} + remove-labels: "discuss during sync"