Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/lint-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Auto-fix code quality problems
on:
workflow_dispatch:
permissions:
contents: write

jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 18
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- name: Cache dependencies
uses: actions/cache@v5
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npx eslint --fix .
- name: Run Prettier
run: npx prettier --write .
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: Auto-fix code quality problems
author_name: ${{ github.actor }}
author_email: ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Check code quality
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion src/content/rules/song-source-required.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ automatically_fixed: "False"
complete_validation: "True"
---

Song entries require a PV *or* an external link *or* an attached album entry for proof of existence. A description may be set instead if the only applicable links are direct downloads or profile-less file sharing sites.
Song entries require a PV _or_ an external link _or_ an attached album entry for proof of existence. A description may be set instead if the only applicable links are direct downloads or profile-less file sharing sites.