From 5baaa1052eec8a0283cf37a8879f88f9bc396768 Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Wed, 30 Oct 2024 22:44:01 +0800 Subject: [PATCH] feat: Sleep 3sec for issue milestone query (#97) --- nu/milestone.nu | 2 +- nu/query.nu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nu/milestone.nu b/nu/milestone.nu index febb933..17d65a2 100644 --- a/nu/milestone.nu +++ b/nu/milestone.nu @@ -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? diff --git a/nu/query.nu b/nu/query.nu index da45360..e796c36 100644 --- a/nu/query.nu +++ b/nu/query.nu @@ -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 '-' }