diff options
author | Philip H <47042125+pheiduck@users.noreply.github.com> | 2023-08-19 14:30:47 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-19 14:45:26 +0200 |
commit | 6d192a4ac9ba600ec28eb86d2cc45dea67f5922b (patch) | |
tree | 5ad8452bb2b94c9cd117a82f4c7d128ae998f2ff /.github | |
parent | b23db545ce7cb09ab08f1c5bfde97f44da2e8d00 (diff) |
patch 9.0.1748: CI: cannot label issues automaticallyv9.0.1748
Problem: CI: cannot label issues automatically
Solution: Create CI labeler
closes: #12788
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/labeler.yml | 58 | ||||
-rw-r--r-- | .github/workflows/label.yml | 23 |
2 files changed, 81 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..8e2337c6e4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,58 @@ +# list of labels and minimatch globs to match to apply the label. + +CI: +- any: ['.cirrus.yml'] +- any: ['.github/**'] +- any: ['.appveyor.yml'] +- any: ['.codecov.yml'] + +translation: +- any: ['src/po/*.po'] + +if_lua: +- any: ['src/if_lua.c'] +- any: ['src/proto/if_lua.pro'] +- any: ['runtime/doc/if_lua.txt'] + +if_mzscheme: +- any: ['src/if_mzsch.c'] +- any: ['src/if_mzsch.h'] +- any: ['src/proto/if_mzsch.pro'] +- any: ['runtime/doc/if_mzsch.txt'] + +if_perl: +- any: ['src/if_perl.xs'] +- any: ['src/if_perlsfio.c'] +- any: ['src/proto/if_perl.pro'] +- any: ['src/proto/if_perlsfio.pro'] +- any: ['runtime/doc/if_perl.txt'] + +if_python: +- any: ['src/if_py_both.h'] +- any: ['runtime/doc/if_pyth.txt'] +- any: ['src/if_python.c'] +- any: ['src/if_python3.c'] +- any: ['src/proto/if_python.pro'] +- any: ['src/proto/if_python3.pro'] + +if_ruby: +- any: ['src/if_ruby.c'] +- any: ['src/proto/if_ruby.pro'] +- any: ['runtime/doc/if_ruby.txt'] + +if_tcl: +- any: ['src/if_tcl.c'] +- any: ['src/proto/if_tcl.pro'] +- any: ['runtime/doc/if_tcl.txt'] + +runtime: +- any: ['runtime/ftplugin'] +- any: ['runtime/syntax'] +- any: ['runtime/indent'] +- any: ['runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'] + +termdebug: runtime/pack/dist/opt/termdebug/plugin/termdebug.vim + +netrw: +- any: ['runtime/plugin/netrwPlugin.vim'] +- any: ['runtime/autoload/netrw*'] diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000..be44c11ec4 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,23 @@ +# 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 + +name: Labeler +on: [pull_request_target] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: '' |