Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: graphql-dotnet/server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.1.0
Choose a base ref
...
head repository: graphql-dotnet/server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.1.1
Choose a head ref
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 23, 2021

  1. Fix content-type bug (#656)

    sungam3r authored Nov 23, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    dmathieu Damien Mathieu
    Copy the full SHA
    019dad1 View commit details

Commits on Dec 4, 2021

  1. CodeQL support (#662)

    sungam3r authored Dec 4, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    dmathieu Damien Mathieu
    Copy the full SHA
    b5201ad View commit details

Commits on Dec 5, 2021

  1. Update LICENSE.md (#645)

    sungam3r authored Dec 5, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    dmathieu Damien Mathieu
    Copy the full SHA
    b9c6bbb View commit details

Commits on Dec 6, 2021

  1. fix CI

    sungam3r committed Dec 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    dmathieu Damien Mathieu
    Copy the full SHA
    e6fe2e1 View commit details
Showing with 34 additions and 8 deletions.
  1. +22 −5 .github/workflows/codeql-analysis.yml
  2. +1 −1 .github/workflows/publish.yml
  3. +1 −1 LICENSE.md
  4. +10 −1 src/Ui.Playground/Internal/PlaygroundPageModel.cs
27 changes: 22 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# https://github.com/github/codeql
# https://github.com/github/codeql-action
name: CodeQL analysis

on:
@@ -9,12 +11,27 @@ on:
jobs:
analyze:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout source
uses: actions/checkout@v2

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
fetch-depth: 2
- uses: github/codeql-action/init@v1
dotnet-version: '5.0.x'

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
queries: security-and-quality
languages: csharp
- uses: github/codeql-action/autobuild@v1
- uses: github/codeql-action/analyze@v1

- name: Install dependencies
run: dotnet restore

- name: Build solution
run: dotnet build --no-restore

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ jobs:
const { repo: { owner, repo }, sha } = context;
for (let file of await fs.readdir('out')) {
console.log('uploading', file);
await github.repos.uploadReleaseAsset({
await github.rest.repos.uploadReleaseAsset({
owner,
repo,
release_id: ${{ github.event.release.id }},
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2021 Pekka Heikura, et al. All rights reserved.
Copyright (c) 2015-2021 Pekka Heikura, Ivan Maximov, et al. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
11 changes: 10 additions & 1 deletion src/Ui.Playground/Internal/PlaygroundPageModel.cs
Original file line number Diff line number Diff line change
@@ -27,7 +27,16 @@ public string Render()
var headers = new Dictionary<string, object>
{
["Accept"] = "application/json",
["Content-Type"] = "application/json",
// TODO: investigate, fails in Chrome
// {
// "error": "Response not successful: Received status code 400"
// }
//
// MediaTypeHeaderValue.TryParse(httpRequest.ContentType, out var mediaTypeHeader) from GraphQLHttpMiddleware
// returns false because of
// content-type: application/json, application/json

//["Content-Type"] = "application/json",
};

if (_options.Headers?.Count > 0)