Skip to content

Commit 836dc71

Browse files
committed
chore: 从存储库中启用自动删除已合并分支
1 parent bb39f96 commit 836dc71

2 files changed

Lines changed: 0 additions & 44 deletions

File tree

.github/workflows/pr-delete-merged-branch.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/pr-merge-dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ jobs:
5151
commit_message: commitMessage,
5252
});
5353
54-
// 删除分支
55-
console.log(`PR 合并成功,删除分支: ${pr.head.ref}`);
56-
await github.rest.git.deleteRef({
57-
owner,
58-
repo,
59-
ref: `heads/${pr.head.ref}`,
60-
});
61-
6254
} catch (error) {
6355
// 3. 合并失败时,可能存在冲突.重新关闭和打开PR,让Dependabot处理冲突.
6456
console.log(`合并失败: ${error.message}`);

0 commit comments

Comments
 (0)