mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-09-19 08:11:52 +08:00
ad86519c6b
* build: replace the npm lint stack with pre-commit markdownlint-cli2, prettier and eslint for YAML/JSON, husky and lint-staged are gone. pre-commit runs ruff, rumdl (the same five markdown rules), yamllint, yamlfix, the JSON checks, both validators and pytest, at commit time and over the whole tree from tools/quality.py, which is now what `npm run quality` calls. ESLint and prettier stay only for the docs-site scripts and tests. quality.yaml collapses to a Python job and a docs-site job. yamlfix keeps one blank line and no document-start marker: its defaults strip blank lines inside block scalars and add `---`, which the sprint status scripts do not write back. The JSON hook keeps key order and non-ASCII text. * style: apply yamlfix and JSON formatting to the tree Mechanical output of the new hooks; every file parses to the same data. * docs: state what the commit hook covers
29 lines
785 B
YAML
29 lines
785 B
YAML
name: Retarget Development Pull Requests
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened]
|
|
branches: [main]
|
|
|
|
jobs:
|
|
retarget:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- name: Retarget to dev
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |-
|
|
const pullRequest = context.payload.pull_request;
|
|
await github.rest.pulls.update({
|
|
...context.repo,
|
|
pull_number: pullRequest.number,
|
|
base: 'dev'
|
|
});
|
|
await github.rest.issues.createComment({
|
|
...context.repo,
|
|
issue_number: pullRequest.number,
|
|
body: 'Retargeted to dev: main receives releases by fast-forward push, not PRs.'
|
|
});
|