Files
nextjs-python-web-template/pkgs/merge-after-ci/default.nix
Luis 7a54c87fde
All checks were successful
checks-impure / test (pull_request) Successful in 26s
checks / test (pull_request) Successful in 1m52s
Added Getting Started to README
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 "$@"
'';
}