diff --git a/bin/commit b/bin/commit index 28e1b75a..aa32ea75 100755 --- a/bin/commit +++ b/bin/commit @@ -5,6 +5,6 @@ if isempty(ARGS) else message, = ARGS run(`git add .`) - run(`git diff --cached --color=always`) + run(`git --no-pager diff --cached --color=always`) run(`git commit -m $message`) end diff --git a/bin/gbors b/bin/gbors index c1f05c69..bab4924d 100755 --- a/bin/gbors +++ b/bin/gbors @@ -1,8 +1,9 @@ -#!/usr/bin/env not-bash +#!/usr/bin/env julia -if args: - message = args[0] -else: - message = p.silent> 'git show -s --format=%s HEAD' +if isempty(ARGS) + message = chomp(read(`git show -s --format=%s HEAD`, String)) +else + message, = ARGS +end -p> f'gh pr create --title "{message}" --body "bors r+\n🤖"' +run(`gh pr create --title $message --body "bors r+\n🤖"`)