dependabot / dependabot/dependabot-core

Opt-out of default `major/minor/patch` labels

Open
#3,465 12 comments 15 reactions 0 assignees View on GitHub
F: labels T: feature-request versioning
Dominant language
Ruby
Stars
5.8k
Forks
1.5k
Avg merge
2d 18h
Merged PRs (30d)
149

Description

I want all my dependencies updates from dependabot to have label "patch". I have added that to my config file.

```yaml
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
target-branch: "develop"
schedule:
interval: "daily"
labels:
- "chore"
- "patch"

- package-ecosystem: "github-actions"
directory: "/"
target-branch: "develop"
schedule:
interval: "daily"
labels:
- "chore"
- "patch"
```

If a dependency does a major or minor version change then I endup with duplicate labels. I use these labels to set the version of my releases so they must always be patch when coming from dependabot.

Example PR's https://github.com/DontShaveTheYak/cloud-radar/pull/12 https://github.com/DontShaveTheYak/cloud-radar/pull/14

Contributor guide

Open the contributing guide

Research direction

Start with the Dependabot configuration shown in the issue and reproduce the duplicate-label behavior using the linked example pull requests. Trace how labels are assigned for pip and github-actions updates, then identify the existing tests for update labels. Done means configured labels can prevent the default major/minor/patch labels from being added.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
devops, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.