Skip to content

Commit

Permalink
Merge pull request #10 from actions/v-malob/switch-to-main
Browse files Browse the repository at this point in the history
Switch from master branch to main
  • Loading branch information
maxim-lobanov committed Jul 14, 2020
2 parents c3d08f5 + 0236e75 commit 1069e7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/common_tests.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Install Pester
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines/get-tool-versions.yml
Expand Up @@ -6,13 +6,13 @@ schedules:
displayName: First daily build
branches:
include:
- master
- main
always: true
- cron: "0 15 * * *"
displayName: Second daily build
branches:
include:
- master
- main
always: true

variables:
Expand Down
6 changes: 3 additions & 3 deletions github/github-api.psm1
Expand Up @@ -36,7 +36,7 @@ class GitHubApi
title = $Title
body = $Body
head = $BranchName
base = "master"
base = "main"
} | ConvertTo-Json

$url = "pulls"
Expand All @@ -45,15 +45,15 @@ class GitHubApi

[object] GetPullRequest([string]$BranchName, [string]$RepositoryOwner){
$url = "pulls"
return $this.InvokeRestMethod($url, 'GET', "head=${RepositoryOwner}:$BranchName&base=master", $null)
return $this.InvokeRestMethod($url, 'GET', "head=${RepositoryOwner}:$BranchName&base=main", $null)
}

[object] UpdatePullRequest([string]$Title, [string]$Body, [string]$BranchName, [string]$PullRequestNumber){
$requestBody = @{
title = $Title
body = $Body
head = $BranchName
base = "master"
base = "main"
} | ConvertTo-Json

$url = "pulls/$PullRequestNumber"
Expand Down

0 comments on commit 1069e7a

Please sign in to comment.