chore(commit hooks): add lint-staged configuration and husky pre-commit hook #46
Workflow file for this run
This file contains hidden or 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: 'PR Labeler' | |
| on: | |
| pull_request_target: | |
| workflow_dispatch: | |
| inputs: | |
| prs: | |
| required: false | |
| description: 'pr number' | |
| jobs: | |
| labeler: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: git config | |
| run: | | |
| git config user.name "${GITHUB_ACTOR}" | |
| git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
| - name: Set PR number | |
| id: set-pr | |
| run: | | |
| echo "Using PR number: ${{ github.event.inputs.prs || github.event.pull_request.number }}" | |
| echo "pr=${{ github.event.inputs.prs || github.event.pull_request.number }}" >> $GITHUB_OUTPUT | |
| - uses: actions/labeler@v6 | |
| with: | |
| pr-number: ${{ steps.set-pr.outputs.pr }} |