From f9cc0867fa8f2bb89eda5372c815fa89cbf94c2a Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 22 Jan 2024 12:57:05 -0800 Subject: [PATCH] senzing-factory/build-resources#82 standardized labels (#17) --- .../workflows/add-labels-standardized.yaml | 16 +++++++++ .github/workflows/add-triage-label.yaml | 23 ------------ .github/workflows/identify-customer.yaml | 35 ------------------- 3 files changed, 16 insertions(+), 58 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 f47ac8b..0000000 --- a/.github/workflows/add-triage-label.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# Based on -# - https://docs.github.com/en/actions/guides/adding-labels-to-issues -# - https://github.com/andymckay/labeler - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Simple Issue Labeler -on: - issues: - types: - - reopened - - opened -jobs: - automate-issues-labels: - 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 9f2cf0f..0000000 --- a/.github/workflows/identify-customer.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: identify_customer - -on: - issues: - types: - - opened -env: - GITHUB_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }} - MEMBER_LIST: ${{ secrets.SENZING_MEMBERS }} - CREATOR: ${{ github.actor }} - TITLE: ${{ github.event.issue.title }} - NUMBER: ${{ github.event.issue.number }} - TOKEN: ${{ secrets.SENZING_SLACK_BEARER_TOKEN }} - REPO_URL: ${{ github.repository }} - SLACK_HASHES: ${{ secrets.SENZING_GITHUB_SLACK_MAP }} - -jobs: - check-membership: - runs-on: ubuntu-latest - steps: - - name: run script - env: - BOOL: ${{ contains( env.MEMBER_LIST, env.CREATOR ) }} - if: ${{ env.BOOL == 'false' }} - uses: Senzing/github-action-identify-customer@main - automate-issues-labels: - 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"