-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into brainstorm-refined-topics
- Loading branch information
Showing
61 changed files
with
478 additions
and
314 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,7 @@ | |
"MD046": false, | ||
"MD013": false, | ||
"MD033": false, | ||
"MD036": false | ||
"MD036": false, | ||
"MD055": false, | ||
"MD024": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,83 @@ | ||
#! /bin/bash | ||
# | ||
# CMD: | ||
# $1. GitHub access token | ||
|
||
github_org_name=sswconsulting | ||
github_repo_name=SSW.Rules | ||
azdo_org_name=https://ssw.visualstudio.com | ||
azdo_project_name=ssw.rules | ||
azdo_pipeline_name=Production | ||
azdo_history_pipeline_name=UpdateRulesHistory | ||
github_access_token=$1 | ||
|
||
# exit when any command fails | ||
set -e | ||
|
||
# ensure devops extension is available | ||
az extension add -n azure-devops | ||
|
||
# get latest release branch from other repo | ||
echo Querying GitHub... | ||
branch_list=$(curl -s -X GET https://api.github.com/repos/${github_org_name}/${github_repo_name}/branches) | ||
echo "Querying GitHub..." | ||
|
||
# Get release/x branch with the latest commit. | ||
res=$(curl -X POST \ | ||
https://api.github.com/graphql \ | ||
-H "Authorization: Bearer ${github_access_token}" \ | ||
-H "Content-Type: application/json" \ | ||
-d @- <<EOF | ||
{ | ||
branch_name=$(jq -r '[.[].name | select(startswith("release/"))] | sort_by(.[8:]|tonumber) | reverse | .[0]' <<< "${branch_list}") | ||
} || { | ||
echo "GitHub response: ${branch_list}" | ||
echo "::error Could not get latest release branch from GitHub" | ||
exit 1 | ||
"query": "{ | ||
repository(owner: \"${github_org_name}\", name: \"${github_repo_name}\") { | ||
refs( | ||
refPrefix: \"refs/heads/release/\" | ||
first: 1 | ||
orderBy: {field: TAG_COMMIT_DATE, direction: DESC} | ||
) { | ||
edges { | ||
node { | ||
name | ||
target { | ||
... on Commit { | ||
committedDate | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}" | ||
} | ||
echo Latest release branch: ${branch_name} | ||
EOF | ||
) | ||
|
||
# Check for cURL errors. | ||
if [ $? -ne 0 ]; then | ||
echo "::error cURL request failed. Check your internet connection or GitHub API status." | ||
exit 1 | ||
fi | ||
|
||
# Check if the response contains an error message. | ||
if [ "$(jq -r '.errors' <<< "$res")" != "null" ]; then | ||
echo "GitHub API error: $(jq -r '.errors[0].message' <<< "$res")" | ||
echo "Documentation URL: $(jq -r '.errors[0].documentation_url' <<< "$res")" | ||
exit 1 | ||
fi | ||
|
||
latest_release=$(jq -r '.data.repository.refs.edges[0].node.name' <<< "${res}") | ||
latest_branch="release/${latest_release}" | ||
|
||
# Check if latest_release is null. | ||
if [ "$latest_release" = "null" ]; then | ||
echo "::error Latest branch is null. No matching release branches found." | ||
exit 1 | ||
fi | ||
|
||
echo "Latest release branch: ${latest_branch}" | ||
|
||
echo triggering AzDO update history | ||
az pipelines build queue --org $azdo_org_name --project $azdo_project_name --definition-name $azdo_history_pipeline_name --branch main | ||
|
||
echo triggering AzDO build | ||
az pipelines build queue --org $azdo_org_name --project $azdo_project_name --definition-name $azdo_pipeline_name --branch $branch_name | ||
az pipelines build queue --org $azdo_org_name --project $azdo_project_name --definition-name $azdo_pipeline_name --branch $latest_branch | ||
|
||
echo done |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ uri: rules-to-better-figma | |
index: | ||
- software-for-ux-design | ||
- figma-prototypes | ||
- figma-uses | ||
|
||
--- |
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
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
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
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
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
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
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
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
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
Binary file not shown.
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
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
Oops, something went wrong.