Skip to content

Commit

Permalink
Change "master" to "main" in files (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: ArtofBugs <[email protected]>
  • Loading branch information
ArtofBugs authored May 2, 2024
1 parent ac83c4a commit 178fcb3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Most scripts require you be in a directory containing all the repos you'd like t
| -------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| add_codeowners_if_not_present.rb | Adds/updates a `CODEOWNERS` file with the repo name as team name | `ruby add_codeowners_if_not_present.rb <GITHUB_USERNAME> <GITHUB_PASSWORD_OR_TOKEN>` |
| clone_all_repos_in_org.sh | clones all repos in github org | `clone_all_repos_in_org.sh` |
| git_branch_commit_push.sh | Pulls master, then checks out a new branch, commits and pushes | `git_branch_commit_push.sh <path to git ssh key> <branch name> <commit message>` |
| git_branch_commit_push.sh | Pulls main, then checks out a new branch, commits and pushes | `git_branch_commit_push.sh <path to git ssh key> <branch name> <commit message>` |
| open_pull_requests.rb | Opens a pull request | `ruby open_pull_requests.rb <user_name> <token | password> <pr_title> <pr_body> <your_branch_name>` |
| update_labels.sh | Removes the Dangerfile PR label check | `update_labels.sh` |
| watch_repos.rb | Watches all repos in org | `ruby watch_repos.rb <GITHUB_USERNAME> <GITHUB_PASSWORD_OR_TOKEN>` |
Expand Down
4 changes: 2 additions & 2 deletions scripts/git_branch_commit_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# $1=path to ssh key, $2=branch name, $3=commit message
for D in *; do
cd ${D}
ssh-agent bash -c "ssh-add $1; git checkout master"
ssh-agent bash -c "ssh-add $1; git pull origin master"
ssh-agent bash -c "ssh-add $1; git checkout main"
ssh-agent bash -c "ssh-add $1; git pull origin main"
ssh-agent bash -c "ssh-add $1; git branch -D $2"
ssh-agent bash -c "ssh-add $1; git checkout -b '$2'"
ssh-agent bash -c "ssh-add $1; git add ."
Expand Down
2 changes: 1 addition & 1 deletion scripts/open_pull_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"title": ARGV[2].to_s,
"body": ARGV[3].to_s,
"head": ARGV[4].to_s,
"base": 'master' }.to_json
"base": 'main' }.to_json
pr_http = Net::HTTP.new(pr_uri.hostname, pr_uri.port)
pr_http.use_ssl = (pr_uri.scheme == 'https')
pr_resp = pr_http.request(pr_req)
Expand Down
2 changes: 1 addition & 1 deletion standardfiles/cookbook/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing

Please refer to
[https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD)
[https://github.com/chef-cookbooks/community_cookbook_documentation/blob/main/CONTRIBUTING.MD](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/main/CONTRIBUTING.MD)
2 changes: 1 addition & 1 deletion standardfiles/cookbook/TESTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Testing

Please refer to [the community cookbook documentation on testing](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD).
Please refer to [the community cookbook documentation on testing](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/main/TESTING.MD).

0 comments on commit 178fcb3

Please sign in to comment.