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

contributing: Add auto-labelling to pull requests #531

Merged
merged 8 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
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
88 changes: 88 additions & 0 deletions .github/labeler.yml
nilason marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
libraries:
nilason marked this conversation as resolved.
Show resolved Hide resolved
- changed-files:
- any-glob-to-any-file:
- lib/**/*
- include/grass/*
- include/grass/**/*
- python/**/*
module:
nilason marked this conversation as resolved.
Show resolved Hide resolved
- changed-files:
- any-glob-to-any-file:
- db/**/*
- display/**/*
- general/**/*
- imagery/**/*
- misc/**/*
- ps/**/*
- raster/**/*
- raster3d/**/*
- scripts/**/*
- temporal/**/*
- vector/**/*
vector:
- changed-files:
- any-glob-to-any-file: vector/**/*
raster:
- changed-files:
- any-glob-to-any-file: raster/**/*
temporal:
- changed-files:
- any-glob-to-any-file: temporal/**/*
database:
- changed-files:
- any-glob-to-any-file: db/**/*
GUI:
- changed-files:
- any-glob-to-any-file: gui/**/*
Windows:
- changed-files:
- any-glob-to-any-file: mswindows/**/*
macOS:
- changed-files:
- any-glob-to-any-file: macosx/**/*
Linux:
- changed-files:
- any-glob-to-any-file: singularity/**/*
docker:
neteler marked this conversation as resolved.
Show resolved Hide resolved
- changed-files:
- any-glob-to-any-file: docker/**/*
docs:
nilason marked this conversation as resolved.
Show resolved Hide resolved
- changed-files:
- any-glob-to-any-file:
- doc/**/*
- man/**/*
RFC:
- changed-files:
- any-glob-to-any-file: doc/development/rfc/*
translation:
- changed-files:
- any-glob-to-any-file: locale/**/*
CI:
- changed-files:
- any-glob-to-any-file:
- .github/**/*
- .travis/**/*

# based on file types
Python:
- changed-files:
- any-glob-to-any-file: '**/*.py'
C:
- changed-files:
- any-glob-to-any-file: '**/*.c'
C++:
- changed-files:
- any-glob-to-any-file: '**/*.cpp'
CSS:
- changed-files:
- any-glob-to-any-file: '**/*.css'
HTML:
- changed-files:
- any-glob-to-any-file: '**/*.html'
JavaScript:
- changed-files:
- any-glob-to-any-file: '**/*.js'
Markdown:
- changed-files:
- any-glob-to-any-file: '**/*.md'
25 changes: 25 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Pull Request Labeler

# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/master/README.md

on:
- pull_request_target

permissions: {}

nilason marked this conversation as resolved.
Show resolved Hide resolved
jobs:
labeler:
nilason marked this conversation as resolved.
Show resolved Hide resolved
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
sync-labels: true
Loading