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

ci: let dependabot update used GitHub action's versions #1949

Merged
merged 2 commits into from
Dec 18, 2020
Merged
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
31 changes: 19 additions & 12 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
# dependabot.yml reference: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
# Automatically update python packages for the jupyterhub/k8s-hub image
- package-ecosystem: pip
directory: "/images/hub"
schedule:
interval: daily
open-pull-requests-limit: 4
versioning-strategy: lockfile-only
labels:
- maintenance
- dependencies
commit-message:
prefix: "hub image: "
# Maintain Python dependencies for the jupyterhub/k8s-hub image
- package-ecosystem: pip
directory: "/images/hub"
schedule:
interval: daily
open-pull-requests-limit: 4
versioning-strategy: lockfile-only
labels:
- maintenance
- dependencies
Comment on lines +12 to +13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is overriding the default dependabot labels:
https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/customizing-dependency-updates#setting-custom-labels

Are we using them for a particular purpose, or could we remove this bit of the config and rely on the defaults?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting to know! Hmm want github-activity to sort these PR quickly when generating a changelog, which based on current github-activity function means the maintenance label.

Id like a dedicated category for dependencies etc, but at this point its maintenance.

Can we add extra labels in a hardcoded way instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that's fine 😀. Just wanted to check it's an intentional override.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) thanks for review @manics! Merge?


# Maintain dependencies in our GitHub Workflows
- package-ecosystem: "github-actions"
directory: "/" # This should be / rather than .github/workflows
schedule:
interval: daily
labels:
- maintenance
- dependencies