Skip to content

Commit 2a6f355

Browse files
authored
Merge pull request #3288 from chrischdi/pr-/create-mirror-repository-pr.sh-exec
🌱 hack: make create-mirror-repository-pr.sh executable and easier to use
2 parents 5e1f82a + 9260a81 commit 2a6f355

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)