From c7f99ed16d2077cd3c37c426ea49b5942500f63b Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:05:07 -0800 Subject: [PATCH] senzing-factory/build-resources#82 standardized labels (#67) --- .../workflows/add-labels-standardized.yaml | 16 +++++++++++++ .github/workflows/add-triage-label.yaml | 21 ---------------- .github/workflows/identify-customer.yaml | 24 ------------------- 3 files changed, 16 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/add-labels-standardized.yaml delete mode 100644 .github/workflows/add-triage-label.yaml delete mode 100644 .github/workflows/identify-customer.yaml 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 diff --git a/.github/workflows/add-triage-label.yaml b/.github/workflows/add-triage-label.yaml deleted file mode 100644 index bdbefae..0000000 --- a/.github/workflows/add-triage-label.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Based on -# - https://docs.github.com/en/actions/guides/adding-labels-to-issues -# - https://github.com/andymckay/labeler - -name: add-triage-label.yaml - -on: - issues: - types: - - reopened - - opened - -jobs: - add-triage-label: - name: Add triage label to issue - runs-on: ubuntu-latest - steps: - - name: initial labeling - uses: andymckay/labeler@1.0.4 - with: - add-labels: "triage" diff --git a/.github/workflows/identify-customer.yaml b/.github/workflows/identify-customer.yaml deleted file mode 100644 index 2e9a0da..0000000 --- a/.github/workflows/identify-customer.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: identify-customer.yaml - -on: - issues: - types: - - opened - -env: - GITHUB_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }} - MEMBER_LIST: ${{ secrets.SENZING_MEMBERS }} - CREATOR: ${{ github.actor }} - -jobs: - identify-customer: - name: Add customer-submission label - runs-on: ubuntu-latest - steps: - - name: initial labeling - env: - BOOL: ${{ contains( env.MEMBER_LIST, env.CREATOR ) }} - if: ${{ env.BOOL == 'false' }} - uses: andymckay/labeler@1.0.4 - with: - add-labels: "customer-submission"