Skip to content

fix: correct various fixes found by linters #243

fix: correct various fixes found by linters

fix: correct various fixes found by linters #243

Workflow file for this run

name: Lint Pull Request Title
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate scopes from folder structure
id: generate-scopes
run: |
scopes=$(ls -d ./crates/*/ | xargs -n1 basename)
# Add additional scopes here:
scopes+=$'\n'ci
scopes+=$'\n'docs
echo "scopes<<EOF" >> $GITHUB_OUTPUT
echo "$scopes" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
with:
scopes: ${{ steps.generate-scopes.outputs.scopes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}