diff --git a/.github/configs/pr-labeler-configuration.yml b/.github/configs/pr-labeler-configuration.yml new file mode 100644 index 0000000..0e6a823 --- /dev/null +++ b/.github/configs/pr-labeler-configuration.yml @@ -0,0 +1,5 @@ +feature: feature/* +bugfix: bugfix/* +hotfix: hotfix/* +refactor: refactor/* +documentation: ['documentation/*', 'setup/*'] diff --git a/.github/configs/pr-labeler.yml b/.github/configs/pr-labeler.yml deleted file mode 100644 index 5f0d708..0000000 --- a/.github/configs/pr-labeler.yml +++ /dev/null @@ -1,4 +0,0 @@ -feature: feature/* -bugfix: bugfix/* -hotfix: hotfix/* -documentation: ['documentation/*', 'setup/*'] \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-validation.yml similarity index 65% rename from .github/workflows/pr-labeler.yml rename to .github/workflows/pr-validation.yml index 697582c..babae51 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-validation.yml @@ -1,4 +1,4 @@ -name: PR Labeler +name: PR Validation on: pull_request: types: [opened] @@ -7,13 +7,13 @@ permissions: contents: read jobs: - pr-labeler: + pr-validation: permissions: contents: read pull-requests: write - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: TimonVS/pr-labeler-action@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/configs/pr-labeler.yml \ No newline at end of file + configuration-path: .github/configs/pr-labeler-configuration.yml