Skip to content

Releases: google/go-github

v73.0.0

24 Jun 14:35
8759b17
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add repository query option to ListCustomPropertyValues (#3598)
    BREAKING CHANGE: ListCustomPropertyValues now takes ListCustomPropertyValuesOptions instead of ListOptions.

...and the following additional changes:

  • Bump go-github from v71 to v72 in /scrape (#3572)
  • Update OpenAPI (#3574)
  • Improve DownloadContents and DownloadContentsWithMeta methods (#3573)
  • build(deps): bump actions/setup-go from 5.4.0 to 5.5.0 in the actions group (#3575)
  • build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 in /scrape (#3576)
  • build(deps): bump github.com/alecthomas/kong from 1.10.0 to 1.11.0 in /tools (#3578)
  • build(deps): bump codecov/codecov-action from 5.4.0 to 5.4.3 (#3579)
  • feat: Add support for sub-issue (#3580)
  • fix: Add missing relationship and pkg external info for SBOMs (#3582)
  • chore: Use any instead of interface{} (#3584)
  • chore: Migrate golangci-lint to v2 (#3587)
  • chore: Add alexandear to REVIEWERS (#3588)
  • docs: Update minimum Go version in README to 1.23 (#3589)
  • fix: Use stable media type in Starring API (#3590)
  • docs: Use pkgsite links (#3591)
  • build(deps): bump golang.org/x/net from 0.40.0 to 0.41.0 in /scrape (#3593)
  • build(deps): bump golang.org/x/sync from 0.14.0 to 0.15.0 in /tools (#3594)
  • build(deps): bump github.com/cloudflare/circl from 1.3.7 to 1.6.1 in /example (#3595)
  • Bump version of go-github to v73.0.0 (#3599)

v72.0.0

08 May 14:48
718c304
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • chore!: Remove support for Required Workflows (#3538)
  • fix!: Differentiate merge method of pull request and merge queue (#3559)
    BREAKING CHANGE: MergeMethod* consts have been split into: PullRequestMergeMethod* and MergeQueueMergeMethod*.
  • feat!: Add support for pagination options in rules API methods (#3562)
    BREAKING CHANGE: GetRulesForBranch, GetAllRulesets, and GetAllRepositoryRulesets now accept opts.

...and the following additional changes:

  • Bump go-github from v70 to v71 in /scrape (#3541)
  • build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /scrape (#3536)
  • build(deps): bump github.com/alecthomas/kong from 1.9.0 to 1.10.0 in /tools (#3542)
  • build(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0 in /tools (#3543)
  • Add support for registry_package event (#3545)
  • build(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2 (#3551)
  • build(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 in /scrape (#3549)
  • build(deps): bump github.com/PuerkitoBio/goquery from 1.10.2 to 1.10.3 in /scrape (#3550)
  • feat: Add EPSS to Dependabot alerts (#3547)
  • Revert "build(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2" (#3552)
  • feat: Add new fields and options to secret scanning structs (#3548)
  • build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /example in the go_modules group across 1 directory (#3553)
  • Add case-instensitive GetHeader for HookRequest & HookResponse (#3556)
  • Add issue Type to IssueRequest (#3567)
  • build(deps): bump golang.org/x/sync from 0.13.0 to 0.14.0 in /tools (#3568)
  • build(deps): bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0 in /tools (#3569)
  • Add ListCursorOptions to list Issues methods (#3570)
  • Bump version of go-github to v72.0.0 (#3571)

v71.0.0

07 Apr 13:59
c099baf
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add ListReactionOptions to all ListxxReactions functions to enable filter by content (#3532)
    BREAKING CHANGE: ListCommentReactionOptions => ListReactionOptions and all List*Reactions methods now use it.

...and the following additional changes:

  • Bump go-github from v69 to v70 in /scrape (#3521)
  • Path escape fix in UserService.GetPackage() (#3522)
  • Update openapi (#3526)
  • feat: Add support for Issue Types API (#3525)
  • build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 in /example (#3528)
  • build(deps): bump the actions group with 2 updates (#3530)
  • build(deps): bump github.com/getkin/kin-openapi from 0.130.0 to 0.131.0 in /tools (#3531)
  • Add ListReleaseReactions and DeleteReleaseReaction (#3533)
  • feat: Add actions_macos field to APIMeta struct (#3535)
  • fix: Isolate HTTP transports in parallel tests to prevent connection issues (#3529)
  • chore: Remove redundant in Go 1.22 loop variables (#3537)
  • fix: Add back repository field in Package struct (#3539)
  • Bump version of go-github to v71.0.0 (#3540)

v70.0.0

17 Mar 23:44
134f6b4
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add support for network-configurations endpoints for organization (#3511)
    BREAKING CHANGE: EnterpriseNetwork* structs have been replaced with Network* structs.
  • refactor!: Update package types to align with webhook event (#3515)
    BREAKING CHANGE: PackageVersion.Body and PackageVersion.Metadata are both now json.RawMessage.

...and the following additional changes:

  • build(deps): bump github.com/alecthomas/kong from 1.8.0 to 1.8.1 in /tools (#3485)
  • build(deps): bump github.com/google/go-github/v69 from 69.0.0 to 69.2.0 in /scrape (#3483)
  • build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 in /tools (#3490)
  • Bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#3494)
  • build(deps): bump actions/cache from 4.2.0 to 4.2.1 in the actions group (#3492)
  • fix: Resolve '400 Custom domains' error on GitHub Enterprise Server (#3489)
  • Correct the runIDFromURLRE regex to properly match the callbackURL (#3495)
  • feat: Add support for GitHub-hosted runner API endpoints (#3487)
  • feat: Add support for network-configurations endpoints (#3497)
  • build(deps): bump codecov/codecov-action from 5.3.1 to 5.4.0 (#3500)
  • build(deps): bump actions/cache from 4.2.1 to 4.2.2 in the actions group (#3499)
  • Add created_at field to Reaction (#3501)
  • Add reason parameter to MergeGroupEvent (#3508)
  • fix(ci): ensure 'auto' toolchain applies to generate (#3436)
  • Bump dependency versions from dependabot warnings (#3512)
  • Bump go-jose to v4.0.5 (#3513)
  • build(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 in /example (#3514)
  • docs: Update readme and examples for updated go-github-ratelimit and introduce go-github-pagination (#3504)
  • Add validity filter to secret scanning alert list options (#3516)
  • build(deps): bump github.com/alecthomas/kong from 1.8.1 to 1.9.0 in /tools (#3518)
  • build(deps): bump github.com/getkin/kin-openapi from 0.129.0 to 0.130.0 in /tools (#3517)
  • feat: Add automatic_copilot_code_review_enabled parameter to ruleset API (#3506)
  • Bump version of go-github to v70.0.0 (#3520)

v69.2.0

17 Feb 13:23
0b11dbf
Compare
Choose a tag to compare

This minor release contains the following changes:

  • Add helper to get runID from Custom Deployment Protection Rule Event (#3476)
  • feat: Add JSON marshal tests for dependabot alerts (#3480)
  • feat: Add sorting list options for secret scanning (#3481)
  • Bump version of go-github to v69.2.0 (#3482)

v69.1.0

13 Feb 15:49
f867d00
Compare
Choose a tag to compare

This minor release contains the following changes:

  • Bump go-github from v68 to v69 in /scrape (#3464)
  • Use a max retry after duration for secondary rate limit if specified (#3438)
  • docs: Clarify ListPullRequestsWithCommit usage (#3465)
  • fix: go 1.22 test breakage (#3459)
  • feat: Add link to bored-engineer/github-conditional-http-transport to conditional requests documentation (#3469)
  • build(deps): bump golang.org/x/sync from 0.10.0 to 0.11.0 in /tools (#3472)
  • build(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 in /scrape (#3470)
  • build(deps): bump github.com/alecthomas/kong from 1.7.0 to 1.8.0 in /tools (#3471)
  • Update workflow and tools to use Go1.24 and 1.23 (#3474)
  • chore: Only use master test runs for status badge (#3475)
  • feat: Add ListProvisionedScimGroupsForEnterprise inside SCIM service (#3467)
  • fix: Add missing query params to AlertListOptions (#3477)
  • Bump version of go-github to v69.1.0 (#3478)

v69.0.0

05 Feb 14:39
59c38a3
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add support for enterprise rulesets (#3417)
    BREAKING CHANGE: Create*Ruleset and Update*Ruleset now pass ruleset parameter by-value instead of by-reference.
  • fix!: Typo in field names in the CheckSuite struct (#3444)
    BREAKING CHANGE: Rerequstable=>Rerequestable, RunsRerequstable=>RunsRerequestable
  • fix!: Typo in field names in the PullStats struct (#3445)
    BREAKING CHANGE: MergablePulls=>MergeablePulls, UnmergablePulls=>UnmergeablePulls
  • refactor!: Do not capitalize error strings (#3446)
    BREAKING CHANGE: Some error strings are slightly modified - please do not rely on error text in general.
  • fix!: Refactor the repository ruleset code (#3430)
    BREAKING CHANGES: The following types have been renamed:
    • Ruleset -> RepositoryRuleset
    • RulesetLink -> RepositoryRulesetLink
    • RulesetLinks -> RepositoryRulesetLinks
    • RulesetRefConditionParameters -> RepositoryRulesetRefConditionParameters
    • RulesetRepositoryNamesConditionParameters -> RepositoryRulesetRepositoryNamesConditionParameters
    • RulesetRepositoryIDsConditionParameters -> RepositoryRulesetRepositoryIDsConditionParameters
    • RulesetRepositoryPropertyTargetParameters -> Repository
    • RulesetRepositoryPropertyConditionParameters -> RepositoryRulesetRepositoryPropertyConditionParameters
    • RulesetOrganizationNamesConditionParameters -> RepositoryRulesetOrganizationNamesConditionParameters
    • RulesetOrganizationIDsConditionParameters -> RepositoryRulesetOrganizationIDsConditionParameters
    • RulesetConditions -> RepositoryRulesetConditions
    • RepositoryRulesetEditedChanges -> RepositoryRulesetChanges
    • RepositoryRulesetEditedSource -> RepositoryRulesetChangeSource
    • RepositoryRulesetEditedSources -> RepositoryRulesetChangeSources
    • RepositoryRulesetEditedConditions -> RepositoryRulesetUpdatedConditions
    • RepositoryRulesetUpdatedConditionsEdited -> RepositoryRulesetUpdatedCondition
    • RepositoryRulesetEditedRules -> RepositoryRulesetChangedRules
    • RepositoryRulesetUpdatedRules -> RepositoryRulesetUpdatedRules
    • RepositoryRulesetEditedRuleChanges -> RepositoryRulesetChangedRule
  • chore!: Add sliceofpointers custom linter (#3447)
    BREAKING CHANGE: ListOAuthApps now returns ([]*OAuthApp, error) instead of ([]OAuthApp, error).
  • feat!: Change User.InheritedFrom to a slice (#3460)
    BREAKING CHANGE: User.InheritedFrom is changed from a *Team to a []*Team.

...and the following additional changes:

  • Bump go-github from v67 to v68 in /scrape (#3398)
  • build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0 in /scrape (#3400)
  • build(deps): bump codecov/codecov-action from 5.1.1 to 5.1.2 (#3401)
  • Bump golang.org/x/net to v0.33.0 (#3402)
  • Add TokenID and TokenName to PersonalAccessToken struct (#3404)
  • Bump github.com/PuerkitoBio/goquery from 1.9.2 to 1.10.1 in /scrape (#3408)
  • Bump Go to 1.22.10 or 1.23.4 in go.mod files (#3410)
  • Add opt-in rate limit support on endpoints returning 302s (#3411)
  • Update OpenAPI (#3419)
  • build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 in /scrape (#3420)
  • Permit toggling rate limit check by consumers (#3386)
  • build(deps): Pin and group actions/* (#3424)
  • Add deprecation messages to security managers APIs (#3426)
  • fix: Relax go directive in go.mod to 1.22.0 (#3423)
  • Enforce toolchain requirement in generate.sh (#3428)
  • feat: Add missing notification_setting to Team (#3431)
  • chore: Add reviewers file (#3435)
  • gen-accessors: Update dumping of getters (#3437)
  • chore: Fix codecov upload (#3440)
  • chore: Spell "unmarshal" consistently with one el (#3441)
  • fix: Typos in func parameter, vars, error, and comments (#3442)
  • feat: Add manage_ghes endpoints introduced in 3.15 (#3433)
  • Fix minor typo (#3448)
  • chore: Check and fix license headers (#3449)
  • Add new fields for IssueType (#3451)
  • ci: update golangci-lint to v1.63.4 (#3452)
  • Extend Rate and Rate Limiting with X-Ratelimit-Used and X-Ratelimit-Resource headers (#3453)
  • build(deps): bump actions/setup-go from 5.2.0 to 5.3.0 in the actions group (#3454)
  • build(deps): bump codecov/codecov-action from 5.1.2 to 5.3.1 (#3455)
  • docs: Add clarifications for mergeable field in pull requests (#3396)
  • build(deps): bump github.com/alecthomas/kong from 1.6.0 to 1.7.0 in /tools (#3458)
  • Bump version of go-github to v69.0.0 (#3463)

v68.0.0

23 Dec 11:42
98d4f50
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Remove Project (classic) support (#3380)
    BREAKING CHANGE: All support for "Project (classic)" is removed and Project responses are replaced by ProjectV2 (renamed from ProjectsV2).
  • fix!: Remove unused Stats field from Commit struct (#3395)
    BREAKING CHANGE: The unused Stats field is removed from the Commit struct.

...and the following additional changes:

  • Bump go-github from v66 to v67 in /scrape (#3361)
  • Map more missing installation permissions (#3363)
  • build(deps): bump github.com/alecthomas/kong from 1.4.0 to 1.5.0 in /tools (#3365)
  • fix: Preserve HTTP Response in URL Errors (#3369)
  • Update OpenAPI (#3374)
  • feat: Add assignment for org role associations (#3371)
  • build(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 (#3375)
  • build(deps): bump github.com/alecthomas/kong from 1.5.0 to 1.6.0 in /tools (#3376)
  • build(deps): bump golang.org/x/sync from 0.9.0 to 0.10.0 in /tools (#3377)
  • build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 in /scrape (#3378)
  • chore: Deprecate legacy ID-based team methods (#3373)
  • feat: Support resolution_comment to update alert API (#3357)
  • feat: Add custom_property events (#3379)
  • feat: Deprecate and replace Bool,Int,Int64,String with Ptr using generics (#3355)
  • feat: Add GET for custom org repo role (#3372)
  • chore: Remove commented out test code (#3381)
  • build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 in /example in the go_modules group (#3383)
  • feat: Add enterprise custom properties (#3382)
  • Change header keys to be canonical (#3389)
  • chore: Sort std imports (#3390)
  • feat: Document review request events in Timeline struct (#3391)
  • fix: DownloadReleaseAsset handles renamed repository (#3392)
  • Bump version of go-github to v68.0.0 (#3397)

v67.0.0

27 Nov 14:03
9238395
Compare
Choose a tag to compare

This release contains the following breaking API changes:

  • feat!: Add name query parameter to ActionsService.ListArtifacts (#3330)
    BREAKING CHANGE: opts argument to ActionsService.ListArtifacts changed from ListOptions to ListArtifactsOptions.
  • feat!: Rename code scanning params from plural to singular (#3331)
    BREAKING CHANGE: Rename RuleRequiredCodeScanningTools to RuleRequiredCodeScanningTool.
  • feat!: Fix source property on Repo Custom Properties (#3333)
    BREAKING CHANGE: Change RulesetRepositoryPropertyTargetParameters.Source from string to *string.

...and the following additional changes:

  • Bump go-github from v65 to v66 in /scrape (#3311)
  • build(deps): bump golang.org/x/net from 0.29.0 to 0.30.0 in /scrape (#3313)
  • build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 (#3312)
  • build(deps): bump github.com/getkin/kin-openapi from 0.127.0 to 0.128.0 in /tools (#3314)
  • refactor: Remove unneeded strings.Join calls (#3317)
  • feat: Add CreatedAt and UpdatedAt to Ruleset (#3316)
  • feat: Add Expired to RepositoryInvitation (#3320)
  • Update openapi_operations.yaml (#3322)
  • refactor: Enable perfsprint; fix appeared lint issues (#3324)
  • refactor: Replace 'println' with 'fmt.Println' (#3326)
  • docs: Add dots at the end of sentences (#3325)
  • scrape: refactor tests with t.Fatal (#3299)
  • feat: Support Code Security Configurations API (#3319)
  • Add Copilot Usage Summary for Organization (#3321)
  • chore: Remove deprecated build constraints (#3306)
  • refactor: Replace 'print' with 'fmt.Print' (#3327)
  • Add Webhook for Repository ruleset (#3305)
  • feat: Add support for code_scanning (#3256)
  • docs: put a space between // and comment text (#3329)
  • Add support for fetching artifact attestations at the org, repo and user levels (#3334)
  • Add BranchProtectionConfigurationEvent and SecretScanningAlertLocationEvent (#3332)
  • build(deps): bump github.com/theupdateframework/go-tuf/v2 from 2.0.0 to 2.0.1 in /example in the go_modules group (#3338)
  • Allow RemoveReviewers to remove only teams (#3337)
  • build(deps): bump github.com/alecthomas/kong from 1.2.1 to 1.3.0 in /tools (#3342)
  • build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in /example in the go_modules group (#3343)
  • feat(secret scanning): Support pull_request_comment_url (#3344)
  • build(deps): bump golang.org/x/net from 0.30.0 to 0.31.0 in /scrape (#3348)
  • build(deps): bump golang.org/x/sync from 0.8.0 to 0.9.0 in /tools (#3347)
  • build(deps): bump github.com/alecthomas/kong from 1.3.0 to 1.4.0 in /tools (#3346)
  • refactor: Enable revive linter and fix up lint issues (#3345)
  • Add missing permissions to InstallationPermissions struct (#3349)
  • build(deps): bump codecov/codecov-action from 4.6.0 to 5.0.2 (#3351)
  • Update OpenAPI (#3352)
  • Add missing Deployment field to workflow_job event type (#3353)
  • feat: Support Copilot metrics endpoints (#3350)
  • feat: Remove the beta endpoint for Copilot usage (#3354)
  • build(deps): bump codecov/codecov-action from 5.0.2 to 5.0.7 (#3358)
  • Update AUTHORS (#3359)
  • Bump version of go-github to v67.0.0 (#3360)

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)