diff --git a/.github/release.yml b/.github/release.yml index 9b53122d8..fd78aad92 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -12,6 +12,7 @@ changelog: description: Bug fixes and patches labels: - fix + - bug - title: 📝 Documentation Updates description: Changes to documentation labels: diff --git a/.github/workflows/conventional-labels.yml b/.github/workflows/conventional-labels.yml index 7bb581296..0f89f9723 100644 --- a/.github/workflows/conventional-labels.yml +++ b/.github/workflows/conventional-labels.yml @@ -3,22 +3,29 @@ name: Label PRs with Conventional Commits on: pull_request_target: - types: [ opened, edited , synchronize] + types: [ opened, edited , reopened] jobs: validate-pr: + name: Validate PR runs-on: ubuntu-latest + outputs: + validate_output: ${{ steps.validate.outputs }} steps: - name: Validate the pull request + id: validate uses: Namchee/conventional-pr@v0.15.4 with: access_token: ${{ secrets.GITHUB_TOKEN }} verbose: true + issue: false + label: + needs: validate-pr + name: Label PR runs-on: ubuntu-latest - name: Lint PR + if: ${{ github.event.pull_request.user.type != 'Bot' && needs.validate-pr.outputs.validate_output == 'true' }} steps: - - name: label - uses: action-runner/conventional-labeler@v1 + - uses: bcoe/conventional-release-labels@v1 with: - access_token: ${{ secrets.GITHUB_TOKEN }} + type_labels: '{"feat": "enhancement","fix": "bug","docs": "documentation","style": "style","refactor": "refactor","perf": "performance","test": "test","chore": "chore","build": "build"}'