summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlex Corey <alex.swansboro@gmail.com>2022-08-22 17:31:49 +0200
committerAlex Corey <alex.swansboro@gmail.com>2022-08-22 17:31:49 +0200
commit2b4b8839d166ab37c40f9c6f2cf06bb5334adbe5 (patch)
treefedeb074d369cc1906a1ee206531acda98f9dc4a /.github/workflows
parentReplace gethostbyname to getaddrinfo for plugins ipv6 support related #11450 ... (diff)
downloadawx-2b4b8839d166ab37c40f9c6f2cf06bb5334adbe5.tar.xz
awx-2b4b8839d166ab37c40f9c6f2cf06bb5334adbe5.zip
Edits existing PR body
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update_dependabot_prs.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/update_dependabot_prs.yml b/.github/workflows/update_dependabot_prs.yml
new file mode 100644
index 0000000000..a2a5b8b8a0
--- /dev/null
+++ b/.github/workflows/update_dependabot_prs.yml
@@ -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"