Skip to content

Commit 579006e

Browse files
authored
Merge pull request #290 from octokit/default-branch-rename
Rename default branch
2 parents 5e53acf + f131851 commit 579006e

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "master" ]
16+
branches: [ "main" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "master" ]
19+
branches: [ "main" ]
2020
schedule:
2121
- cron: '21 12 * * 1'
2222

@@ -48,11 +48,11 @@ jobs:
4848
# If you wish to specify custom queries, you can do so here or in a config file.
4949
# By default, queries listed here will override any specified in a config file.
5050
# Prefix the list here with "+" to use these queries and those in the config file.
51-
51+
5252
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5353
# queries: security-extended,security-and-quality
5454

55-
55+
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
@@ -61,7 +61,7 @@ jobs:
6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6363

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
6565
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6666

6767
# - run: |

.github/workflows/dotnetcore.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Build, test and publish
22
"on":
33
push:
44
branches:
5-
- master
5+
- main
66
pull_request:
77
branches:
8-
- master
8+
- main
99
env:
1010
config: Release
1111
PackageOutputPath: nupkg
@@ -49,11 +49,11 @@ jobs:
4949
name: nupkg
5050
path: ${{ env.PackageOutputPath }}/*.nupkg
5151
- name: Publish to GitHub Packages
52-
if: github.ref == 'refs/heads/master'
52+
if: github.ref == 'refs/heads/main'
5353
shell: bash
5454
run: dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg
5555
- name: Publish to nuget.org
56-
if: github.ref == 'refs/heads/master'
56+
if: github.ref == 'refs/heads/main'
5757
shell: bash
5858
run: >-
5959
dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg --source

.github/workflows/generate-schema.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Test Generate Schema
22
"on":
33
push:
44
branches:
5-
- master
5+
- main
66
pull_request:
77
branches:
8-
- master
8+
- main
99
schedule:
1010
- cron: 0 0 * * *
1111
jobs:

docs/releasing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Creating a new release and deploying the package to nuget are administrative tas
99

1010
### Prepare the changeset & publish to nuget.org
1111

12-
1. Create a branch from `master` and update the version node [Octokit.GraphQL.nuspec](https://github.com/octokit/octokit.graphql.net/blob/master/Octokit.GraphQL.nuspec) with the next version.
13-
2. Push the branch to GitHub and create a pull request. This will kick off the CI builds to verify all of the changes in master.
12+
1. Create a branch from `main` and update the version node [Octokit.GraphQL.nuspec](https://github.com/octokit/octokit.graphql.net/blob/main/Octokit.GraphQL.nuspec) with the next version.
13+
2. Push the branch to GitHub and create a pull request. This will kick off the CI builds to verify all of the changes in main.
1414
3. Test! This is when you might need to run the [generator](contributing.md) or tests or simply review the changes as a set.
1515
4. When you're satisfied with this release, create a tag `git tag v#.#.#-beta`. For example, to create a tag for 0.1.9-beta
1616
`git tag v0.1.9-beta`
@@ -19,7 +19,7 @@ Creating a new release and deploying the package to nuget are administrative tas
1919
7. When the tag and branch is successfully merged, the [publish workflow](https://github.com/octokit/octokit.graphql.net/actions/workflows/dotnetcore.yml) will run and build and push the package to nuget
2020
8. Verify that the package has been uploaded to [nuget.org](https://www.nuget.org/packages/Octokit.GraphQL/)
2121
9. Create a [new release](https://github.com/octokit/octokit.graphql.net/releases/new) using the tag you just created and click auto generate notes. Cleanup the notes up as you see fit
22-
10. Check "This is a pre-release" and click "publish release" 🎉
22+
10. Check "This is a pre-release" and click "publish release" 🎉
2323

2424

2525
---

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Octokit.GraphQL
22

3-
[![Build status](https://ci.appveyor.com/api/projects/status/falhvlth7og0nkw4/branch/master?svg=true)](https://ci.appveyor.com/project/github-windows/octokit-graphql/branch/master)
4-
[![codecov](https://codecov.io/gh/octokit/octokit.graphql.net/branch/master/graph/badge.svg)](https://codecov.io/gh/octokit/octokit.graphql.net)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/falhvlth7og0nkw4/branch/main?svg=true)](https://ci.appveyor.com/project/github-windows/octokit-graphql/branch/main)
4+
[![codecov](https://codecov.io/gh/octokit/octokit.graphql.net/branch/main/graph/badge.svg)](https://codecov.io/gh/octokit/octokit.graphql.net)
55
[![NuGet](http://img.shields.io/nuget/v/Octokit.GraphQL.svg)](https://www.nuget.org/packages/Octokit.GraphQL)
66

77
**Note**: This software is currently beta. There are few things left, and there might be bugs - be warned!
@@ -23,7 +23,7 @@ Install-Package Octokit.GraphQL -IncludePrerelease
2323
```csharp
2424
using Octokit.GraphQL;
2525
using static Octokit.GraphQL.Variable;
26-
26+
2727
var productInformation = new ProductHeaderValue("YOUR_PRODUCT_NAME", "YOUR_PRODUCT_VERSION");
2828
var connection = new Connection(productInformation, YOUR_OAUTH_TOKEN);
2929

@@ -78,7 +78,7 @@ namespace Octokit
7878
{
7979
User = sponsoring.Sponsorable
8080
.Cast<User>()
81-
.Select(x => new {
81+
.Select(x => new {
8282
x.Login,
8383
x.Name,
8484
x.Id

0 commit comments

Comments
 (0)