This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
Source = Json.Document(Web.Contents("https://dev.azure.com/"&_organization&"/"&_project&"/_apis/git/pullrequests?searchCriteria.includeLinks=true&searchCriteria.status=all&$top="&_top&"&api-version=7.1-preview.1")), | |
#"Converted to Table" = Table.FromRecords({Source}, {"value"}), | |
#"Expanded value" = Table.ExpandListColumn(#"Converted to Table", "value"), | |
#"Expanded value1" = Table.ExpandRecordColumn( | |
#"Expanded value", | |
"value", | |
{"repository", "pullRequestId", "codeReviewId", "status", "createdBy", "creationDate", "closedDate", "title", "description", "sourceRefName", "targetRefName", "mergeStatus", "isDraft", "mergeId", "reviewers", "labels", "url", "completionOptions", "supportsIterations", "completionQueueTime"}, | |
{"value.repository", "value.pullRequestId", "value.codeReviewId", "value.status", "value.createdBy", "value.creationDate", "value.closedDate", "value.title", "value.description", "value.sourceRefName", "value.targetRefName", "value.mergeStatus", "v |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: pushes current checkout branch to remote | |
# Ex: git publish origin | |
if [ -z ${1+x} ] && [ $(git remote | wc -l) -eq 1 ]; then | |
remote=$(git remote) | |
else | |
remote=$1 | |
fi | |
git push --set-upstream $remote $(git branch --show-current) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CL_FILE_EXTENSIONS: The script will apply on files with given extensions | |
if [ -z ${CL_FILE_EXTENSIONS+x} ]; then | |
CL_FILE_EXTENSIONS=(txt md json xml yaml yml sh bat) | |
fi | |
# CL_IGNORED_SUB_DIR: The script will ignore files in given directories | |
if [ -z ${CL_IGNORED_SUB_DIR+x} ]; then | |
CL_IGNORED_SUB_DIR=(.git) | |
fi |