refactor: add validate to command/query level #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Pull Request Labeler" | |
on: | |
pull_request: | |
types: [ opened, edited, synchronize, ready_for_review ] | |
jobs: | |
auto-labeling: | |
runs-on: ubuntu-latest | |
permissions: | |
# Setting up permissions in the workflow to limit the scope of what it can do. Optional! | |
contents: read | |
pull-requests: write | |
statuses: write | |
checks: write | |
steps: | |
- uses: fuxingloh/multi-labeler@v1 | |
name: conventional-commits-pull-request-labeler | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}' | |
config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml' | |
# - uses: release-drafter/release-drafter@v5 | |
# name: release-drafter auto labeler | |
# with: | |
# config-name: release-drafter.yml | |
# disable-releaser: true # only run auto-labeler for PRs | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# https://docs.github.com/en/actions/using-workflows/about-workflows#creating-dependent-jobs | |
# https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow | |
- name: check-conventional-commits-labels | |
uses: docker://agilepathway/pull-request-label-checker:latest | |
if: success() | |
with: | |
any_of : feature,bug,enhancement,refactor,deprecated,security,documentation,build,ci/cd,chore,performance,formatting,dependencies | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |