Skip to content

Commit 5e725fb

Browse files
committed
Merge remote-tracking branch 'upstream/master' into secret-scanning-custom-patterns-repo
2 parents 8521744 + e5f31b2 commit 5e725fb

12 files changed

Lines changed: 687 additions & 472 deletions

File tree

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ linters:
206206
- ActionsVariable
207207
- AddProjectItemOptions
208208
- AuthorizationRequest
209-
- AutolinkOptions
210209
- CodeScanningAlertState
211210
- CodespaceCreateForUserOptions
212211
- ConfigApplyOptions
@@ -232,13 +231,11 @@ linters:
232231
- InstallationTokenOptions
233232
- IssueComment
234233
- IssueImportRequest
235-
- IssueRequest
236234
- Key
237235
- Label
238236
- LockIssueOptions
239237
- MaintenanceOptions
240238
- Milestone
241-
- NewPullRequest
242239
- Organization
243240
- PagesUpdate
244241
- PagesUpdateWithoutCNAME
@@ -278,7 +275,6 @@ linters:
278275
# TODO: fix and remove these exceptions.
279276
body-allowed-wrong-names:
280277
- AddProjectItemOptions
281-
- AutolinkOptions
282278
- CheckSuitePreferenceOptions
283279
- CodespaceCreateForUserOptions
284280
- ConfigApplyOptions
@@ -421,8 +417,6 @@ linters:
421417
- IssueListByRepoOptions.Since # TODO: Issues
422418
- IssueListCommentsOptions.Direction
423419
- IssueListCommentsOptions.Sort
424-
- IssueRequest.Assignees # TODO: Issues
425-
- IssueRequest.Labels # TODO: Issues
426420
- License.Conditions # TODO: Licenses
427421
- License.Limitations # TODO: Licenses
428422
- License.Permissions # TODO: Licenses

example/commitpr/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ func createPR() (err error) {
194194
prRepo = sourceRepo
195195
}
196196

197-
newPR := &github.NewPullRequest{
197+
newPR := github.CreatePullRequest{
198198
Title: prSubject,
199-
Head: commitBranch,
199+
Head: *commitBranch,
200200
HeadRepo: repoBranch,
201-
Base: prBranch,
201+
Base: *prBranch,
202202
Body: prDescription,
203203
MaintainerCanModify: github.Ptr(true),
204204
}

github/examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ func ExamplePullRequestsService_Create() {
135135
log.Fatalf("Error creating GitHub client: %v", err)
136136
}
137137

138-
newPR := &github.NewPullRequest{
138+
newPR := github.CreatePullRequest{
139139
Title: github.Ptr("My awesome pull request"),
140-
Head: github.Ptr("branch_to_merge"),
141-
Base: github.Ptr("master"),
140+
Head: "branch_to_merge",
141+
Base: "master",
142142
Body: github.Ptr("This is the description of the PR created with the package `github.com/google/go-github/github`"),
143143
MaintainerCanModify: github.Ptr(true),
144144
}

0 commit comments

Comments
 (0)