clan-core/pkgs/merge-after-ci/default.nix
Jörg Thalheim c44338ec84
All checks were successful
build / test (pull_request) Successful in 18s
merge-after-ci: just inline script
2023-08-22 13:20:16 +02:00

27 lines
412 B
Nix

{ writeShellApplication
, coreutils
, bash
, git
, tea
, openssh
, tea-create-pr
, ...
}:
writeShellApplication {
name = "merge-after-ci";
runtimeInputs = [
bash
coreutils
git
tea
openssh
tea-create-pr
];
text = ''
remoteName="''${1:-origin}"
targetBranch="''${2:-main}"
shift && shift
tea-create-pr "$remoteName" "$targetBranch" --assignees clan-bot "$@"
'';
}