go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Go library for accessing the GitHub v3 API

Results 139 go-github issues
Sort by recently updated
recently updated
newest added

Using github.com/google/go-github/v53 v53.2.0 against GitHub Enterprise Server 3.5.5, the following code was able to convert `public` repositories to `private`, but it did nothing in the case of `internal` repositories (there...

When calling the GitHub API endpoint `https://api.github.com/repos/OWNER/REPO/branches/BRANCH/protection/required_signatures` [(documentation)](https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28#get-commit-signature-protection), if the branch does not have any protection rules, the GitHub API will reply with a `HTTP 404 Not Found` code and...

In the v53.0.0 release, the Repository.ID is defined as an `int64`, but there are several consumers are presently defined as `int`. For most users this isn't a huge problem, but...

The [`Environment`](https://github.com/google/go-github/blob/master/github/repos_environments.go#L16-L33) struct contains fields that do not exists in the response. As per the [docs](https://docs.github.com/en/rest/deployments/environments?apiVersion=2022-11-28), and in practice --> ```bash curl -s -H "Authorization: token " https://api.github.com/repos/jvm986/test/environments/TEST ``` ⬇️...

When I was investigating issue #2679, I faced the following situation: After changing the tags in the [`ListSCIMProvisionedIdentitiesOptions`](https://github.com/google/go-github/pull/2680/files#diff-c2dda2100fd0c700da11a5d96582391b4923658db7e717627d248ae1c029c5fbL71) structure, from `json` to `url`, I was expecting the [`TestListSCIMProvisionedIdentitiesOptions_Marshal`](https://github.com/google/go-github/pull/2680/files#diff-2723dd506a61e0f7abe849217ded7c4aa5dfef10455f14ed10a423c65f4dac49L431) test to...

I've been trying to use this to authenticate to GHE. Having some issues: ``` 2023/02/24 18:19:20 error: Get "https://github.ibm.com/api/v3/user/repos": net/http: invalid header field value for "Authorization" ``` Here's my code,...

When I create the warehouse through the template, I immediately add the file and find that the content of the create file is not successful, but there are no errors....

Based on my initial investigation on https://github.com/google/go-github/blob/master/github/messages.go#L47, there is no support for the `security_advisory` events. Here's a payload example of such event: ``` { "action": "updated", "security_advisory": { "ghsa_id": "GHSA-7cm4-vmf2-8wf2",...

Many expected fields are omitted from the [AuditEntry](https://github.com/google/go-github/blob/master/github/orgs_audit_log.go#L34) result of the GetAuditLog request. For example here are 4 logs for different actions ``` actor: "" action: "git.clone" timestamp: org: ""...

`ListCommits` uses following line to construct the url `u := fmt.Sprintf("repos/%v/%v/commits", owner, repo)` There is no way to specify branch name to the function and hence the list of commits...