Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Sep 29, 2020
1 parent 400c597 commit 4f09c02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions bin/gbors
Original file line number Diff line number Diff line change
@@ -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🤖"`)

0 comments on commit 4f09c02

Please sign in to comment.