Skip to content

Commit 98086c0

Browse files
committed
Avoid verbose error output from git-obs in …-obs-auto-submit
It would otherwise print `Response:` but without the actual response which is printed via stdout and consumed by `jq`. Related ticket: https://progress.opensuse.org/issues/191106
1 parent d4df472 commit 98086c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os-autoinst-obs-auto-submit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ has_pending_submission() {
291291
# throttle number of submissions to allow only one PR or SR within a certain number of days
292292
if [[ $git_branch ]]; then
293293
# check for PR on Gitea
294-
recent_pr_url=$($git_obs -q api "repos/pool/$package/pulls?state=open&sort=recentupdate" \
294+
recent_pr_url=$($git_obs -q api "repos/pool/$package/pulls?state=open&sort=recentupdate" 2> /dev/null \
295295
| jq --raw-output \
296296
--arg days "$throttle_days" \
297297
--arg target "$git_branch" \

0 commit comments

Comments
 (0)