Skip to content

Commit 9260a81

Browse files
committed
hack: make create-mirror-repository-pr.sh executable and easier to use
1 parent 31fd96a commit 9260a81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hack/create-mirror-repository-pr.sh

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
PR_NUMBER="${1:-}"
18+
1719
if [ -z "${PR_NUMBER}" ]; then
1820
echo "PR_NUMBER must be set"
1921
exit 1
@@ -22,5 +24,4 @@ fi
2224
gh pr view "${PR_NUMBER}" \
2325
-R kubernetes-sigs/cluster-api-provider-vsphere \
2426
--json headRepository,headRepositoryOwner,headRefName,baseRefName \
25-
-q '"https://github.com/team-cluster-api/cluster-api-provider-vsphere/compare/" \
26-
+ .baseRefName + "..." + .headRepositoryOwner.login + ":" + .headRepository.name + ":" + .headRefName'
27+
-q '"https://github.com/team-cluster-api/cluster-api-provider-vsphere/compare/" + .baseRefName + "..." + .headRepositoryOwner.login + ":" + .headRepository.name + ":" + .headRefName'

0 commit comments

Comments
 (0)