-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2292f0
commit 1987a56
Showing
5 changed files
with
48 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: fix | ||
packages: | ||
- "@typespec/http" | ||
--- | ||
|
||
Fix password flow defining `authorizationUrl` instead of `tokenUrl` |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// @ts-check | ||
const prTargetBranch = process.env["SYSTEM_PULLREQUEST_TARGETBRANCHNAME"]; | ||
const currentBranch = process.env["BUILD_SOURCEBRANCH"]; | ||
|
||
console.log("Branches:", { | ||
prTargetBranch, | ||
currentBranch, | ||
}); | ||
|
||
if (prTargetBranch !== undefined) { | ||
console.log("Target branch is", prTargetBranch); | ||
console.log(`##vso[task.setvariable variable=TARGET_BRANCH]${prTargetBranch}`); | ||
} else if (currentBranch) { | ||
const match = currentBranch.match(/refs\/heads\/gh-readonly-queue\/(.*)\/pr-.*/); | ||
if (match !== null) { | ||
const targetBranch = match[1]; | ||
console.log("Target branch is", targetBranch); | ||
console.log(`##vso[task.setvariable variable=TARGET_BRANCH]${targetBranch}`); | ||
} | ||
} else { | ||
console.log("Failed to resolve target branch."); | ||
process.exit(1); | ||
} |
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