Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal that dependabot PRs for the hub image require additional steps #1863

Merged
merged 8 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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