Skip to content

Commit

Permalink
PBB migration "Pull Request Trigger" (#7054)
Browse files Browse the repository at this point in the history
* Update pull-request-trigger.yml

edits for PBB migration

* Update pull-request-trigger.yml

remove test branch
  • Loading branch information
t-will-gillis committed Jun 23, 2024
1 parent 3fcd415 commit a4eab93
Showing 1 changed file with 1 addition and 55 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/pull-request-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,8 @@ on:
- 'gh-pages'

jobs:
# Run an echo to confirm that the action was triggered
# Placeholder action: Delete when new jobs added
Hello-World:
runs-on: ubuntu-latest
steps:
- run: echo "🍺 This job was automatically triggered by a ${{ github.event_name }} event."


# Moves newly opened PRs onto Project Board in column 'PR Needs review...'
Move-New-PRs-To-Project-Board:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'opened' }}
steps:
- name: Move Opened PR to Project Board
uses: alex-page/github-project-automation-plus@v0.9.0
with:
project: Project Board
column: 'PR Needs review (Automated Column, do not place items here manually)'
repo-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }}


# Gathers merged PRs from every location and moves to column 'test-approved-by-reviewer...'
Gather-Merged-PRs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true }}
steps:
- name: Gather Merged PRs
uses: alex-page/github-project-automation-plus@v0.9.0
with:
project: Project Board
column: 'test-approved-by-reviewer (Automated Column, do not place items here manually)'
repo-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }}


# Deletes merged PRs from column 'test-approved-by-reviewer...' after 'needs: Gather-Merged-PRs'
Delete-Merged-PRs:
needs: Gather-Merged-PRs
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true }}
steps:
- name: Delete Merged PRs
uses: alex-page/github-project-automation-plus@v0.9.0
with:
project: Project Board
column: 'test-approved-by-reviewer (Automated Column, do not place items here manually)'
repo-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }}
action: delete

# Removes PRs that are closed and not merged
Delete-Closed-And-Unmerged-PRs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == false && github.event.action == 'closed' }}
steps:
- name: Delete Closed and Unmerged PRs
uses: alex-page/github-project-automation-plus@v0.9.0
with:
project: Project Board
column: 'PR Needs review (Automated Column, do not place items here manually)'
repo-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }}
action: delete

0 comments on commit a4eab93

Please sign in to comment.