mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-05 18:20:38 -08:00
* refactor: use TiddlyWiki/cerebrus@v5, and rename yml * continue-on-error: false * Update .github/workflows/pr-validation.yml to restrict contents permissions Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
37 lines
938 B
YAML
37 lines
938 B
YAML
name: PR Validation
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
issues: write
|
|
jobs:
|
|
validate-pr:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# Step 1: Validate PR paths
|
|
- name: Validate PR Paths
|
|
uses: TiddlyWiki/cerebrus@v5
|
|
with:
|
|
pr_number: ${{ github.event.pull_request.number }}
|
|
repo: ${{ github.repository }}
|
|
base_ref: ${{ github.base_ref }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
mode: rules
|
|
continue-on-error: true
|
|
|
|
# Step 2: Validate change notes
|
|
- name: Validate Change Notes
|
|
uses: TiddlyWiki/cerebrus@v5
|
|
with:
|
|
pr_number: ${{ github.event.pull_request.number }}
|
|
repo: ${{ github.repository }}
|
|
base_ref: ${{ github.base_ref }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
mode: changenotes
|
|
continue-on-error: false
|
|
|