From 6ae65ea36bc02ef0950191252c97b305e84c68b5 Mon Sep 17 00:00:00 2001 From: Florian Simmer Date: Sat, 25 Dec 2021 21:42:37 +0100 Subject: [PATCH] Github: Create Labeler workflow/action and labels.yml file --- .github/labels.yml | 42 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 24 ++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .github/labels.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000000..22e2bc7208 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,42 @@ +# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder +# source: +# - any: ['src/**/*', '!src/docs/*'] + + +πŸ›€οΈ Path: +- 'src/Mod/Path/**/*' + +πŸ› Arch: +- 'src/Mod/Arch/**/*' + +AddonManager: +- 'src/Mod/AddonManager/**/*' + +🚜 PartDesign: +- 'src/Mod/PartDesign/**/*' + +':pencil2: Sketcher': +- 'src/Mod/Sketcher/**/*' + +πŸ“ Draft: +- 'src/Mod/Draft/**/*' + +πŸ§ͺ FEM: +- 'src/Mod/Fem/**/*' + +βš™ TechDraw: +- 'src/Mod/TechDraw/**/*' + +🧱 Part: +- 'src/Mod/Part/**/*' + +πŸ₯…Mesh: +- 'src/Mod/Mesh/**/*' + +Spreadsheet: +- 'src/Mod/Spreadsheet/**/*' + +Core: +- 'src/App/**/*' +- 'src/Base/**/*' +- 'src/Gui/**/*' \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..5d0a3663a8 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,24 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: + pull_request: + types: [opened, reopened] + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: ".github/labels.yml" + sync-labels: false \ No newline at end of file