diff --git a/content/v3/git/refs.md b/content/v3/git/refs.md index 169a672328..d57b8692d9 100644 --- a/content/v3/git/refs.md +++ b/content/v3/git/refs.md @@ -55,6 +55,11 @@ sha <%= json "ref"=>"refs/heads/master",\ "sha"=>"827efc6d56897b048c772eb4087f854f46256132" %> +### Response + +<%= headers 201 %> +<%= json :refs %> + ## Update a Reference PATCH /repos/:user/:repo/git/refs/:ref diff --git a/content/v3/orgs/teams.md b/content/v3/orgs/teams.md index 8fce152fe7..22ce5923bd 100644 --- a/content/v3/orgs/teams.md +++ b/content/v3/orgs/teams.md @@ -44,10 +44,10 @@ repo\_names permission : _Optional_ **string** - `pull` - team members can pull, but not push or administer this + `pull` - team members can pull, but not push or administer these repositories. **Default** - `push` - team members can pull and push, but not administer this + `push` - team members can pull and push, but not administer these repositores. `admin` - team members can pull, push and administer these @@ -84,7 +84,7 @@ permission ### Response -<%= headers 201 %> +<%= headers 200 %> <%= json(:full_team) %> ## Delete team diff --git a/lib/resources.rb b/lib/resources.rb index df7eb8936d..2fad814e48 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -349,7 +349,7 @@ def json(key) ORG = { "login" => "github", "id" => 1, - "url" => "https://api.github.com/orgs/1", + "url" => "https://api.github.com/orgs/github", "avatar_url" => "https://github.com/images/error/octocat_happy.gif" } @@ -568,16 +568,8 @@ def json(key) COMMIT = { "sha" => "7638417db6d59f3c431d3e1f261cc637155684cd", "url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", - "author" => { - "date" => "2010-04-10T14:10:01-07:00", - "name" => "Scott Chacon", - "email" => "schacon@gmail.com" - }, - "committer" => { - "date" => "2010-04-10T14:10:01-07:00", - "name" => "Scott Chacon", - "email" => "schacon@gmail.com" - }, + "author" => USER, + "committer" => USER, "message" => "added readme, because im a good github citizen\n", "tree" => { "url" => "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy