This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
forked from poblin-orange/k3s-boshrelease
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8458147
commit b59ab81
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
#set -x | ||
set -f # disable file name expansion, especially in for loops | ||
|
||
LIMIT="300" | ||
|
||
echo "Renaming and closing PRs to get them recreated by renovate" | ||
echo "learn more at https://github.com/renovatebot/renovate/discussions/13975#discussioncomment-2104370" | ||
# Learn about github NOT keyword syntax at https://stackoverflow.com/a/73795581/1484823 " | ||
ISSUES=$(gh issue list \ | ||
--search "is:issue is:open -author:app/renovate in:title NOT helm " \ | ||
--limit ${LIMIT} \ | ||
--repo orange-cloudfoundry/k3s-boshrelease \ | ||
--json number \ | ||
| jq -r '.[].number' ) | ||
echo "first Issues (maxed at ${LIMIT}} to rename are: ${ISSUES}" | ||
for i in $ISSUES; do | ||
echo "renaming to: " | ||
gh issue transfer --repo orange-cloudfoundry/k3s-boshrelease ${i} orange-cloudfoundry/k3s-wrapper-boshrelease | ||
echo ".. done" | ||
done; | ||
|
||
echo "please rerun this command to check not more PR beyond $LIMIT is left to process" |