From 21d92d7be06edbbb6c755e489fd259cbb804d86b Mon Sep 17 00:00:00 2001 From: KTrain5369 <69028025+KTrain5169@users.noreply.github.com> Date: Sun, 14 Jul 2024 16:33:40 +1000 Subject: [PATCH] fix: workflows prettier only got a prettier formatting change :/ --- .github/labels.yml | 2 +- .github/workflows/first_contrib.yml | 6 +++++- .github/workflows/pr_management.yml | 12 +++++++----- .github/workflows/prettier.yml | 1 + 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index b56bbcd..310a5ea 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -13,4 +13,4 @@ labels: - body: "- [x] Tick this box if you made changes that may or may not break site functionality." - name: "Merge conflict identified" conditions: - - mergable: false + - mergeable: false diff --git a/.github/workflows/first_contrib.yml b/.github/workflows/first_contrib.yml index 5c81eb0..d642697 100644 --- a/.github/workflows/first_contrib.yml +++ b/.github/workflows/first_contrib.yml @@ -1,6 +1,10 @@ name: Greetings -on: [pull_request, issues] +on: + issues: + types: [opened] + pull_request_target: + types: [opened] jobs: greeting: diff --git a/.github/workflows/pr_management.yml b/.github/workflows/pr_management.yml index f5274f2..c31a66b 100644 --- a/.github/workflows/pr_management.yml +++ b/.github/workflows/pr_management.yml @@ -1,30 +1,32 @@ name: Auto Label PRs, then add assignees and reviewers automatically. -run-name: PR management +run-name: PR management stuff on: pull_request_target: - types: [opened, reopened, edited, synchronize] + types: [opened, reopened, edited, synchronize, labeled] jobs: add_labels_reviewers_assignees: - name: Add labels, then reviewers & assignees + name: Add labels, reviewers & assignees runs-on: ubuntu-latest steps: - name: Auto-assign PR author as assignee - if: github.event.action == 'opened' + if: github.event.action == 'opened' || github.event.action == 'reopened' id: author-assignee uses: itsOliverBott/assign-pr-author-as-assignee@release with: token: ${{ secrets.GITHUB_TOKEN }} - name: Label PR based on content + if: github.event.action != 'labeled' id: label-pr uses: prulloac/configurable-pr-labeler@v1.1.2 with: token: ${{ secrets.GITHUB_TOKEN }} - name: Assign/unassign reviewers + if: github.event.action == 'ready_for_review' id: assign-reviewers uses: totallymoney/assign-reviewers-by-labels-action@v1.2.0 with: @@ -56,7 +58,7 @@ jobs: - name: Assigned/unassigned reviewers failure(?) debug log if: steps.assign-reviewers.outputs.assigned_status == 'info' && steps.assign_reviewers.outputs.unassigned_status == 'info' run: | - echo "Uh-oh! I ran into an issue when assigning/unassigning reviewers! Here's some info: \n" + echo "Uh-oh! I probably ran into an issue when assigning/unassigning reviewers! Here's some info: \n" echo "PR I attempted to assign reviewers to: ${{ steps.assign_reviewers.outputs.assigned_url }}" echo "Commit SHA: ${{ github.sha }}" diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 8a457ec..d4b2269 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -3,6 +3,7 @@ name: "Prettier" on: push: pull_request: + types: [opened, reopened, ready_for_review, synchronize] jobs: prettier-check: