2023-08-03 16:04:03 +00:00
|
|
|
{ writeShellApplication
|
|
|
|
, coreutils
|
|
|
|
, bash
|
|
|
|
, git
|
|
|
|
, tea
|
|
|
|
, openssh
|
|
|
|
, tea-create-pr
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
writeShellApplication {
|
|
|
|
name = "merge-after-ci";
|
|
|
|
runtimeInputs = [
|
|
|
|
bash
|
|
|
|
coreutils
|
|
|
|
git
|
|
|
|
tea
|
|
|
|
openssh
|
|
|
|
tea-create-pr
|
|
|
|
];
|
|
|
|
text = ''
|
2023-08-22 11:20:16 +00:00
|
|
|
remoteName="''${1:-origin}"
|
|
|
|
targetBranch="''${2:-main}"
|
|
|
|
shift && shift
|
|
|
|
tea-create-pr "$remoteName" "$targetBranch" --assignees clan-bot "$@"
|
2023-08-03 16:04:03 +00:00
|
|
|
'';
|
2023-07-28 13:03:06 +00:00
|
|
|
}
|