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

Automatically add labels to github pull requests #122

Open
Raruto opened this issue Aug 4, 2022 · 0 comments
Open

Automatically add labels to github pull requests #122

Raruto opened this issue Aug 4, 2022 · 0 comments
Assignees
Labels
github Changes related to the github platform

Comments

@Raruto
Copy link
Collaborator

Raruto commented Aug 4, 2022

Related to: #120, it may be worth adding labels automatically in order to generate releases notes in a simpler and faster way:

Here is a fairly comprehensive list of some the labels that could be used: https://github.com/qgis/QGIS/labels


Basic example:

# .github/labeler.yml

# Add 'label1' to any changes within 'example' folder or any subfolders
label1:
- example/**/*

# Add 'label2' to any file changes within 'example2' folder
label2: example2/*

# Add 'repo' label to any root file changes
repo:
- '*'

# Add '@domain/core' label to any change within the 'core' package
@domain/core:
- package/core/*
- package/core/**/*

# Add 'test' label to any change to *.spec.js files within the source dir
test:
- src/**/*.spec.js

# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- any: ['src/**/*', '!src/docs/*']

# Add 'frontend` label to any change to *.js files as long as the `main.js` hasn't changed
frontend:
- any: ['src/**/*.js']
  all: ['!src/main.js']
@Raruto Raruto added feature New feature or request help wanted Extra attention is needed labels Aug 4, 2022
@Raruto Raruto added github Changes related to the github platform needs discussion This issue or pull requires further discussion by the dev team and removed feature New feature or request help wanted Extra attention is needed needs discussion This issue or pull requires further discussion by the dev team labels Aug 5, 2022
@Raruto Raruto self-assigned this Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github Changes related to the github platform
Projects
None yet
Development

No branches or pull requests

1 participant