Skip to content

Commit

Permalink
rename git master branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed May 15, 2023
1 parent 1336c8c commit 8c70272
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ new maintainers by voting in the public issue. If no one votes down and 2/3 vote

## Contribute Doc

Check [here](https://github.com/go-rod/go-rod.github.io/blob/master/contribute-doc.md).
Check [here](https://github.com/go-rod/go-rod.github.io/blob/main/contribute-doc.md).

## Terminology

Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Development guide

[Link](https://github.com/go-rod/rod/blob/master/.github/CONTRIBUTING.md)
[Link](https://github.com/go-rod/rod/blob/main/.github/CONTRIBUTING.md)

## Test on local before making the PR

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# When git master branch changes it will build a image based on the master branch, the tag of the image will be latest.
# When git main branch changes it will build a image based on the main branch, the tag of the image will be latest.
# When a git semver tag is pushed it will build a image based on it, the tag will be the same as git's.
# It will do nothing on other git events.
# For the usage of the image, check lib/examples/launch-managed .
Expand Down
4 changes: 2 additions & 2 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func Example_customize_browser_launch() {
}

// When rod doesn't have a feature that you need. You can easily call the cdp to achieve it.
// List of cdp API: https://github.com/go-rod/rod/tree/master/lib/proto
// List of cdp API: https://github.com/go-rod/rod/tree/main/lib/proto
func Example_direct_cdp() {
page := rod.New().MustConnect().MustPage()

Expand Down Expand Up @@ -598,7 +598,7 @@ func Example_load_extension() {
Set("load-extension", extPath).
// Headless mode doesn't support extension yet.
// Reason: https://bugs.chromium.org/p/chromium/issues/detail?id=706008#c5
// You can use XVFB to get rid of it: https://github.com/go-rod/rod/blob/master/lib/examples/launch-managed/main.go
// You can use XVFB to get rid of it: https://github.com/go-rod/rod/blob/main/lib/examples/launch-managed/main.go
Headless(false).
MustLaunch()

Expand Down
4 changes: 2 additions & 2 deletions lib/docker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {

fmt.Println("Event:", event)

master := regexp.MustCompile(`^refs/heads/master$`).MatchString(event)
isMain := regexp.MustCompile(`^refs/heads/main$`).MatchString(event)
m := regexp.MustCompile(`^refs/tags/(v[0-9]+\.[0-9]+\.[0-9]+)$`).FindStringSubmatch(event)
ver := ""
if len(m) > 1 {
Expand All @@ -28,7 +28,7 @@ func main() {

at := getArchType()

if master {
if isMain {
releaseLatest(at)
} else if ver != "" {
releaseWithVer(ver)
Expand Down

0 comments on commit 8c70272

Please sign in to comment.