diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 426a2c7a..6a95c49c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: [ "main" ] pull_request: # The branches below must be a subset of the branches above - branches: [ "master" ] + branches: [ "main" ] schedule: - cron: '21 12 * * 1' @@ -48,11 +48,11 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - + # 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 # queries: security-extended,security-and-quality - + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild @@ -61,7 +61,7 @@ jobs: # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 3ae40caf..1305a9c4 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -2,10 +2,10 @@ name: Build, test and publish "on": push: branches: - - master + - main pull_request: branches: - - master + - main env: config: Release PackageOutputPath: nupkg @@ -49,11 +49,11 @@ jobs: name: nupkg path: ${{ env.PackageOutputPath }}/*.nupkg - name: Publish to GitHub Packages - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' shell: bash run: dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg - name: Publish to nuget.org - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' shell: bash run: >- dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg --source diff --git a/.github/workflows/generate-schema.yml b/.github/workflows/generate-schema.yml index 13c7eb9e..e8076d32 100644 --- a/.github/workflows/generate-schema.yml +++ b/.github/workflows/generate-schema.yml @@ -2,10 +2,10 @@ name: Test Generate Schema "on": push: branches: - - master + - main pull_request: branches: - - master + - main schedule: - cron: 0 0 * * * jobs: diff --git a/docs/releasing.md b/docs/releasing.md index 8cf54114..65c124c2 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -9,8 +9,8 @@ Creating a new release and deploying the package to nuget are administrative tas ### Prepare the changeset & publish to nuget.org -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. -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. +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. +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. 3. Test! This is when you might need to run the [generator](contributing.md) or tests or simply review the changes as a set. 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 `git tag v0.1.9-beta` @@ -19,7 +19,7 @@ Creating a new release and deploying the package to nuget are administrative tas 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 8. Verify that the package has been uploaded to [nuget.org](https://www.nuget.org/packages/Octokit.GraphQL/) 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 -10. Check "This is a pre-release" and click "publish release" 🎉 +10. Check "This is a pre-release" and click "publish release" 🎉 --- diff --git a/readme.md b/readme.md index 0c28fb61..a3b2eb1f 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # Octokit.GraphQL -[![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) -[![codecov](https://codecov.io/gh/octokit/octokit.graphql.net/branch/master/graph/badge.svg)](https://codecov.io/gh/octokit/octokit.graphql.net) +[![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) +[![codecov](https://codecov.io/gh/octokit/octokit.graphql.net/branch/main/graph/badge.svg)](https://codecov.io/gh/octokit/octokit.graphql.net) [![NuGet](http://img.shields.io/nuget/v/Octokit.GraphQL.svg)](https://www.nuget.org/packages/Octokit.GraphQL) **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 ```csharp using Octokit.GraphQL; using static Octokit.GraphQL.Variable; - + var productInformation = new ProductHeaderValue("YOUR_PRODUCT_NAME", "YOUR_PRODUCT_VERSION"); var connection = new Connection(productInformation, YOUR_OAUTH_TOKEN); @@ -78,7 +78,7 @@ namespace Octokit { User = sponsoring.Sponsorable .Cast() - .Select(x => new { + .Select(x => new { x.Login, x.Name, x.Id