Skip to content

Releases: google/go-github

v66.0.0

06 Oct 17:04
057b1d7
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add login query param support to ListCredentialAuthorizations (#3270)
    BREAKING CHANGE: ListCredentialAuthorizations now takes opts *CredentialAuthorizationsListOptions instead of ListOptions.

...and the following additional changes:

  • Bump go-github from v64 to v65 in /scrape (#3267)
  • Bump github.com/alecthomas/kong from 0.9.0 to 1.2.1 in /tools (#3268)
  • Add 'mark thread as done' functionality (#3265)
  • Update comment for Ruleset (#3275)
  • Add missing fields to the checksuite event (#3278)
  • chore: Change golangci-lint output format due to deprecation (#3279)
  • feat: Support baseRole option for custom organization roles (#3284)
  • Update AUTHORS (#3286)
  • feat: Support getting an organization role (#3285)
  • feat: Implement organization role assignments for both users and teams (#3281)
  • chore: Enable gosec G602 rule (#3287)
  • fix: Correct typos in vars, comments, tests (#3289)
  • fix: Avoid allocation in the stringifyValue (#3292)
  • Add CancelInvite method to cancel an org invitation by ID (#3263)
  • Add support DeploymentReview Event, ReviewCustomDeploymentProtectionRule API, GetPendingDeployments API (#3254)
  • refactor: Simplify temp file creation in tests (#3290)
  • refactor: Refactor org_custom_roles.go into multiple files (#3291)
  • feat: Implement missing push rules (#3294)
  • refactor: Do not call teardown manually in tests (#3296)
  • docs: Replace godoc.org with pkg.go.dev (#3301)
  • refactor: Remove redundant local vars in examples (#3303)
  • fix: Add missing NotificationSetting to newTeamNoParent (#3302)
  • docs: Improve formatting in README (#3300)
  • docs: Fix typo in test comment (#3307)
  • Add t.Parallel to unit tests (#3297)
  • fix: Allow removing/unsetting repository custom property (#3309)
  • Bump version of go-github to v66.0.0 (#3310)

v65.0.0

16 Sep 13:28
080468c
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Fix meta service domains schema structure (#3249)
    BREAKING CHANGE: APIMeta.Domains changed from map to struct.
  • feat!: Fix broken SCIMService.ProvisionAndInviteSCIMUser method (#3239)
    BREAKING CHANGE: SCIMService.ProvisionAndInviteSCIMUser now returns a response.
  • feat!: Add merge queue parameters to repository ruleset (#3253)
    BREAKING CHANGE: NewMergeQueueRule now takes one parameter: *MergeQueueRuleParameters.

...and the following additional changes:

  • Bump go-github from v63 to v64 in /scrape (#3241)
  • Update workflow and tools to use Go 1.23 and 1.22 (#3242)
  • Add Organization PAT fields to InstallationPermissions struct (#3243)
  • feat: Add do_not_enforce_on_create to required status checks rule params (#3245)
  • Add Source field to RulesetRepositoryPropertyTargetParameters (#3250)
  • Update active committers struct (#3257)
  • Bump golang.org/x/net from 0.28.0 to 0.29.0 in /scrape (#3259)
  • Add type SponsorshipEvent (#3258)
  • Bump version of go-github to v65.0.0 (#3266)

v64.0.0

21 Aug 03:01
480e073
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add support for multi-select Custom Properties (#3200)
    BREAKING CHANGE: CustomPropertyValue.Value is changed from *string to interface{} to support string and []string values.
  • feat!: Replace ListCursorOptions with ListIDPGroupsOptions in TeamsService.ListIDPGroupsInOrganization (#3197)
    BREAKING CHANGE: Replace ListCursorOptions with ListIDPGroupsOptions in TeamsService.ListIDPGroupsInOrganization
  • feat!: Add support for creating GitHub App with organizations (#3222)
    BREAKING CHANGE: The CreateApp function now requires two arguments: AppManifest and orgName, to support creating apps with organizations.
  • feat!: Widen CustomProperties type to map[string]interface{} to align with GitHub API (#3230)
    BREAKING CHANGE: PushEventRepository.CustomProperties is changed from map[string]string to map[string]interface{}.

...and the following additional changes:

  • Bump go-github from v61 to v63 in /scrape (#3206)
  • Add doc for NewPullRequest (#3208)
  • Add Iterators section in README.md (#3212)
  • Update CustomOrgRoles and CustomRepoRoles to include all fields returned by the GitHub API (#3216)
  • Revert "Add CommitID, InReplyTo, and SubjectType to DraftReviewComment" (#3218)
  • Add List fine-grained personal access tokens with access to organization resources API (#3215)
  • Bump github.com/getkin/kin-openapi from 0.126.0 to 0.127.0 in /tools (#3223)
  • Bump golang.org/x/sync from 0.7.0 to 0.8.0 in /tools (#3224)
  • Bump golang.org/x/net from 0.27.0 to 0.28.0 in /scrape (#3234)
  • Allow create custom repository/organization roles without permission (#3235)
  • Add support for filepath repository rules (#3233)
  • Bump version of go-github to v64.0.0 (#3240)

v63.0.0

10 Jul 20:12
173aa01
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Change enterprise runner to also use ListRunnersOptions (#3167)
    BREAKING-CHANGE: This changes ListOptions to ListRunnersOptions in EnterpriseService.ListRunners.
  • feat!: Support querying organization custom roles (#3129)
    BREAKING CHANGE: CreateOrUpdateCustomRoleOptions has been renamed to CreateOrUpdateCustomRepoRoleOptions and roleID has been changed from type string to int64.

...and the following additional changes:

  • feat: Add missing values_editable_by field for organization custom properties (#3164)
  • Add CommitID, InReplyTo, and SubjectType to DraftReviewComment (#3169)
  • Support status codes 302 and 200 in GetArchiveLink endpoint (#3172)
  • Bump codecov/codecov-action from 4.3.1 to 4.4.1 (#3173)
  • Support path property in WorkflowRun (#3176)
  • docs: Update README (#3177)
  • Update readme to include go-githubauth for Application auth (#3180)
  • Bump golang.org/x/net from 0.25.0 to 0.26.0 in /scrape (#3183)
  • Fix: Propagate context with DownloadContents (#3181)
  • Add fields to the InstallationPermissions struct (#3184)
  • Add role name to RepositoryPermissionLevel (#3188)
  • Fix go-githubauth link in README.md (#3191)
  • Bump codecov/codecov-action from 4.4.1 to 4.5.0 (#3193)
  • Bump github.com/getkin/kin-openapi from 0.124.0 to 0.125.0 in /tools (#3192)
  • Add support in rulesets for including or excluding repos based on properties (#3194)
  • Add support for Enterprise GetRunner (#3185)
  • Bump golang.org/x/net from 0.26.0 to 0.27.0 in /scrape (#3201)
  • Bump github.com/getkin/kin-openapi from 0.125.0 to 0.126.0 in /tools (#3202)
  • Allow an empty array of BypassActors in Ruleset struct in CreateRuleset endpoint (#3174)
  • Add support for App Callback URLs (#3204)
  • Bump version of go-github to v63.0.0 (#3205)

v62.0.0

11 May 00:02
87c3716
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add ListRunnersOptions to support all query parameters (#3094)
    BREAKING-CHANGE: This changes ListOptions to ListRunnersOptions in ListRunners and ListOrganizationRunners.

...and the following additional changes:

  • Bump codecov/codecov-action from 4.1.0 to 4.1.1 (#3120)
  • Bump go-github from v60 to v61 in /scrape (#3119)
  • Print the unrecognized repository rule type (#3113)
  • feat: Add missing github enterprise importer and domains meta fields (#3121)
  • Bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0 in /tools (#3122)
  • Bump golang.org/x/sync from 0.6.0 to 0.7.0 in /tools (#3123)
  • Bump codecov/codecov-action from 4.1.1 to 4.2.0 (#3124)
  • Bump golang.org/x/net from 0.22.0 to 0.24.0 in /scrape (#3125)
  • Bump codecov/codecov-action from 4.2.0 to 4.3.0 (#3128)
  • Add support for merge queue ruleset JSON unmarshaling (#3131)
  • Bump golang.org/x/net from 0.17.0 to 0.23.0 in /example (#3134)
  • Add Missing Changes Field to Member Event Type. (#3153)
  • Allow an empty array of repo ids as a request parameter (#3155)
  • Fix application of pagination options on ListCopilotSeats endpoint (#3090)
  • Hotfix: Fix broken unit test in copilot_test.go (#3156)
  • feat: Allow blocking until primary rate limit is reset (#3117)
  • Remove extra backtick from README.md (#3158)
  • Add support for check private vulnerability reporting endpoint (#3157)
  • Add support for Dependency Graph Snapshots endpoint (#2856)
  • Bump codecov/codecov-action from 4.3.0 to 4.3.1 (#3162)
  • Bump golang.org/x/net from 0.24.0 to 0.25.0 in /scrape (#3161)
  • Bump github.com/PuerkitoBio/goquery from 1.9.1 to 1.9.2 in /scrape (#3160)
  • Add Action to DeploymentStatusEvent (#3163)
  • Query identities associated with organization roles (#3130)
  • Bump version of go-github to v62.0.0 (#3165)

v61.0.0

01 Apr 19:02
a4b145a
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Update deprecated endpoints in github/action_variables.go (#3104)

...and the following additional changes:

  • Bump go-github from v59 to v60 in /scrape (#3087)
  • Allow querying rule set information by ID with information returned from GetRulesFromBranch (#3089)
  • Bump codecov/codecov-action from 4.0.2 to 4.1.0 (#3091)
  • Bump github.com/PuerkitoBio/goquery from 1.9.0 to 1.9.1 in /scrape (#3092)
  • Add Protection to Branch struct (#3095)
  • Bump github.com/alecthomas/kong from 0.8.1 to 0.9.0 in /tools (#3097)
  • Bump golang.org/x/net from 0.21.0 to 0.22.0 in /scrape (#3096)
  • Bump google.golang.org/protobuf from 1.28.0 to 1.33.0 in /example (#3099)
  • Add audit log rate limit category and make rate limit category getter public (#3088)
  • Update README.md (#3110)
  • Allow Installation of Custom Properties Permissions (#3108)
  • Add NotificationSetting to NewTeam (#3111)
  • Fix pagination for ListCopilotSeats (#3112)
  • Add .*.local to .gitignore (#3115)
  • Add CreateOrUpdateRepoCustomPropertyValues (#3109)
  • Bump version of go-github to v61.0.0 (#3118)

v60.0.0

29 Feb 17:19
ffe5051
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • Turn RequiredStatusChecks Checks and Contexts into pointers (#3070)
  • feat!: Change Hook.Config field from map to *HookConfig (#3073)

...and the following additional changes:

  • Bump go-github from v58 to v59 in /scrape (#3069)
  • Bump golang.org/x/net from 0.20.0 to 0.21.0 in /scrape (#3071)
  • Update workflow and tools to use Go 1.22 and 1.21 (#3074)
  • Add test case for JSON resource marshaling (#3075)
  • Add test case for JSON resource marshaling (#3076)
  • Rename function parameters to match usage as url parameters (#3078)
  • Add test case for JSON resource marshaling (#3080)
  • Bump github.com/PuerkitoBio/goquery from 1.8.1 to 1.9.0 in /scrape (#3085)
  • Bump codecov/codecov-action from 4.0.1 to 4.0.2 (#3084)
  • Bump version of go-github to v60.0.0 (#3086)

v59.0.0

09 Feb 14:34
4177a19
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • Add suspended as option to AdminService.CreateUser() (#3049)

...and the following additional changes:

  • Bump go-github from v57 to v58 in /scrape (#3046)
  • Fix issue in AcceptedError handling for UploadSarif (#3047)
  • Fix typos (#3048)
  • Add MergedAt field to PullRequestLinks (#3053)
  • Add default workflow permissions for enterprise/org/repo (#3054)
  • Bump actions/cache from 3 to 4 (#3055)
  • Add Topics to EditChange struct (#3057)
  • Add list repo org variables and secrets (#3058)
  • Fix leaked client transport on copy (#3051)
  • Bump codecov/codecov-action from 3.1.4 to 3.1.5 (#3061)
  • Bump github.com/getkin/kin-openapi from 0.122.0 to 0.123.0 in /tools (#3062)
  • Add custom properties on Repository and PushEventRepository (#3065)
  • Add support for deployment protection rules (#3050)
  • Bump codecov/codecov-action from 3.1.5 to 4.0.1 (#3066)
  • Add ListWorkflowJobsAttempt method to ActionsService (#3060)
  • Bump version of go-github to v59.0.0 (#3068)

v58.0.0

10 Jan 03:37
eb3bed0
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • Fix broken CreateOrUpdateRepoCustomPropertyValues (#3023)
  • Remove ambiguous fields from AuditEntry (#3017)

...and the following additional changes:

  • Bump go-github from v56 to v57 in /scrape (#3010)
  • Update metadata (#3012)
  • Bump actions/setup-go from 4 to 5 (#3027)
  • Add scanning validity checks (#3026)
  • Add Referrer field to AuditEntry (#3032)
  • Add code_search and dependency_snapshots for RateLimits (#3019)
  • Support temporary private fork creation via API (#3025)
  • Escape package names to support names which include a slash (#3002)
  • Don't update httpClient passed to NewClient (#3011)
  • Add GetAllCustomPropertyValues for repositories (#3020)
  • Add Copilot endpoints (#2973)
  • Fix copilot API payload (#3034)
  • Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /example (#3033)
  • Fix example/go.sum (#3035)
  • Bump github.com/getkin/kin-openapi from 0.120.0 to 0.122.0 in /tools (#3015)
  • Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 in /example (#3039)
  • Add Repo and Action to IssueEvent (#3040)
  • Bump golang.org/x/sync from 0.5.0 to 0.6.0 in /tools (#3041)
  • Bump golang.org/x/net from 0.19.0 to 0.20.0 in /scrape (#3042)
  • Bump version of go-github to v58.0.0 (#3045)

v57.0.0

01 Dec 17:47
4046b93
Compare
Choose a tag to compare

This release contains the following breaking API change:

  • Change PushEvent.Pusher type to CommitAuthor (#2999)

...and the following additional changes:

  • Bump go-github from v55 to v56 in /scrape (#2962)
  • Add support for packages IP address for APIMeta (#2964)
  • Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 (#2967)
  • Move RateLimits method to a service (#2969)
  • Add nil check in ErrorResponse.Error method (#2971)
  • Lint godoc comments (#2972)
  • Add referenced workflows to WorkflowRun (#2975)
  • Use metadata to reconcile go-github with GitHub's OpenAPI descriptions (#2919)
  • Fix branch protection request fields (#2977)
  • Add dependabot alert update endpoint (#2981)
  • Bump golang.org/x/sync from 0.4.0 to 0.5.0 in /tools (#2990)
  • Deprecate RepositoriesService.List (#2988)
  • Add support for Required Workflows (#2979)
  • Implement Custom Properties (#2986)
  • Bump golang.org/x/net from 0.17.0 to 0.18.0 in /scrape (#2991)
  • Add default branch to repository edit event (#2995)
  • Add Draft to Issue type (#2997)
  • Fix secondary rate limits URL (#3001)
  • Bump golang.org/x/net from 0.18.0 to 0.19.0 in /scrape (#3003)
  • Implement global security advisories API (#2993)
  • Bump version of go-github to v57.0.0 (#3009)