diff --git a/github/gen-accessors.go b/github/gen-accessors.go index 6605c73bcca..f9a59d599df 100644 --- a/github/gen-accessors.go +++ b/github/gen-accessors.go @@ -348,15 +348,15 @@ type getter struct { ArrayType bool } -const source = `// Copyright {{.Year}} The go-github AUTHORS. All rights reserved. +const source = `// Code generated by gen-accessors; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch + +// Copyright {{.Year}} 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. -// Code generated by gen-accessors; DO NOT EDIT. -// Instead, please run "go generate ./..." as described here: -// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch - package {{.Package}} {{with .Imports}} import ( @@ -394,15 +394,15 @@ func ({{.ReceiverVar}} *{{.ReceiverType}}) Get{{.FieldName}}() {{.FieldType}} { {{end}} ` -const test = `// Copyright {{.Year}} The go-github AUTHORS. All rights reserved. +const test = `// Code generated by gen-accessors; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch + +// Copyright {{.Year}} 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. -// Code generated by gen-accessors; DO NOT EDIT. -// Instead, please run "go generate ./..." as described here: -// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch - package {{.Package}} {{with .Imports}} import ( diff --git a/github/gen-stringify-test.go b/github/gen-stringify-test.go index 3eefe8b84ed..3f31caf8a92 100644 --- a/github/gen-stringify-test.go +++ b/github/gen-stringify-test.go @@ -387,15 +387,15 @@ func logf(fmt string, args ...any) { } } -const source = `// Copyright {{.Year}} The go-github AUTHORS. All rights reserved. +const source = `// Code generated by gen-stringify-tests; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch + +// Copyright {{.Year}} 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. -// Code generated by gen-stringify-tests; DO NOT EDIT. -// Instead, please run "go generate ./..." as described here: -// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch - package {{ $package := .Package}}{{$package}} {{with .Imports}} import ( diff --git a/github/github-accessors.go b/github/github-accessors.go index 892f0fc3448..5f8af89d700 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -1,12 +1,12 @@ +// Code generated by gen-accessors; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch + // 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. -// Code generated by gen-accessors; DO NOT EDIT. -// Instead, please run "go generate ./..." as described here: -// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch - package github import ( diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 3c0d75149c5..4e4a6ae01a0 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -1,12 +1,12 @@ +// Code generated by gen-accessors; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch + // 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. -// Code generated by gen-accessors; DO NOT EDIT. -// Instead, please run "go generate ./..." as described here: -// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch - package github import ( diff --git a/github/github-stringify_test.go b/github/github-stringify_test.go index e7c6ed86da5..bf4db58f503 100644 --- a/github/github-stringify_test.go +++ b/github/github-stringify_test.go @@ -1,12 +1,12 @@ +// Code generated by gen-stringify-tests; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch + // Copyright 2019 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. -// Code generated by gen-stringify-tests; DO NOT EDIT. -// Instead, please run "go generate ./..." as described here: -// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch - package github import (