Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Grammar, JSON, and status code corrections #90

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions content/v3/git/refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions content/v3/orgs/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -84,7 +84,7 @@ permission

### Response

<%= headers 201 %>
<%= headers 200 %>
<%= json(:full_team) %>

## Delete team
Expand Down
14 changes: 3 additions & 11 deletions lib/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down Expand Up @@ -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",
Expand Down
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