Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Feb 10, 2025
1 parent 5c7926f commit d27ebca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions updatecli/scripts/createIssue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
# This script log to github and create an issue if not in dry mode
set -eux -o pipefail

command -v "gh" >/dev/null || { echo "ERROR: gh command not found. Exiting."; exit 1; }
command -v "gh" >/dev/null 2>&1 || { echo "ERROR: gh command not found. Exiting."; exit 1; }

cmd=$(cat <<-EOM
gh issue create --title "[private.vpn.jenkins.io] $1 VPN CRL expires" \
--body "follow https://github.com/jenkins-infra/docker-openvpn?tab=readme-ov-file#howto-renew-certificate-revocation-list \
See https://github.com/jenkins-infra/helpdesk/issues/4266 for details." \
--label crl \
--label updatecli \
--label triage \
--repo jenkins-infra/helpdesk
gh issue create --title "[private.vpn.jenkins.io] $1 VPN CRL expires" \
--body "follow https://github.com/jenkins-infra/docker-openvpn?tab=readme-ov-file#howto-renew-certificate-revocation-list \
See https://github.com/jenkins-infra/helpdesk/issues/4266 for details." \
--label crl \
--label updatecli \
--label triage \
--repo jenkins-infra/helpdesk
EOM
)

if test "${DRY_RUN:=false}" == "false"
if test "${DRY_RUN:=true}" == "false"
then
export GITHUB_TOKEN="${UPDATECLI_GITHUB_TOKEN}"
alreadyOpened=$(gh issue list --repo jenkins-infra/helpdesk --state open --search "label:crl label:updatecli" | wc -l)
Expand Down

0 comments on commit d27ebca

Please sign in to comment.