Skip to content

Commit ff11ec1

Browse files
feat(migrate): add edit file
1 parent 0477071 commit ff11ec1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

migrate/migrate-bot.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,13 @@ async function createPullRequest(issue, filePath, url) {
209209
const branchName = `migrate/${issue.number}-${Date.now().toString(36)}`;
210210
const commitMessage = `Migrate ${url}`;
211211
const prTitle = `[#${issue.number}] Migrate ${url}`;
212-
const prBody = `自动迁移自 ${url}\n\nclose #${issue.number}`;
212+
const prBody =
213+
`自动迁移自 ${url}
214+
215+
[编辑 ${filePath.split("/").slice(-3).join("/")}](https://github.com/cppdoc-cc/cppdoc/edit/${branchName}/${filePath})
216+
217+
<small>Close #${issue.number}</small>
218+
`;
213219

214220
const { execSync } = await import("child_process");
215221
try {

0 commit comments

Comments
 (0)