Skip to content

Rule proposal: Use Array#includes() instead of repeated conditional checks #206

Rule proposal: Use Array#includes() instead of repeated conditional checks

Rule proposal: Use Array#includes() instead of repeated conditional checks #206

name: Title formatter
on:
pull_request_target:
types: [opened, edited]
issues:
types: [opened, edited]
jobs:
Rule:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v4
- name: Auto-format rule names in titles
uses: fregante/title-replacer-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
pattern-path: docs/rules
replacement: '`$0`'
trim-punctuation: true