Skip to content

Commit

Permalink
feat: Sleep 3sec for issue milestone query (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer authored Oct 30, 2024
1 parent 8068c71 commit 5baaa10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nu/milestone.nu
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export def guess-milestone-for-issue [
loop {
if $milestone != '-' or $tries > 5 { break }
print $'Try to guess milestone for issue (ansi p)($issueNO)(ansi reset) closed by PR (ansi p)($pr)(ansi reset) ...'
$tries += 1; sleep 2sec
$tries += 1; sleep 3sec
$milestone = (gh pr view --repo $repo $pr --json 'milestone'
| from json
| get milestone?.title?
Expand Down
2 changes: 1 addition & 1 deletion nu/query.nu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def query-issue-status [issueNO: int, payload: string, token: string] {
| select number milestone?.title? author.login repository.nameWithOwner mergeCommit.abbreviatedOid title
| rename -c $rename

$tries += 1; sleep 2sec
$tries += 1; sleep 3sec
$closer = if ($closers | is-empty) { {} } else { $closers | last }
$milestone = $closer.milestone? | default '-'
}
Expand Down

0 comments on commit 5baaa10

Please sign in to comment.