Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
add script to transfer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gberche-orange committed Jan 10, 2024
1 parent 8458147 commit b59ab81
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions transfer-issues-to-wrapper-release.bash
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"

0 comments on commit b59ab81

Please sign in to comment.