diff --git a/.github/autolabeler.yml b/.github/autolabeler.yml deleted file mode 100644 index c9d1eee2b568f..0000000000000 --- a/.github/autolabeler.yml +++ /dev/null @@ -1,43 +0,0 @@ -configuration: - - .github/**/* - - /config/**/* - - /*.json - - /*.yml - - /*.yaml -dependencies: - - "*.gemspec" - - Gemfile - - Gemfile.lock - - package.json - - package-lock.json -javascript: "*.js" -"module: accountability": decidim-accountability/**/* -"module: admin": decidim-admin/**/* -"module: ai": decidim-ai/**/* -"module: api": decidim-api/**/* -"module: assemblies": decidim-assemblies/**/* -"module: blogs": decidim-blogs/**/* -"module: budgets": decidim-budgets/**/* -"module: comments": decidim-comments/**/* -"module: conferences": decidim-conferences/**/* -"module: consultations": decidim-consultations/**/* -"module: core": decidim-core/**/* -"module: debates": decidim-debates/**/* -"module: design": decidim-design/**/* -"module: dev": decidim-dev/**/* -"module: elections": decidim-elections/**/* -"module: forms": decidim-forms/**/* -"module: generators": decidim-generators/**/* -"module: initiatives": decidim-initiatives/**/* -"module: meetings": decidim-meetings/**/* -"module: pages": decidim-pages/**/* -"module: participatory processes": decidim-participatory_processes/**/* -"module: proposals": decidim-proposals/**/* -"module: sortitions": decidim-sortitions/**/* -"module: surveys": decidim-surveys/**/* -"module: system": decidim-system/**/* -"module: templates": decidim-templates/**/* -"module: verifications": decidim-verifications/**/* -"team: documentation": - - docs/**/* - - /README.adoc diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..62ccbc71512ac --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,119 @@ +"target: developer-experience": + - head-branch: ["^refactor"] + +"type: feature": + - head-branch: ["^feature"] + +"type: fix": + - head-branch: ["^fix"] + +"type: internal": + - head-branch: ["^deps", "^chore"] + +configuration: + - changed-files: + - any-glob-to-any-file: + - .github/**/* + - /config/**/* + - /*.json + - /*.yml + - /*.yaml + +dependencies: + - changed-files: + - any-glob-to-any-file: + - "*.gemspec" + - Gemfile + - Gemfile.lock + - package.json + - package-lock.json + +javascript: + - changed-files: + - any-glob-to-any-file: "*.js" +"module: accountability": + - changed-files: + - any-glob-to-any-file: decidim-accountability/**/* +"module: admin": + - changed-files: + - any-glob-to-any-file: decidim-admin/**/* +"module: ai": + - changed-files: + - any-glob-to-any-file: decidim-ai/**/* +"module: api": + - changed-files: + - any-glob-to-any-file: decidim-api/**/* +"module: assemblies": + - changed-files: + - any-glob-to-any-file: decidim-assemblies/**/* +"module: blogs": + - changed-files: + - any-glob-to-any-file: decidim-blogs/**/* +"module: budgets": + - changed-files: + - any-glob-to-any-file: decidim-budgets/**/* +"module: comments": + - changed-files: + - any-glob-to-any-file: decidim-comments/**/* +"module: conferences": + - changed-files: + - any-glob-to-any-file: decidim-conferences/**/* +"module: consultations": + - changed-files: + - any-glob-to-any-file: decidim-consultations/**/* +"module: core": + - changed-files: + - any-glob-to-any-file: decidim-core/**/* +"module: debates": + - changed-files: + - any-glob-to-any-file: decidim-debates/**/* +"module: design": + - changed-files: + - any-glob-to-any-file: decidim-design/**/* +"module: dev": + - changed-files: + - any-glob-to-any-file: decidim-dev/**/* +"module: elections": + - changed-files: + - any-glob-to-any-file: decidim-elections/**/* +"module: forms": + - changed-files: + - any-glob-to-any-file: decidim-forms/**/* +"module: generators": + - changed-files: + - any-glob-to-any-file: decidim-generators/**/* +"module: initiatives": + - changed-files: + - any-glob-to-any-file: decidim-initiatives/**/* +"module: meetings": + - changed-files: + - any-glob-to-any-file: decidim-meetings/**/* +"module: pages": + - changed-files: + - any-glob-to-any-file: decidim-pages/**/* +"module: participatory processes": + - changed-files: + - any-glob-to-any-file: decidim-participatory_processes/**/* +"module: proposals": + - changed-files: + - any-glob-to-any-file: decidim-proposals/**/* +"module: sortitions": + - changed-files: + - any-glob-to-any-file: decidim-sortitions/**/* +"module: surveys": + - changed-files: + - any-glob-to-any-file: decidim-surveys/**/* +"module: system": + - changed-files: + - any-glob-to-any-file: decidim-system/**/* +"module: templates": + - changed-files: + - any-glob-to-any-file: decidim-templates/**/* +"module: verifications": + - changed-files: + - any-glob-to-any-file: decidim-verifications/**/* +"team: documentation": + - changed-files: + - any-glob-to-any-file: + - docs/**/* + - /README.adoc diff --git a/.github/workflows/add_pr_labels.yml b/.github/workflows/add_pr_labels.yml new file mode 100644 index 0000000000000..f8e2119452df7 --- /dev/null +++ b/.github/workflows/add_pr_labels.yml @@ -0,0 +1,28 @@ +name: "Pull Request Labeler" +on: + pull_request: + branches-ignore: + - "chore/l10n*" + types: [ opened, edited, synchronize, reopened, labeled, unlabeled ] + pull_request_target: + branches-ignore: + - "chore/l10n*" + types: [ opened, edited, synchronize, reopened, labeled, unlabeled ] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/labeler@v5 + with: + sync-labels: 'true' + dot: 'true' + repo-token: "${{ secrets.GITHUB_TOKEN }}"