Skip to content

Commit d6a2112

Browse files
authoredDec 13, 2021
chore: rename master to main (googleapis#837)
1 parent f374640 commit d6a2112

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎.github/sync-repo-settings.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ rebaseMergeAllowed: true
22
squashMergeAllowed: true
33
mergeCommitAllowed: false
44
branchProtectionRules:
5-
- pattern: master
5+
- pattern: main
66
isAdminEnforced: true
77
requiredStatusCheckContexts:
88
- 'bazel-build'

‎.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Generator tests
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- diregapic-dev-branch
88
pull_request:
99

‎.github/workflows/deps.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- showcase/go.sum
1010
jobs:
1111
update-bazel-deps:
12-
if: github.ref == 'refs/heads/master'
12+
if: github.ref == 'refs/heads/main'
1313
outputs:
1414
changed: ${{ steps.update.outputs.changed }}
1515
runs-on: ubuntu-latest
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v2
4545
with:
46-
ref: master
46+
ref: main
4747
- uses: actions/download-artifact@v2
4848
with:
4949
name: repositories
@@ -61,7 +61,7 @@ jobs:
6161
description: 'Updated Go dependencies for Bazel repositories.'
6262
title: 'chore: update Bazel Go deps'
6363
message: 'chore: update Bazel Go deps'
64-
primary: 'master'
64+
primary: 'main'
6565
labels: |
6666
automerge
6767
branch: update-bazel-deps

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
105105
106106
http_archive(
107107
name = "com_googleapis_gapic_generator_go",
108-
strip_prefix = "gapic-generator-go-master",
109-
urls = ["https://github.com/googleapis/gapic-generator-go/archive/master.zip"],
108+
strip_prefix = "gapic-generator-go-main",
109+
urls = ["https://github.com/googleapis/gapic-generator-go/archive/main.zip"],
110110
)
111111
112112
load("@com_googleapis_gapic_generator_go//:repositories.bzl", "com_googleapis_gapic_generator_go_repositories")
113113
114114
com_googleapis_gapic_generator_go_repositories()
115115
```
116116

117-
_Note: do not use `master`, use a commit hash or a release tag._
117+
_Note: do not use `main`, use a commit hash or a release tag._
118118

119119
And invoke it in a BUILD file like so, using an example based on the [googleapis repo](https://github.com/googleapis/googleapis/tree/92bebf78345af8b2d3585220527115bda8bdedf8/google/cloud/language/v1).
120120

0 commit comments

Comments
 (0)
Please sign in to comment.