Skip to content

Commit

Permalink
Edits existing PR body
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSCorey committed Aug 22, 2022
1 parent dba33f9 commit 2b4b883
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update_dependabot_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Dependency Pr Update
on:
pull_request:
types: [labeled, opened, reopened]

jobs:
pr-check:
name: Update Dependabot Prs
if: contains(github.event.pull_request.labels.*.name, 'dependencies') && contains(github.event.pull_request.labels.*.name, 'component:ui')
runs-on: ubuntu-latest

steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Update PR Body
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
BRANCH: ${{github.event.pull_request.head.ref}}
PR: ${{github.event.pull_request}}
run: |
gh pr checkout ${{ env.BRANCH }}
gh pr edit --body "${{ env.PR }} Bug, Docs Fix or other nominal change"

0 comments on commit 2b4b883

Please sign in to comment.