-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set default branch as main for pipeline (#15465)
* set default branch as main * block pr to public spec repo
- Loading branch information
1 parent
88e7838
commit 1aabb7f
Showing
3 changed files
with
11 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
jobs: | ||
- job: "ShouldSendPRToMain" | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
condition: eq(variables['System.PullRequest.TargetBranch'], 'master') | ||
steps: | ||
- script: '>&2 echo "##vso[task.logissue type=error]Please edit the pull request to targeting new default branch main"' | ||
failOnStderr: true |
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