Skip to content

Commit

Permalink
Merge pull request #3288 from chrischdi/pr-/create-mirror-repository-…
Browse files Browse the repository at this point in the history
…pr.sh-exec

🌱 hack: make create-mirror-repository-pr.sh executable and easier to use
  • Loading branch information
k8s-ci-robot authored Dec 11, 2024
2 parents 5e1f82a + 9260a81 commit 2a6f355
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 2a6f355

Please sign in to comment.