Files
service-aware-frontend/pkgs/merge-after-ci/default.nix
2023-10-30 13:26:09 +01:00

27 lines
413 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 merge-bot "$@"
'';
}