Skip to content

Commit e093f22

Browse files
authored
Change branch master to main (#220)
1 parent 64f5c3b commit e093f22

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

.ci/inc/fetch_ci_scripts.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function fetch_ci_scripts() {
44
local inc_dir
55
local inc_url
66
inc_dir="$(dirname "$0")/inc"
7-
inc_url="${PMD_CI_SCRIPTS_URL:-https://raw.githubusercontent.com/pmd/build-tools/master/scripts}/inc"
7+
inc_url="${PMD_CI_SCRIPTS_URL:-https://raw.githubusercontent.com/pmd/build-tools/main/scripts}/inc"
88

99
mkdir -p "${inc_dir}"
1010

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- master
87
tags:
98
- '**'
109
pull_request:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# PMD Eclipse Plugin
22

3-
[![Build Status](https://github.com/pmd/pmd-eclipse-plugin/workflows/build/badge.svg?branch=master)](https://github.com/pmd/pmd-eclipse-plugin/actions/?query=workflow%3Abuild+branch%3Amaster)
3+
[![Build Status](https://github.com/pmd/pmd-eclipse-plugin/workflows/build/badge.svg?branch=main)](https://github.com/pmd/pmd-eclipse-plugin/actions/?query=workflow%3Abuild+branch%3Amaster)
44
[![Eclipse Marketplace](https://img.shields.io/eclipse-marketplace/v/pmd-eclipse-plugin.svg)](https://marketplace.eclipse.org/content/pmd-eclipse-plugin)
55

6-
Release Notes: <https://github.com/pmd/pmd-eclipse-plugin/blob/master/ReleaseNotes.md>
6+
Release Notes: <https://github.com/pmd/pmd-eclipse-plugin/blob/main/ReleaseNotes.md>
77

88
Eclipse Update Site:
99

ReleaseNotes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ This is a minor release.
1313

1414
### New and noteworthy
1515

16+
#### New Git default branch - "main"
17+
18+
We are joining the Git community and updating "master" to "main". Using the term "master" for the main
19+
development branch can be offensive to some people. Existing versions of Git have been always capable of
20+
working with any branch name and since 2.28.0 (July 2020) the default initial branch is configurable
21+
(`init.defaultBranch`). Since October 2020, the default branch for new repositories on GitHub
22+
is "main". Finally, PMD will also use this new name for the main branch in all our own repositories.
23+
1624
### Fixed Issues
1725

1826
### API Changes

do-release.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ ${RELEASE_NOTES_BODY}
108108
EOF
109109

110110
echo
111-
echo "Updating version in master to next"
111+
echo "Updating version in main to next"
112112
./mvnw org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion="${DEVELOPMENT_VERSION}-SNAPSHOT"
113113
git commit -a -m "Prepare next pmd-eclipse-plugin development version ${DEVELOPMENT_VERSION}-SNAPSHOT"
114-
echo "Pushing master"
115-
git push origin master
114+
echo "Pushing main"
115+
git push origin main
116116

117117
echo
118118
echo Checkout the release branch and build the plugin
@@ -142,7 +142,7 @@ read -r
142142
echo
143143
echo "Publishing now..."
144144
git restore net.sourceforge.pmd.eclipse.p2updatesite/category.xml
145-
git checkout master
145+
git checkout main
146146
git branch -D "pmd-eclipse-plugin-rb-${RELEASE_VERSION}"
147147
git push origin tag "${RELEASE_VERSION}.${BUILDQUALIFIER}"
148148
echo
@@ -198,7 +198,7 @@ echo
198198
echo "Please verify and commit and push..."
199199
echo "cd ${PMD_GITHUB_IO_DIR}"
200200
echo "git commit -m \"PMD For Eclipse ${RELEASE_VERSION}.${BUILDQUALIFIER} Released\""
201-
echo "git push origin master"
201+
echo "git push origin main"
202202
echo
203203
echo
204204
echo Done.

pmd-eclipse-plugin.setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139
rootFolder="${git.clone.location}"/>
140140
<description></description>
141141
</setupTask>
142-
<stream name="master"
143-
label="master"/>
142+
<stream name="main"
143+
label="main"/>
144144
<logicalProjectContainer
145145
xsi:type="setup:ProjectCatalog"
146146
href="index:/org.eclipse.setup#//@projectCatalogs[name='com.github']"/>

0 commit comments

Comments
 (0)