Skip to content

Commit

Permalink
hack: make create-mirror-repository-pr.sh executable and easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Dec 9, 2024
1 parent 31fd96a commit 9260a81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hack/create-mirror-repository-pr.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

PR_NUMBER="${1:-}"

if [ -z "${PR_NUMBER}" ]; then
echo "PR_NUMBER must be set"
exit 1
Expand All @@ -22,5 +24,4 @@ fi
gh pr view "${PR_NUMBER}" \
-R kubernetes-sigs/cluster-api-provider-vsphere \
--json headRepository,headRepositoryOwner,headRefName,baseRefName \
-q '"https://github.com/team-cluster-api/cluster-api-provider-vsphere/compare/" \
+ .baseRefName + "..." + .headRepositoryOwner.login + ":" + .headRepository.name + ":" + .headRefName'
-q '"https://github.com/team-cluster-api/cluster-api-provider-vsphere/compare/" + .baseRefName + "..." + .headRepositoryOwner.login + ":" + .headRepository.name + ":" + .headRefName'

0 comments on commit 9260a81

Please sign in to comment.