chore(ci): remove prd-check workflow
test / unit (pull_request) Successful in 28s
test / integration (pull_request) Successful in 42s
lint / lint (push) Successful in 1m42s
prd-number / assign-numbers (push) Successful in 23s
test / unit (push) Successful in 35s
test / integration (push) Successful in 52s
Update Quality Badges / update-badges (push) Successful in 1m40s
test / unit (pull_request) Successful in 28s
test / integration (pull_request) Successful in 42s
lint / lint (push) Successful in 1m42s
prd-number / assign-numbers (push) Successful in 23s
test / unit (push) Successful in 35s
test / integration (push) Successful in 52s
Update Quality Badges / update-badges (push) Successful in 1m40s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #190.
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
# Block PRs that add prd-new-*.md files directly to main.
|
||||
#
|
||||
# prd-new-*.md files are placeholders — they must go through a PR so
|
||||
# the post-merge prd-number workflow can assign a sequential number and
|
||||
# rename the file. A direct push or a PR that slips through without
|
||||
# triggering the check would leave an un-numbered PRD on main.
|
||||
|
||||
name: prd-check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/prds/prd-new-*.md'
|
||||
|
||||
jobs:
|
||||
no-prd-new-on-main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fail if prd-new-*.md files are present in the diff
|
||||
run: |
|
||||
base="${{ github.event.pull_request.base.sha }}"
|
||||
head="${{ github.event.pull_request.head.sha }}"
|
||||
new_prds=$(git diff --name-only --diff-filter=A "$base" "$head" \
|
||||
| grep -E '^docs/prds/prd-new-.+\.md$' || true)
|
||||
if [ -n "$new_prds" ]; then
|
||||
echo "ERROR: PRs to main must not add prd-new-*.md files directly."
|
||||
echo "These files must be merged via a feature branch so the"
|
||||
echo "prd-number workflow can assign a sequential number on merge:"
|
||||
echo "$new_prds"
|
||||
exit 1
|
||||
fi
|
||||
echo "OK: no prd-new-*.md files added in this PR."
|
||||
Reference in New Issue
Block a user