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

Add 2.1 menu item #730

Merged
merged 3 commits into from
Mar 9, 2015
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions enterprise/2.1/css/documentation.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ h1 {
font-weight: normal;
}

body:not(.enterprise) .enterprise-only {
display: none;
}

.content h1 {
font-weight: 300;
-webkit-backface-visibility: hidden;
Expand Down
2 changes: 1 addition & 1 deletion enterprise/2.1/guides/building-a-ci-server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h2 id="writing-your-server">Writing your server</h2>
HTTP header. We’ll only care about the PR events for now. From there, we’ll
take the payload of information, and return the title field. In an ideal scenario,
our server would be concerned with every time a pull request is updated, not just
when it’s updated. That would make sure that every new push passes the CI tests.
when it’s opened. That would make sure that every new push passes the CI tests.
But for this demo, we’ll just worry about when it’s opened.</p>

<p>To test out this proof-of-concept, make some changes in a branch in your test
Expand Down
11 changes: 7 additions & 4 deletions enterprise/2.1/guides/getting-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ <h3 id="oauth">OAuth</h3>
to create an OAuth token. Try pasting and running the following command:</p>

<pre class="terminal">
$ curl -i -u &lt;your_username&gt; -d '{"scopes": ["repo"], "note": "getting-started"}' \
$ curl -i -u &lt;your_username&gt; -d '{"scopes": ["repo", "user"], "note": "getting-started"}' \
https://api.github.com/authorizations

HTTP/1.1 201 Created
Expand All @@ -268,7 +268,8 @@ <h3 id="oauth">OAuth</h3>

{
"scopes": [
"repo"
"repo",
"user"
],
"token": "5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4",
"updated_at": "2012-11-14T14:04:24Z",
Expand All @@ -293,7 +294,9 @@ <h3 id="oauth">OAuth</h3>
a new token, we include an optional array of <a href="/enterprise/2.1/v3/oauth/#scopes"><em>scopes</em></a>, or access
levels, that indicate what information this token can access. In this case,
we’re setting up the token with <em>repo</em> access, which grants access to read and
write to private repositories. See <a href="/enterprise/2.1/v3/oauth/#scopes">the scopes docs</a> for a full list of
write to public and private repositories, and <em>user</em> scope, which grants read
and write access to public and private user profile data. See
<a href="/enterprise/2.1/v3/oauth/#scopes">the scopes docs</a> for a full list of
scopes. You should <strong>only</strong> request scopes that your application actually needs,
in order to not frighten users with potentially invasive actions. The <code>201</code>
status code tells us that the call was successful, and the JSON returned
Expand All @@ -306,7 +309,7 @@ <h3 id="oauth">OAuth</h3>

<pre class="terminal">
$ curl -i -u &lt;your_username&gt; -H "X-GitHub-OTP: &lt;your_2fa_OTP_code&gt;" \
-d '{"scopes": ["repo"], "note": "getting-started"}' \
-d '{"scopes": ["repo", "user"], "note": "getting-started"}' \
https://api.github.com/authorizations
</pre>

Expand Down
1 change: 0 additions & 1 deletion enterprise/2.1/output/CNAME

This file was deleted.

1,284 changes: 0 additions & 1,284 deletions enterprise/2.1/output/changes.atom

This file was deleted.

167 changes: 0 additions & 167 deletions enterprise/2.1/output/changes/2012-10-14-rate-limit-changes/index.html

This file was deleted.

This file was deleted.

Loading
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