Files
nextjs-python-web-template/pkgs/merge-after-ci/default.nix
Luis 9238225556
Some checks failed
checks-impure / test (pull_request) Failing after 3m11s
checks / test (pull_request) Failing after 24m9s
Fixing merge-after-ci
2023-10-23 02:12:42 +02:00

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