Skip to content

ci(dependabot): add explicit labels to remove default javascript labelΒ #409

@beatrizsmerino

Description

@beatrizsmerino

ci(dependabot): add explicit labels to remove default javascript label

⏱️ Estimate πŸ“Š Priority πŸ“ Size πŸ“… Start πŸ“… End
1h P2 XS 05-02-2026 05-02-2026

πŸ“Έ Screenshots

Current Expected
Image Image Image

πŸ“ Summary

  • Dependabot adds dependencies and javascript labels by default to npm PRs
  • The javascript label is redundant and does not provide useful information
  • Add explicit labels field to override defaults: dependencies and dependabot for npm, plus github_actions for github-actions ecosystem

πŸ’‘ Why this change?

  • Dependabot assigns default labels per ecosystem (dependencies + javascript for npm, dependencies + github_actions for github-actions)
  • The javascript label is misleading for non-JavaScript packages (e.g., stylelint): even though it may be written in JS internally, the package is for CSS β€” labeling it as javascript is confusing
  • Defining labels explicitly in dependabot.yml overrides the defaults

βœ… Benefits

  • Dependabot PRs use consistent labels (dependencies + dependabot) matching the project labeling convention
  • The misleading javascript label is no longer automatically applied to npm PRs
  • GitHub Actions PRs are distinguishable with the additional github_actions label

πŸ“‹ Steps

Phase 1: Configure explicit labels in dependabot.yml

  • Add labels field to the npm package-ecosystem with dependencies and dependabot:
- package-ecosystem: "npm"
  labels:
    - "dependencies"
    - "dependabot"
  • Add labels field to the github-actions package-ecosystem with dependencies, dependabot and github_actions:
- package-ecosystem: "github-actions"
  labels:
    - "dependencies"
    - "dependabot"
    - "github_actions"

πŸ§ͺ Tests

  • Verify dependabot.yml syntax is valid
  • Check next Dependabot PR only has the expected labels

πŸ”— References

Files to modify

  • .github/dependabot.yml

Documentation

Metadata

Metadata

Labels

configurationProject setup and configuration filesdependabotDependabot configuration and automated PRsgithub_actionsGitHub .github/ folder configuration

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions