Skip to content

Releases: google/go-github

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)

v56.0.0

11 Oct 23:49
5e25c5c
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • Remove ListServiceHooks (#2917)
  • Fix SecretScanning API by switching arguments from url to json (#2934)
  • Remove openpgp and change CreateCommit signature (#2935)
  • Allow up to maxRedirects upon receiving HTTP 301 status (#2939)
  • Escape branch string before inserting it in URL (#2948)
  • Create MarkdownService, EmojisService, CodesOfConductService and MetaService (#2937)
  • Support options for GetCodeownersErrors (#2953)

(NOTE: In particular, please play close attention to #2948 as it may affect the code around the call.
Specifically, you may be required to remove any escaping that you perform prior to calling the modified methods.)

...and the following additional changes:

  • Bump go-github from v54 to v55 in /scrape (#2915)
  • Add enterprise runner group operations (#2891)
  • Add GenerateEnterpriseJITConfig (#2890)
  • Fix linting (#2903)
  • Handle encoding value of "none" (#2924)
  • Correct NewEnterpriseClient deprecation message (#2923)
  • Fix golangci-lint timeout failures (#2931)
  • Bump golang.org/x/net from 0.14.0 to 0.15.0 in /scrape (#2925)
  • Add missing secret scanning alert fields (#2930)
  • Add development scripts (#2928)
  • Add enterprise actions permissions endpoints and reorg files (#2920)
  • Add SAML SSO audit log fields (#2941)
  • Add test for resource JSON marshaling - ActionVariable (#2942)
  • Add json marshaling tests for action usage and OIDC types (#2944)
  • Add List Installation Requests API (#2947)
  • Add support for "performed_via_github_app" and "requested_team" in IssueEvent (#2946)
  • Add "organization" field to more events (#2949)
  • Add Repository Security Advisories APIs (#2902)
  • Bump golang.org/x/net from 0.15.0 to 0.16.0 in /scrape (#2954)
  • Add prevent_self_review on repo environments (#2951)
  • Add type field to DeploymentBranchPolicy (#2957)
  • Bump golang.org/x/net from 0.16.0 to 0.17.0 in /scrape (#2958)
  • Bump golang.org/x/net from 0.10.0 to 0.17.0 in /example (#2960)
  • Bump version of go-github to v56.0.0 (#2961)

v55.0.0

05 Sep 17:03
99ee29e
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • Add missing fields to SecurityAdvisoryEvent and rename others (#2889)

and the following additional changes:

  • Bump go-github from v53 to v54 in /scrape (#2882)
  • Add support for enable/disable private vulnerability reporting on repositories (#2887)
  • Add support for organization, repository webhook configuration (#2885)
  • Return json.Unmarshal error when importing issues deferred (#2892)
  • Remove dependency on "golang.org/x/oauth2" (#2895)
  • Add support for dependabot_alert webhook event (#2888)
  • Fix merge issue from field renaming (#2906)
  • Add missing CodeScanning endpoints (#2900)
  • Update package constructors (#2904)
  • Fix serialization of repository_names conditions object (#2910)
  • Bump actions/checkout from 3 to 4 (#2912)
  • Bump version of go-github to v55.0.0 (#2914)

v54.0.0

16 Aug 18:32
537ebb4
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • Fix ListPullRequestsWithCommit option type (#2822)
  • Support repository_id in org ruleset conditions (#2825)
  • Fix repo rules bypass settings (#2831)
  • Fix old_name field in AuditEntry (#2849)

and the following additional changes:

  • Bump golang.org/x/net from 0.10.0 to 0.11.0 in /scrape (#2814)
  • Bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 (#2812)
  • Bump github.com/google/go-github/v53 from 53.0.0 to 53.2.0 in /scrape (#2813)
  • Add Runner to generate-jitconfig method (#2818)
  • Remove unnecessary use of fmt.Sprintf (#2819)
  • Use bytes.Equal instead of bytes.Compare (#2820)
  • Fix CreateOrUpdateOrgSecret regression introduced in v53 (#2817)
  • Add Repository struct to SecretScanningAlert (#2823)
  • Add support for personal access tokens request review API (#2827)
  • Add support for personal_access_token_request webhook event type (#2826)
  • Support line comments on PRs (#2833)
  • Implement installation_target webhook event type (#2829)
  • Add secret type display to secret scanning alert (#2834)
  • Use a sentinel error when blocking paths for RepositoriesServices.GetContents (#2837)
  • Add support for SAML SSO authorization APIs (#2835)
  • Bump golang.org/x/net from 0.11.0 to 0.12.0 in /scrape (#2839)
  • Bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 (#2840)
  • Add Dependabot field in security_and_analysis (#2846)
  • Add new query params for AlertListOptions (#2848)
  • Add old_name field to AuditEntry (#2843)
  • Add OldLogin field to AuditEntryData (#2850)
  • Check for nil pointer in update rule parameters (#2854)
  • Fix dropped test error (#2858)
  • Bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 (#2859)
  • Bump golang.org/x/net from 0.12.0 to 0.14.0 in /scrape (#2860)
  • Add ListOptions pagination for Dependabot alerts (#2853)
  • Add support for Security Advisories Request CVE endpoint (#2857)
  • Add support for the security and analysis webhook event (#2862)
  • Add support for projects_v2 and projects_v2_item webhook events (#2868)
  • Defer closing body before checking HTTP status code (#2870)
  • Add GetAutomatedSecurityFixes to report status (#2842)
  • Adding missing field important to find branch in fork from same owner (#2873)
  • Add WorkflowRun and Workflow to DeploymentEvent (#2755)
  • Replace deprectated crypto/ssh/terminal module in examples (#2876)
  • Update workflow to use Go 1.21 and 1.20 (#2878)
  • Add TriggeringActor to WorkflowRun (#2879)
  • Add WebhookTypes and EventForType methods (#2865)
  • Add support for fetching SBOMs (#2869)
  • Add SubmoduleGitURL to RepositoryContent (#2880)
  • Bump version of go-github to v54.0.0 (#2881)

v53.2.0

19 Jun 12:27
3afe4db
Compare
Choose a tag to compare

This minor release contains the following changes:

  • Implement rulesets (#2795)
  • Support code scanning default setup configuration (#2808)
  • Add generate-jitconfig API for self-hosted runners (#2801)
  • Initial implementation of codespaces API (#2803)
  • Fix missing Include, Exclude fields in RulesetRefConditionParameters (#2810)
  • Bump version of go-github to v53.2.0 (#2811)

v53.1.0

12 Jun 23:47
8c7625e
Compare
Choose a tag to compare

This minor release contains the following changes:

  • Bump go-github from v52.0.0 to v53.0.0 in /scrape (#2800)
  • Add GitHub App event security_advisory (#2799)
  • Fix auth vulnerability (#2805)
  • Bump version of go-github to v53.1.0 (#2806)