Skip to content

Commit

Permalink
Support issue/pr identifier as the only argument
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Sep 2, 2021
1 parent cc606a7 commit 810948f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ func parseRepository() {
if len(args) > 0 {
arg = args[0]
args = args[1:]

if len(args) == 0 {
// only one arg provided. Is it an issue/pr number?
var err error
num, err = strconv.Atoi(arg)
if err == nil {
arg = "."
}
}
}
if len(args) > 0 {
var err error
Expand Down

0 comments on commit 810948f

Please sign in to comment.