Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
prettier only got a prettier formatting change :/
  • Loading branch information
KTrain5169 committed Jul 14, 2024
1 parent a63114e commit 21d92d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion .github/workflows/first_contrib.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Greetings

on: [pull_request, issues]
on:
issues:
types: [opened]
pull_request_target:
types: [opened]

jobs:
greeting:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/pr_management.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Assign/unassign reviewers
if: github.event.action == 'ready_for_review'
id: assign-reviewers
uses: totallymoney/[email protected]
with:
Expand Down Expand Up @@ -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 }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: "Prettier"
on:
push:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]

jobs:
prettier-check:
Expand Down

0 comments on commit 21d92d7

Please sign in to comment.