Skip to content

Commit

Permalink
Merge pull request #1863 from GeorgianaElena/dependabot-msg
Browse files Browse the repository at this point in the history
Signal that dependabot PRs for the hub image require additional steps
  • Loading branch information
GeorgianaElena authored Nov 3, 2022
2 parents f559fbb + 5be369f commit aa73aa0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ updates:
dependency-name: "*" # Match all packages
reviewers:
- "2i2c-org/tech-team"
# Maintain dependencies for pip defined in helm-charts/images/hub folder (default hub image)
# Signal pip dependencies updates in helm-charts/images/hub folder (default hub image)
- package-ecosystem: "pip"
directory: "/helm-charts/images/hub"
schedule:
Expand All @@ -70,3 +70,7 @@ updates:
dependency-name: "*" # Match all packages
reviewers:
- "2i2c-org/tech-team"
labels:
# This dependabot PRs should not be merged as is, because additional manual steps are required also.
# Checkout https://infrastructure.2i2c.org/en/latest/topic/infrastructure/hub-image.html#updating-the-hub-image
- "requires follow-up"
19 changes: 19 additions & 0 deletions .github/workflows/comment-dependabot-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# From https://docs.github.com/en/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added
name: Comment dependabot PRs with specific label
on:
pull_request:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'requires follow-up'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body: |
After merging this PR, remember to take the additional manual steps described in https://infrastructure.2i2c.org/en/latest/topic/infrastructure/hub-image.html#updating-the-hub-image

0 comments on commit aa73aa0

Please sign in to comment.