Skip to content

Commit

Permalink
Initial commit of default branch rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Jan 9, 2023
1 parent 7c33e84 commit f131851
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Build, test and publish
"on":
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
env:
config: Release
PackageOutputPath: nupkg
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test Generate Schema
"on":
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
schedule:
- cron: 0 0 * * *
jobs:
Expand Down
6 changes: 3 additions & 3 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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" 🎉


---
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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!
Expand All @@ -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);

Expand Down Expand Up @@ -78,7 +78,7 @@ namespace Octokit
{
User = sponsoring.Sponsorable
.Cast<User>()
.Select(x => new {
.Select(x => new {
x.Login,
x.Name,
x.Id
Expand Down

0 comments on commit f131851

Please sign in to comment.