dependabot / dependabot/dependabot-core

Create semver labels if they don't exist

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

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Feature description

Currently, the "semver label" is only added if the semver labels are registered beforehand

https://github.com/dependabot/dependabot-core/blob/72551e7acd730b8fdcdd1f995a759ebb1fd36b23/common/lib/dependabot/pull_request_creator/labeler.rb#L263C11-L271

It would be nice to update this logic to create them if they don't exist similarly to how we handle the language labels creation

https://github.com/dependabot/dependabot-core/blob/main/common/lib/dependabot/pull_request_creator/labeler.rb#L168-L174

## Note to maintainers

If accepted, I can work on this feature

Contributor guide

Open the contributing guide

Research direction

Start in common/lib/dependabot/pull_request_creator/labeler.rb, comparing the semver label logic around lines 263-271 with the language label creation around lines 168-174. Confirm how absent labels are handled and update the semver path so the labels are created when needed; done means semver labels no longer require prior registration.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.