Compare commits
3 Commits
feature/pr
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
| 7741fa65ae | |||
| 52acbb89eb | |||
| 71ce235904 |
10
.github/workflows/alpha.yml
vendored
10
.github/workflows/alpha.yml
vendored
@ -3,7 +3,7 @@ name: Alpha Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- test
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Release alpha version
|
- name: Release alpha version
|
||||||
run: |
|
run: |
|
||||||
# 确保在正确的分支
|
# 确保在正确的分支
|
||||||
git checkout develop
|
git checkout test
|
||||||
|
|
||||||
# 获取当前时间戳和短commit hash
|
# 获取当前时间戳和短commit hash
|
||||||
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
||||||
@ -81,7 +81,7 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
state: 'open',
|
state: 'open',
|
||||||
base: 'develop'
|
base: 'test'
|
||||||
});
|
});
|
||||||
|
|
||||||
const comment = `🚀 **Alpha版本已发布!**
|
const comment = `🚀 **Alpha版本已发布!**
|
||||||
@ -97,9 +97,9 @@ jobs:
|
|||||||
npx dpml-prompt@${version} action <roleId>
|
npx dpml-prompt@${version} action <roleId>
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
💡 你可以使用这个alpha版本测试最新的develop分支功能。
|
💡 你可以使用这个alpha版本测试最新的test分支功能。
|
||||||
|
|
||||||
⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`;
|
🧪 **Alpha定位**: 精选功能测试版本,适合功能验证和用户测试。`;
|
||||||
|
|
||||||
// 为每个相关PR添加评论
|
// 为每个相关PR添加评论
|
||||||
for (const pr of prs) {
|
for (const pr of prs) {
|
||||||
|
|||||||
5
.github/workflows/snapshot.yml
vendored
5
.github/workflows/snapshot.yml
vendored
@ -83,7 +83,7 @@ jobs:
|
|||||||
base: 'develop'
|
base: 'develop'
|
||||||
});
|
});
|
||||||
|
|
||||||
const comment = `🚀 **Snapshot版本已发布!**
|
const comment = `📸 **Snapshot版本已发布!**
|
||||||
|
|
||||||
📦 版本号: \`${version}\`
|
📦 版本号: \`${version}\`
|
||||||
🔗 安装命令: \`npx dpml-prompt@${version} <command>\`
|
🔗 安装命令: \`npx dpml-prompt@${version} <command>\`
|
||||||
@ -96,7 +96,8 @@ jobs:
|
|||||||
npx dpml-prompt@${version} action <roleId>
|
npx dpml-prompt@${version} action <roleId>
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
💡 你可以使用这个snapshot版本测试最新的develop分支功能。`;
|
⚡ **Snapshot定位**: 开发快照版本,包含最新代码变更,供快速验证和开发测试使用。
|
||||||
|
💡 如需稳定测试版本,推荐使用 \`@alpha\` 或 \`@beta\`。`;
|
||||||
|
|
||||||
// 为每个相关PR添加评论
|
// 为每个相关PR添加评论
|
||||||
for (const pr of prs) {
|
for (const pr of prs) {
|
||||||
|
|||||||
3
TEST_ALPHA.md
Normal file
3
TEST_ALPHA.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Test Branch Alpha Release
|
||||||
|
|
||||||
|
This is a test commit to verify the new alpha release workflow on the test branch.
|
||||||
@ -45,8 +45,9 @@ class InitCommand extends BasePouchCommand {
|
|||||||
let projectPath
|
let projectPath
|
||||||
|
|
||||||
if (workingDirectory) {
|
if (workingDirectory) {
|
||||||
// AI提供了工作目录,使用AI提供的路径
|
// AI提供了工作目录,先解码中文路径,然后使用
|
||||||
projectPath = path.resolve(workingDirectory)
|
const decodedWorkingDirectory = decodeURIComponent(workingDirectory)
|
||||||
|
projectPath = path.resolve(decodedWorkingDirectory)
|
||||||
|
|
||||||
// 验证AI提供的路径是否有效
|
// 验证AI提供的路径是否有效
|
||||||
if (!await this.currentProjectManager.validateProjectPath(projectPath)) {
|
if (!await this.currentProjectManager.validateProjectPath(projectPath)) {
|
||||||
@ -153,7 +154,7 @@ ${registryStats.message}
|
|||||||
if (registryData.size === 0) {
|
if (registryData.size === 0) {
|
||||||
return {
|
return {
|
||||||
message: `✅ 项目资源目录已创建,注册表已初始化
|
message: `✅ 项目资源目录已创建,注册表已初始化
|
||||||
📂 目录: ${path.relative(process.cwd(), domainDir)}
|
📂 目录: ${path.relative(process.cwd(), resourceDir)}
|
||||||
💾 注册表: ${path.relative(process.cwd(), registryPath)}
|
💾 注册表: ${path.relative(process.cwd(), registryPath)}
|
||||||
💡 现在可以在 domain 目录下创建角色资源了`,
|
💡 现在可以在 domain 目录下创建角色资源了`,
|
||||||
totalResources: 0
|
totalResources: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user