From 311df9c521f05cdca880152e73dbed47afb74cde Mon Sep 17 00:00:00 2001 From: haixunlu Date: Tue, 18 Dec 2018 12:49:30 -0800 Subject: auth: add new authentication source: GitHub, including GitHub Enterprise (#5340) * Add new Authentication Source: GitHub, including GitHub Enterprise. * Add vendor dependencies. --- .../google/go-github/github/with_appengine.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 vendor/github.com/google/go-github/github/with_appengine.go (limited to 'vendor/github.com/google/go-github/github/with_appengine.go') diff --git a/vendor/github.com/google/go-github/github/with_appengine.go b/vendor/github.com/google/go-github/github/with_appengine.go new file mode 100644 index 00000000..59ce26b2 --- /dev/null +++ b/vendor/github.com/google/go-github/github/with_appengine.go @@ -0,0 +1,20 @@ +// Copyright 2017 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build appengine + +// This file provides glue for making github work on App Engine. + +package github + +import ( + "context" + "net/http" +) + +func withContext(ctx context.Context, req *http.Request) *http.Request { + // No-op because App Engine adds context to a request differently. + return req +} -- cgit v1.2.3