Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 21, 2025
1 parent e86b3c0 commit cc1226f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30193,12 +30193,12 @@ function run(context) {
});
yield cloneRepo();
if (isForkPr) {
yield addRemote('pr', ((_b = (_a = prData.head) === null || _a === void 0 ? void 0 : _a.repo) === null || _b === void 0 ? void 0 : _b.clone_url) || '');
yield addRemote(prData.head.user.login, ((_b = (_a = prData.head) === null || _a === void 0 ? void 0 : _a.repo) === null || _b === void 0 ? void 0 : _b.clone_url) || '');
yield checkoutPr(context.pr_number);
yield (0, exec_1.exec)('git', [
'branch',
'--set-upstream-to',
`refs/remotes/pr/${prData.head.ref}`,
`refs/remotes/${prData.head.user.login}/${prData.head.ref}`,
`pr-${context.pr_number}`,
], { cwd: `../${context.repo}` });
}
Expand Down
4 changes: 2 additions & 2 deletions src/tdesign/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export default async function run(context: TriggerContext) {
await cloneRepo()

if (isForkPr) {
await addRemote('pr', prData.head?.repo?.clone_url || '')
await addRemote(prData.head.user.login, prData.head?.repo?.clone_url || '')
await checkoutPr(context.pr_number)
await exec('git', [
'branch',
'--set-upstream-to',
`refs/remotes/pr/${prData.head.ref}`,
`refs/remotes/${prData.head.user.login}/${prData.head.ref}`,
`pr-${context.pr_number}`,
], { cwd: `../${context.repo}` })
}
Expand Down

0 comments on commit cc1226f

Please sign in to comment.