Skip to content

Commit

Permalink
Add new PR labeler (decidim#13726)
Browse files Browse the repository at this point in the history
* Add new PR labeler

* Fix the app config

* Trigger Build

* Trigger Build

* Fix the app config

* Fix the app config

* Fix the app config

* Fix the app config

* Fix the app config
  • Loading branch information
alecslupu authored Dec 9, 2024
1 parent 08d79b6 commit 3979723
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/autolabeler.yml

This file was deleted.

119 changes: 119 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions .github/workflows/add_pr_labels.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 3979723

Please sign in to comment.