Releases: google/go-github
v56.0.0
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
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
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
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
v53.0.0
This release contains the following breaking API changes:
- Update DependabotSecretsSelectedRepoIDs type to []int64 (#2794)
and the following additional changes:
- Bump go-github from v51.0.0 to v52.0.0 in /scrape (#2767)
- Bump codecov/codecov-action from 3.1.2 to 3.1.3 (#2768)
- Change the CreateRequiredWorkflow method from PUT to POST (#2771)
- Add Repository field to DependabotAlert (#2772)
- Add omitempty to CreateOrgInvitationOptions fields (#2778)
- Bump golang.org/x/net from 0.9.0 to 0.10.0 in /scrape (#2779)
- Bump github.com/cloudflare/circl from 1.1.0 to 1.3.3 (#2780)
- Support x-ratelimit-reset handling for secondary rate limits (#2775)
- Support deployment protection rule event type (#2773)
- Support array type in go generate with whitelist (#2776)
- Bump golang.org/x/oauth2 from 0.7.0 to 0.8.0 (#2781)
- Add test for resource JSON marshaling (#2783)
- Bump codecov/codecov-action from 3.1.3 to 3.1.4 (#2784)
- Add missing fields to AuditEntry (#2786)
- Add "new_name" parameter to repo transfer request (#2788)
- Add workflow run display title (#2792)
- Bump version of go-github to v53.0.0 (#2797)
v52.0.0
This release contains the following breaking API changes:
- Update Create/Update methods to return the workflow (#2759)
and the following additional changes:
- Bump go-github from 50.2.0 to 51.0.0 in /scrape (#2740)
- Add Topics to PushEventRepository (#2742)
- Add fields to Branch Protection endpoint (#2744)
- Add GetTime method to Timestamp (#2743)
- Bump golang.org/x/net from 0.8.0 to 0.9.0 in /scrape (#2748)
- Bump golang.org/x/oauth2 from 0.6.0 to 0.7.0 (#2747)
- Add DNS health checks support for GitHub Pages (#2746)
- Add Owner to EditChange struct (#2750)
- Bump codecov/codecov-action from 3.1.1 to 3.1.2 (#2761)
- Add HeadBranch field to WorkflowJob (#2764)
- Add requester to InstallationEvent (#2763)
- Add InstallationsCount to App (#2765)
- Bump version of go-github to v52.0.0 (#2766)
v51.0.0
This release contains the following breaking API changes:
- Add ListOptions to GetAdvancedSecurityActiveCommittersOrg (#2720)
- Change PrivateRepos from int to int64 (#2738)
and the following additional changes:
- Bump actions/setup-go from 3 to 4 (#2713)
- Bump github.com/google/go-github/v50 from 50.1.0 to 50.2.0 in /scrape (#2714)
- Add added_by and last_used fields to keys (#2718)
- Add CanAdminsBypass to Environment (#2721)
- Add download capability for workflow run attempt logs (#2716)
- Add CanAdminsBypass to CreateUpdateEnvironment (#2727)
- Add BuildType to GitHub Repo Pages (#2724)
- Set authenticated user's email visibility (#2711)
- Add support for deleting an org (#2728)
- verify payload signature if present (#2732)
- Implement the actions required workflows APIs (#2730)
- Add options for listing workflow runs (#2735)
- Bump version of go-github to v51.0.0 (#2739)
v50.2.0
This minor release contains the following interesting changes:
- Add ListExternalGroupsForTeamBySlug to Teams API (#2674)
- Add DicussionCommentEvent Webhook (#2678)
- Add head_sha for ListWorkflowRunsOptions (#2703)
- Support HTTP Proxy from environment (#2686)
- Update custom repo roles URL (#2702)
- Move to Protonmail PGP (#2666)
- Fix SCIM query params (#2680)
- Add fields to update repository API and create branch protection API to match GitHub APIs (#2709)
in addition to these more maintenance-type changes:
- Bump golang.org/x/sys from 0.0.0-20210615035016-665e8c7367d1 to 0.1.0 in /example (#2676)
- Bump github.com/xlzd/gotp from 0.0.0-20181030022105-c8557ba2c119 to 0.1.0 in /scrape (#2684)
- Update golangci-lint-action (#2694)
- Bump github.com/google/go-github/v50 from 50.0.0 to 50.1.0 in /scrape (#2683)
- Bump golang.org/x/crypto from 0.0.0-20210817164053-32db794688a5 to 0.1.0 in /example (#2689)
- Bump golang.org/x/net from 0.0.0-20210226172049-e18ecbb05110 to 0.7.0 in /example (#2691)
- Bump golang.org/x/net from 0.0.0-20210226172049-e18ecbb05110 to 0.7.0 (#2692)
- Run go mod tidy -compat=1.17 (#2696)
- Fix golangci-lint (#2697)
- Bump golang.org/x/crypto from 0.0.0-20210817164053-32db794688a5 to 0.7.0 (#2693)
- Bump golang.org/x/oauth2 from 0.0.0-20180821212333-d2e6202438be to 0.6.0 (#2695)
- Remove example subdirs in GitHub Actions linter workflow (#2701)
- Bump golang.org/x/net from 0.7.0 to 0.8.0 in /scrape (#2698)
- Bump version of go-github to v50.2.0 (#2710)
v50.1.0
This minor release contains the following changes:
- Update scrape dependency to v50 (#2648)
- Add secondary rate limit handling (prevent remote requests) and fix primary rate limit categories (#2635)
- Fix parse token expiration (#2650)
- Add support for actions variables (#2652)
- Remove failing unit tests for Go 1.20 (#2656)
- Add permission filter for list collaborators (#2653)
- Update workflow to use Go 1.20 and 1.19 (#2657)
- Add Account field to MarketplacePurchase struct (#2659)
- Add URL, UpdateAt, and WorkflowRun fields to Artifacts (#2660)
- Add milestone field to IssuesEvent (#2663)
- Add go generate mention to CONTRIBUTING.md (#2587)
- Add RequestedTeam to issues Timeline type (#2665)
- Bump github.com/PuerkitoBio/goquery from 1.8.0 to 1.8.1 in /scrape (#2667)
- Add Permission, OldPermission to AuditEntry type (#2670)
- Add created_at to WorkflowJob struct (#2671)
- Bump version of go-github to v50.1.0 (#2673)