Comments (3)
Yes, our Do
function performs most of this for you.
Instead, please try:
commit, _, err := c.Repositories.GetCommit(ctx, "Jerry-yz", "go-zero-example", "013bdd7b435e9bff6e13617fa85b47c06883890c", &github.ListOptions{})
if err != nil {
log.Fatalf("GetCommit: %v", err)
}
log.Printf("commit=%#v", commit)
from go-github.
Yes, our
Do
function performs most of this for you.Instead, please try:
commit, _, err := c.Repositories.GetCommit(ctx, "Jerry-yz", "go-zero-example", "013bdd7b435e9bff6e13617fa85b47c06883890c", &github.ListOptions{}) if err != nil { log.Fatalf("GetCommit: %v", err) } log.Printf("commit=%#v", commit)
so, i think this func should not return resp
from go-github.
If you take a look, all our methods return the resp
so that you can check other things such as the header, status code, etc.
from go-github.
Related Issues (20)
- Webhook type for repository edits is missing default branch
- Issue type is missing `draft`
- Push event's `Pusher` is not the correct type
- Various Codespace Secrets endpoints failing when using a Personal Access Token or GitHub App HOT 4
- Add client.WithClient method HOT 11
- Add first party support for Github App HOT 4
- Support secret scanning validity checks API HOT 3
- Support temporary private fork creation via API HOT 3
- commits api HOT 2
- events list api HOT 5
- Support for Get All Custom Property Values for a Repository HOT 3
- Failed to unmarshal audit log entry HOT 6
- Support for code_search and dependency_snapshots for RateLimits HOT 3
- Bug in CreateOrUpdateRepoCustomPropertyValues? HOT 3
- Support for deployment protection rules for an environment HOT 1
- Passing the http.DefaultClient to a New client can lead to breakdowns HOT 9
- Transactional support when updating multiple files HOT 1
- Go Github Bypass Unexported HOT 5
- AuditEntry is missing referrer field
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-github.