From 5d7811f2e47982091604261eb6abc4c0346bcae3 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:07:06 -0800 Subject: [PATCH] senzing-factory/build-resources#82 standardized labels --- .../add-label-customer-submission.yaml | 20 ------------------- .github/workflows/add-label-triage.yaml | 15 -------------- .../workflows/add-labels-standardized.yaml | 16 +++++++++++++++ 3 files changed, 16 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/add-label-customer-submission.yaml delete mode 100644 .github/workflows/add-label-triage.yaml create mode 100644 .github/workflows/add-labels-standardized.yaml diff --git a/.github/workflows/add-label-customer-submission.yaml b/.github/workflows/add-label-customer-submission.yaml deleted file mode 100644 index f9dd8e8..0000000 --- a/.github/workflows/add-label-customer-submission.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: add-label-customer-submission.yaml -on: - issues: - types: - - opened -env: - MEMBER_LIST: ${{ secrets.SENZING_MEMBERS }} - CREATOR: ${{ github.actor }} -jobs: - automate-issues-labels: - name: Add customer-submission label to issue - runs-on: ubuntu-latest - steps: - - name: Add customer-submission label - env: - BOOL: ${{ contains( env.MEMBER_LIST, env.CREATOR ) }} - if: ${{ env.BOOL == 'false' }} - uses: andymckay/labeler@1.0.4 - with: - add-labels: "customer-submission" diff --git a/.github/workflows/add-label-triage.yaml b/.github/workflows/add-label-triage.yaml deleted file mode 100644 index fc32b8c..0000000 --- a/.github/workflows/add-label-triage.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: add-label-triage.yaml -on: - issues: - types: - - reopened - - opened -jobs: - automate-issues-labels: - name: Add triage label to issue - runs-on: ubuntu-latest - steps: - - name: Add triage label - uses: andymckay/labeler@1.0.4 - with: - add-labels: "triage" diff --git a/.github/workflows/add-labels-standardized.yaml b/.github/workflows/add-labels-standardized.yaml new file mode 100644 index 0000000..c20a712 --- /dev/null +++ b/.github/workflows/add-labels-standardized.yaml @@ -0,0 +1,16 @@ +name: 'add labels standardized' + +on: + issues: + types: + - opened + - reopened + +jobs: + add-issue-labels: + permissions: + issues: write + secrets: + ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }} + SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }} + uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v1