Skip to content

Instantly share code, notes, and snippets.

@clifmo
clifmo / download-latest-release.ps1
Last active October 2, 2020 11:33 — forked from MarkTiedemann/download-latest-release.ps1
Download latest GitHub release via Powershell
# Download latest release of Katalon Studio Runtime Engine from github with fallback version.
# Includes output for Azure DevOps pipeline tasks
$FALLBACK_VERSION = "7.7.1"
$repo = "katalon-studio/katalon-studio"
$filePrefix = "Katalon_Studio_Engine_Windows_64-"
$fileVersion = ""
$fileSuffix = ".zip"
$releases = "https://api.github.com/repos/$repo/releases"
@clifmo
clifmo / VSTS_CreateReleasePullRequest.ps1
Created January 29, 2020 17:50 — forked from MarcusFelling/VSTS_CreateReleasePullRequest.ps1
Uses the VSTS REST API to create pull request
<#
.SYNOPSIS
Uses the VSTS REST API to create pull request
.DESCRIPTION
This script uses the VSTS REST API to create a Pull Request in the specified
repository, source and target branches. Intended to run via VSTS Build using a build step for each repository.
https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests/pull-requests
.NOTES