Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a0d8eeb
feat: add .lcap/ directory to .gitignore
Dec 29, 2025
a64dc1a
pre-migrate snapshot
Oct 22, 2025
0a51a2a
chore(build): unify pnpm workspace setup & resolve partial build issues
Oct 22, 2025
168d78c
chore(build): unify pnpm workspace setup & resolve partial build issues
Oct 22, 2025
e8323dd
chore(build): integrate Turborepo for unified build pipeline
Oct 22, 2025
a2a1e41
chore(infra): add deep-clean script to recursively remove all node_mo…
Oct 23, 2025
341bc69
chore(infra): modify script in package.json
Oct 23, 2025
2753579
chore(ci): add full-auto pipeline for asset management and AI integra…
Dec 22, 2025
21f5903
chore(ci): refactor plan-changed-packages script for improved repo ro…
Dec 22, 2025
b6bc23a
chore(ci): update .gitignore and enhance comments in plan-changed-pac…
Dec 29, 2025
c3533f5
chore(migration): migrate cw_dynamic_form_library, cw_form_designer_l…
Dec 29, 2025
8219ca4
chore(ci): remove deprecated full-auto pipeline configuration from Gi…
Dec 29, 2025
636cbe8
chore(ci): comment out aiContext in plan-changed-packages script for …
Dec 29, 2025
0065720
chore(ci): update GitHub Actions workflow to allow manual triggering …
Dec 29, 2025
f5db008
chore(ci): update GitHub Actions workflow to change push branch to mo…
Dec 29, 2025
43e2c13
chore(ci): update GitHub Actions workflow to change push branch to ma…
Dec 29, 2025
9473dec
chore(ci): update release workflow to trigger on test/ci-branch, enha…
Dec 29, 2025
e8053f6
chore(ci): update release workflow to trigger on main branch, add inp…
Dec 29, 2025
1d46c14
chore(ci): merge CI improvements from test-ci-branch (excluding works…
Dec 31, 2025
39ad89e
chore(ci): refactor generate-pr-body script for improved readability …
Dec 31, 2025
6704338
Merge pull request #2 from gungunj/monorepo/turporepo-plan
gungunj Dec 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
strict-peer-dependencies=true
auto-install-peers=false
shared-workspace-lockfile=false
hoist-pattern[]=
public-hoist-pattern[]=*@types/*
public-hoist-pattern[]=eslint*
public-hoist-pattern[]=prettier*
83 changes: 83 additions & 0 deletions .github/workflows/pr-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Auto Generate PR Description

on:
pull_request:
types: [opened, synchronize]
branches: ["main", "test-ci-branch"]

jobs:
generate-pr-body:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Fetch Base Branch
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Generate PR Body
run: |
export GITHUB_BASE_REF="${{ github.event.pull_request.base.ref }}"
export GITHUB_HEAD_REF="${{ github.event.pull_request.head.ref }}"
export GITHUB_BASE_SHA="${{ github.event.pull_request.base.sha }}"
export GITHUB_HEAD_SHA="${{ github.event.pull_request.head.sha }}"
export GITHUB_SERVER_URL="${{ github.server_url }}"
export GITHUB_REPOSITORY="${{ github.repository }}"
node scripts/ci/generate-pr-body.mjs

- name: Update PR Body
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const path = require('path');
const repoRoot = process.cwd();
const prBodyPath = path.join(repoRoot, 'pr_body.txt');

if (!fs.existsSync(prBodyPath)) {
console.log('⚠️ PR body 文件不存在,跳过更新');
return;
}

const prBody = fs.readFileSync(prBodyPath, 'utf8');
const prNumber = context.issue.number;
const autoGenMarker = '*此 PR 描述由 CI 自动生成*';

try {
const { data: currentPR } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber
});

// 如果已包含自动生成标记,替换;否则追加
let newBody = prBody;
if (currentPR.body?.includes(autoGenMarker)) {
newBody = currentPR.body.split(autoGenMarker)[0] + '\n\n' + prBody;
} else if (currentPR.body) {
newBody = currentPR.body + '\n\n---\n\n' + prBody;
}

await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber,
body: newBody
});

console.log(`✅ 已更新 PR #${prNumber} 的 body`);
} catch (error) {
console.error(`❌ 更新 PR body 失败: ${error.message}`);
}

Loading