Skip to content

Commit e7d99e9

Browse files
authored
Rename master branch to main (#3539)
1 parent df62147 commit e7d99e9

26 files changed

+51
-52
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Thanks for contributing to Spring Integration.
33
Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #) or StackOverflow questions.
44
5-
See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-integration/blob/master/CONTRIBUTING.adoc).
5+
See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-integration/blob/main/CONTRIBUTING.adoc).
66
-->

.github/workflows/pr-build-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Pull Request build
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ main ]
66

77
jobs:
88
build:

CONTRIBUTING.adoc

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Please refer back to this document as a checklist before issuing any pull reques
88

99
== Code of Conduct
1010

11-
Please see our https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md[code of conduct]
11+
Please see our https://github.com/spring-projects/.github/blob/main/CODE_OF_CONDUCT.md[code of conduct]
1212

1313
== Reporting Security Vulnerabilities
1414

@@ -49,7 +49,7 @@ _you should see only 'origin' - which is the fork you created for your own githu
4949
_you should now see 'upstream' in addition to 'origin' where 'upstream' is the Spring repository from which releases are built_
5050
6. `git fetch --all`
5151
7. `git branch -a`
52-
_you should see branches on origin as well as upstream, including 'master'_
52+
_you should see branches on origin as well as upstream, including 'main'_
5353

5454
== Build from Source
5555

@@ -126,36 +126,37 @@ You can build and test only a specific module if your contribution is only over
126126
* If you want to collaborate with another contributor, have them fork your repository (add it as a remote) and `git fetch <your-username>` to grab your branch.
127127
Alternatively, they can use `git fetch --all` to sync their local state with all of their remotes.
128128
* If you grant that collaborator push access to your repository, they can even apply their changes to your branch.
129-
* When ready for your contribution to be reviewed for potential inclusion in the master branch of the canonical `spring-integration` repository (what you know as 'upstream'), issue a pull request to the SpringSource repository (for more detail, see https://help.github.com/articles/using-pull-requests/[Using pull requests]).
130-
* The project lead may merge your changes into the upstream master branch as-is, he may keep the pull request open yet add a comment about something that should be modified, or he might reject the pull request by closing it.
131-
* A prerequisite for any pull request is that it will be cleanly merge-able with the upstream master's current state.
129+
* When ready for your contribution to be reviewed for potential inclusion in the main branch of the canonical `spring-integration` repository (what you know as 'upstream'), issue a pull request to the SpringSource repository (for more detail, see https://help.github.com/articles/using-pull-requests/[Using pull requests]).
130+
* The project lead may merge your changes into the upstream main branch as-is, he may keep the pull request open yet add a comment about something that should be modified, or he might reject the pull request by closing it.
131+
* A prerequisite for any pull request is that it will be cleanly merge-able with the upstream main's current state.
132132
**This is the responsibility of any contributor.**
133133
If your pull request cannot be applied cleanly, the project lead will most likely add a comment requesting that you make it merge-able.
134134
For a full explanation, see https://git-scm.com/book/en/Git-Branching-Rebasing[the Pro Git section on rebasing].
135135
As stated there: _"> Often, you’ll do this to make sure your commits apply cleanly on a remote branch — perhaps in a project to which you’re trying to contribute but that you don’t maintain."_
136136

137137
== Keeping your Local Code in Sync
138138

139-
* As mentioned above, you should always work on topic branches (since 'master' is a moving target). However, you do want to always keep your own 'origin' master branch in synch with the 'upstream' master.
139+
* As mentioned above, you should always work on topic branches (since 'main' is a moving target).
140+
However, you do want to always keep your own 'origin' main branch in synch with the 'upstream' main.
140141
* Within your local working directory, you can sync up all remotes' branches with: `git fetch --all`
141-
* While on your own local master branch: `git pull upstream master` (which is the equivalent of fetching upstream/master and merging that into the branch you are in currently)
142+
* While on your own local main branch: `git pull upstream main` (which is the equivalent of fetching upstream/main and merging that into the branch you are in currently)
142143
* Now that you're in synch, switch to the topic branch where you plan to work, e.g.: `git checkout -b GH-123`
143144
* When you get to a stopping point: `git commit`
144-
* If changes have occurred on the upstream/master while you were working you can sync again:
145-
- Switch back to master: `git checkout master`
146-
- Then: `git pull upstream master`
145+
* If changes have occurred on the upstream/main while you were working you can sync again:
146+
- Switch back to main: `git checkout main`
147+
- Then: `git pull upstream main`
147148
- Switch back to the topic branch: `git checkout GH-123` (no -b needed since the branch already exists)
148-
- Rebase the topic branch to minimize the distance between it and your recently synced master branch: `git rebase master`
149+
- Rebase the topic branch to minimize the distance between it and your recently synced main branch: `git rebase main`
149150
(Again, for more detail see https://git-scm.com/book/en/Git-Branching-Rebasing[the Pro Git section on rebasing]).
150-
* **Note** While it is generally recommended to __not__ re-write history by using `push --force`, and we do not do this on `master` (and release) branches in the main repo, we require topic branches for pull requests to be rebased before merging, in order to maintain a clean timeline and avoid "merge" commits.
151+
* **Note** While it is generally recommended to __not__ re-write history by using `push --force`, and we do not do this on `main` (and release) branches in the main repo, we require topic branches for pull requests to be rebased before merging, in order to maintain a clean timeline and avoid "merge" commits.
151152
* If, while rebasing for the merge, we find significant conflicts, we may ask you to rebase and `push --force` to your topic branch after resolving the conflicts.
152-
* Assuming your pull request is merged into the 'upstream' master, you will end up pulling that change into your own master eventually and, at that time, you may decide to delete the topic branch from your local repository and your fork (origin) if you pushed it there.
153+
* Assuming your pull request is merged into the 'upstream' main, you will end up pulling that change into your own main eventually and, at that time, you may decide to delete the topic branch from your local repository and your fork (origin) if you pushed it there.
153154
- to delete the local branch: `git branch -d GH-123`
154155
- to delete the branch from your origin: `git push origin :GH-123`
155156

156157
== Maintain a linear commit history
157158

158-
When merging to master, the project __always__ uses fast-forward merges.
159+
When merging to main, the project __always__ uses fast-forward merges.
159160
As discussed above, when issuing pull requests, please ensure that your commit history is linear.
160161
From the command line you can check this using:
161162

@@ -181,7 +182,7 @@ This command, will provide the following output, which in this case shows a nice
181182
----
182183

183184
If you see intersecting lines, that usually means that you forgot to rebase you branch.
184-
As mentioned earlier, **please rebase against master** before issuing a pull request.
185+
As mentioned earlier, **please rebase against main** before issuing a pull request.
185186

186187
== Follow the Code Style
187188

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Spring Integration [<img src="https://build.spring.io/plugins/servlet/wittified/build-status/INT-MASTER">](https://build.spring.io/browse/INT-MASTER) [![Join the chat at https://gitter.im/spring-projects/spring-integration](https://badges.gitter.im/spring-projects/spring-integration.svg)](https://gitter.im/spring-projects/spring-integration?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1+
Spring Integration [<img src="https://build.spring.io/plugins/servlet/wittified/build-status/INT-MAIN">](https://build.spring.io/browse/INT-MAIN) [![Join the chat at https://gitter.im/spring-projects/spring-integration](https://badges.gitter.im/spring-projects/spring-integration.svg)](https://gitter.im/spring-projects/spring-integration?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
22
==================
33

44
# Code of Conduct
55

6-
Please see our [Code of conduct](https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md).
6+
Please see our [Code of conduct](https://github.com/spring-projects/.github/blob/main/CODE_OF_CONDUCT.md).
77

88
# Reporting Security Vulnerabilities
99

@@ -73,7 +73,7 @@ File -> Open... -> and select build.gradle from spring-integration project root
7373

7474
# Guidelines
7575

76-
See also [Contributor Guidelines](https://github.com/spring-projects/spring-integration/blob/master/CONTRIBUTING.adoc).
76+
See also [Contributor Guidelines](https://github.com/spring-projects/spring-integration/blob/main/CONTRIBUTING.adoc).
7777

7878
# Resources
7979

src/reference/asciidoc/barrier.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ public class Config {
8383
}
8484
----
8585

86-
For an example of this component, see the https://github.com/spring-projects/spring-integration-samples/tree/master/basic/barrier[barrier sample application].
86+
For an example of this component, see the https://github.com/spring-projects/spring-integration-samples/tree/main/basic/barrier[barrier sample application].

src/reference/asciidoc/changes-1.0-2.0.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ See also the following blog: https://spring.io/blog/2010/03/29/using-udp-and-tcp
9090

9191
Twitter adapters provides support for sending and receiving Twitter status updates as well as direct messages.
9292
You can also perform Twitter Searches with an inbound channel adapter.
93-
See https://github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-social-twitter[Spring Integration Social Twitter] for more details.
93+
See https://github.com/spring-projects/spring-integration-extensions/tree/main/spring-integration-social-twitter[Spring Integration Social Twitter] for more details.
9494

9595
[[new-xmpp]]
9696
===== XMPP Adapters

src/reference/asciidoc/changes-2.0-2.1.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ The Spring Integration Git repository is located at: https://github.com/spring-p
209209
For the project, we also improved the process of providing code contributions.
210210
Further, we ensure that every commit is peer-reviewed.
211211
In fact, core committers now follow the same process as contributors.
212-
For more details, see https://github.com/spring-projects/spring-integration/blob/master/CONTRIBUTING.adoc[Contributing].
212+
For more details, see https://github.com/spring-projects/spring-integration/blob/main/CONTRIBUTING.adoc[Contributing].
213213

214214
[[x2.1-sonar]]
215215
===== Improved Source Code Visibility with Sonar
216216

217217
In an effort to provide better source code visibility and consequently to monitor the quality of Spring Integration's source code, we set up an instance of https://www.sonarqube.org/[Sonar].
218-
We gather metrics nightly and make them available at https://sonar.spring.io/dashboard?id=org.springframework.integration%3Aspring-integration%3Amaster[sonar.spring.io].
218+
We gather metrics nightly and make them available at https://sonar.spring.io/dashboard?id=org.springframework.integration%3Aspring-integration%3Amain[sonar.spring.io].
219219

220220
[[x2.1-new-samples]]
221221
==== New Samples

src/reference/asciidoc/changes-3.0-4.0.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ For more information, see <<./configuration.adoc#annotations,Annotation Support>
128128

129129
We added a new twitter endpoint: `<int-twitter-search-outbound-gateway/>`.
130130
Unlike the search inbound adapter, which polls by using the same search query each time, the outbound gateway allows on-demand customized queries.
131-
For more information, see https://github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-social-twitter[Spring Integration Social Twitter].
131+
For more information, see https://github.com/spring-projects/spring-integration-extensions/tree/main/spring-integration-social-twitter[Spring Integration Social Twitter].
132132

133133
[[x4.0-gemfire-metadata]]
134134
===== Gemfire Metadata Store
@@ -248,7 +248,7 @@ See <<./ftp.adoc#ftp-session-factory,FTP Session Factory>> for more information.
248248

249249
The `StatusUpdatingMessageHandler` (`<int-twitter:outbound-channel-adapter>`) now supports the `tweet-data-expression` attribute to build a `org.springframework.social.twitter.api.TweetData` object for updating the timeline status.
250250
This feature allows, for example, attaching an image.
251-
See https://github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-social-twitter[Spring Integration Social Twitter] for more information.
251+
See https://github.com/spring-projects/spring-integration-extensions/tree/main/spring-integration-social-twitter[Spring Integration Social Twitter] for more information.
252252

253253
[[x4.0-jpa-id-expression]]
254254
===== JPA Retrieving Gateway: `id-expression`

src/reference/asciidoc/changes-5.0-5.1.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ In addition the key and trust store types can now be configured on the `DefaultT
188188
==== Twitter Support
189189

190190
Since the Spring Social project has moved to https://spring.io/blog/2018/07/03/spring-social-end-of-life-announcement[end of life status], Twitter support in Spring Integration has been moved to the Extensions project.
191-
See https://github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-social-twitter[Spring Integration Social Twitter] for more information.
191+
See https://github.com/spring-projects/spring-integration-extensions/tree/main/spring-integration-social-twitter[Spring Integration Social Twitter] for more information.
192192

193193
[[x51.-jms]]
194194
==== JMS Support

src/reference/asciidoc/codec.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ You can override these framework defaults by configuring the registrars mentione
9191
====== Using a Custom Kryo Serializer
9292

9393
If you need custom serialization, see the https://github.com/EsotericSoftware/kryo[Kryo] documentation, because you need to use the native API to do the customization.
94-
For an example, see the https://github.com/spring-projects/spring-integration/blob/master/spring-integration-core/src/main/java/org/springframework/integration/codec/kryo/MessageCodec.java[`MessageCodec`] implementation.
94+
For an example, see the https://github.com/spring-projects/spring-integration/blob/main/spring-integration-core/src/main/java/org/springframework/integration/codec/kryo/MessageCodec.java[`MessageCodec`] implementation.
9595

9696
====== Implementing KryoSerializable
9797

0 commit comments

Comments
 (0)