Skip to content

Commit 52555fc

Browse files
authored
switch to main for default branch (#1559)
1 parent e5ee57b commit 52555fc

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
- run: dotnet tool restore && dotnet cake --target=Release
1717
workflows:
1818
version: 2
19-
master:
19+
main:
2020
jobs:
2121
- queue/block_workflow:
2222
time: "20"
23-
only-on-branch: master
23+
only-on-branch: main
2424
- release:
2525
requires:
2626
- queue/block_workflow
2727
filters:
2828
branches:
29-
only: master
29+
only: main
3030
develop:
3131
jobs:
3232
- build:
@@ -39,5 +39,5 @@ workflows:
3939
filters:
4040
branches:
4141
ignore:
42-
- master
42+
- main
4343
- develop

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
![Ocelot Logo](/images/ocelot_logo.png)
22

3-
[![CircleCI](https://circleci.com/gh/ThreeMammals/Ocelot/tree/master.svg?style=svg)](https://circleci.com/gh/ThreeMammals/Ocelot/tree/master)
3+
[![CircleCI](https://circleci.com/gh/ThreeMammals/Ocelot/tree/main.svg?style=svg)](https://circleci.com/gh/ThreeMammals/Ocelot/tree/main)
44

5-
[![Coverage Status](https://coveralls.io/repos/github/ThreeMammals/Ocelot/badge.svg?branch=master)](https://coveralls.io/github/ThreeMammals/Ocelot?branch=master)
5+
[![Coverage Status](https://coveralls.io/repos/github/ThreeMammals/Ocelot/badge.svg?branch=main)](https://coveralls.io/github/ThreeMammals/Ocelot?branch=main)
66

77
[Slack](https://threemammals.slack.com)
88

build.cake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Task("RunUnitTests")
200200
// ReportGenerator(coverageSummaryFile, artifactsForUnitTestsDir);
201201
// https://github.com/danielpalme/ReportGenerator
202202

203-
if (IsRunningOnCircleCI() && IsMaster())
203+
if (IsRunningOnCircleCI() && IsMain())
204204
{
205205
var repoToken = EnvironmentVariable(coverallsRepoToken);
206206
if (string.IsNullOrEmpty(repoToken))
@@ -431,7 +431,7 @@ private void PublishPackages(ConvertableDirectoryPath packagesDir, ConvertableFi
431431

432432
private void CreateGitHubRelease()
433433
{
434-
var json = $"{{ \"tag_name\": \"{versioning.NuGetVersion}\", \"target_commitish\": \"master\", \"name\": \"{versioning.NuGetVersion}\", \"body\": \"{ReleaseNotesAsJson()}\", \"draft\": true, \"prerelease\": true }}";
434+
var json = $"{{ \"tag_name\": \"{versioning.NuGetVersion}\", \"target_commitish\": \"main\", \"name\": \"{versioning.NuGetVersion}\", \"body\": \"{ReleaseNotesAsJson()}\", \"draft\": true, \"prerelease\": true }}";
435435

436436
var content = new System.Net.Http.StringContent(json, System.Text.Encoding.UTF8, "application/json");
437437

@@ -487,7 +487,7 @@ private void UploadFileToGitHubRelease(FilePath file)
487487

488488
private void CompleteGitHubRelease()
489489
{
490-
var json = $"{{ \"tag_name\": \"{versioning.NuGetVersion}\", \"target_commitish\": \"master\", \"name\": \"{versioning.NuGetVersion}\", \"body\": \"{ReleaseNotesAsJson()}\", \"draft\": false, \"prerelease\": false }}";
490+
var json = $"{{ \"tag_name\": \"{versioning.NuGetVersion}\", \"target_commitish\": \"main\", \"name\": \"{versioning.NuGetVersion}\", \"body\": \"{ReleaseNotesAsJson()}\", \"draft\": false, \"prerelease\": false }}";
491491
var request = new System.Net.Http.HttpRequestMessage(new System.Net.Http.HttpMethod("Patch"), $"https://api.github.com/repos/ThreeMammals/Ocelot/releases/{releaseId}");
492492
request.Content = new System.Net.Http.StringContent(json, System.Text.Encoding.UTF8, "application/json");
493493

@@ -545,7 +545,7 @@ private bool IsRunningOnCircleCI()
545545
return !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CIRCLECI"));
546546
}
547547

548-
private bool IsMaster()
548+
private bool IsMain()
549549
{
550-
return Environment.GetEnvironmentVariable("CIRCLE_BRANCH").ToLower() == "master";
550+
return Environment.GetEnvironmentVariable("CIRCLE_BRANCH").ToLower() == "main";
551551
}

docs/building/releaseprocess.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Release process
22
===============
33

44
* The release process works best with Git Flow branching.
5-
* Contributors can do whatever they want on PRs and merges to master will result in packages being released to GitHub and NuGet.
5+
* Contributors can do whatever they want on PRs and merges to main will result in packages being released to GitHub and NuGet.
66

77
Ocelot uses the following process to accept work into the NuGet packages.
88

@@ -25,7 +25,7 @@ In order for a PR to be merged the following must have occured.
2525

2626
5. After the PR is merged to develop the Ocelot NuGet packages will not be updated until a release is created.
2727

28-
6. When enough work has been completed to justify a new release. Develop will be merged into master the release process will begin which builds the code, versions it, pushes artifacts to GitHub and NuGet packages to NuGet.
28+
6. When enough work has been completed to justify a new release. Develop will be merged into main the release process will begin which builds the code, versions it, pushes artifacts to GitHub and NuGet packages to NuGet.
2929

3030
7. The final step is to go back to GitHub and close any issues that are now fixed. You should see something like this in`GitHub <https://github.com/ThreeMammals/Ocelot/releases/tag/13.0.0>`_ and this in `NuGet <https://www.nuget.org/packages/Ocelot/13.0.0>`_.
3131

@@ -34,4 +34,4 @@ Notes
3434

3535
All NuGet package builds & releases are done with CircleCI `here <https://circleci.com/gh/ThreeMammals>_` and all releases are done from `here <https://ci.appveyor.com/project/TomPallister/ocelot-ayj4w>_`.
3636

37-
Only TomPallister can merge releases into master at the moment. This is to ensure there is a final quality gate in place. Tom is mainly looking for security issues on the final merge.
37+
Only TomPallister can merge releases into main at the moment. This is to ensure there is a final quality gate in place. Tom is mainly looking for security issues on the final merge.

docs/features/caching.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Finally in order to use caching on a route in your Route configuration add this
2929
3030
In this example ttl seconds is set to 15 which means the cache will expire after 15 seconds.
3131

32-
If you look at the example `here <https://github.com/ThreeMammals/Ocelot/blob/master/test/Ocelot.ManualTest/Program.cs>`_ you can see how the cache manager is setup and then passed into the Ocelot AddCacheManager configuration method. You can use any settings supported by the CacheManager package and just pass them in.
32+
If you look at the example `here <https://github.com/ThreeMammals/Ocelot/blob/main/test/Ocelot.ManualTest/Program.cs>`_ you can see how the cache manager is setup and then passed into the Ocelot AddCacheManager configuration method. You can use any settings supported by the CacheManager package and just pass them in.
3333

3434
Anyway Ocelot currently supports caching on the URL of the downstream service and setting a TTL in seconds to expire the cache. You can also clear the cache for a region by calling Ocelot's administration API.
3535

docs/features/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Configuration
22
============
33

4-
An example configuration can be found `here <https://github.com/ThreeMammals/Ocelot/blob/master/test/Ocelot.ManualTest/ocelot.json>`_. There are two sections to the configuration. An array of Routes and a GlobalConfiguration. The Routes are the objects that tell Ocelot how to treat an upstream request. The Global configuration is a bit hacky and allows overrides of Route specific settings. It's useful if you don't want to manage lots of Route specific settings.
4+
An example configuration can be found `here <https://github.com/ThreeMammals/Ocelot/blob/main/test/Ocelot.ManualTest/ocelot.json>`_. There are two sections to the configuration. An array of Routes and a GlobalConfiguration. The Routes are the objects that tell Ocelot how to treat an upstream request. The Global configuration is a bit hacky and allows overrides of Route specific settings. It's useful if you don't want to manage lots of Route specific settings.
55

66
.. code-block:: json
77

docs/features/graphql.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GraphQL
44
OK you got me Ocelot doesn't directly support GraphQL but so many people have asked about it I wanted to show how easy it is to integrate the `graphql-dotnet <https://github.com/graphql-dotnet/graphql-dotnet>`_ library.
55

66

7-
Please see the sample project `OcelotGraphQL <https://github.com/ThreeMammals/Ocelot/tree/master/samples/OcelotGraphQL>`_. Using a combination of the graphql-dotnet project and Ocelot's DelegatingHandler features this is pretty easy to do.
7+
Please see the sample project `OcelotGraphQL <https://github.com/ThreeMammals/Ocelot/tree/main/samples/OcelotGraphQL>`_. Using a combination of the graphql-dotnet project and Ocelot's DelegatingHandler features this is pretty easy to do.
88
However I do not intend to integrate more closely with GraphQL at the moment. Check out the samples readme and that should give you enough instruction on how to do this!
99

1010
Good luck and have fun :>

0 commit comments

Comments
 (0)