File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,10 @@ app.
164164scopes
165165: _ Optional_ ** array** - A list of scopes that this authorization is in.
166166
167- <%= json : scopes => [ "public_repo"] %>
167+ note
168+ : _ Optional_ ** string** - A note to remind you what the OAuth token is for.
169+
170+ <%= json : scopes => [ "public_repo"] , : note => 'admin script' %>
168171
169172### Response
170173
@@ -188,9 +191,12 @@ remove_scopes
188191: _ Optional_ ** array** - A list of scopes to remove from this
189192authorization.
190193
194+ note
195+ : _ Optional_ ** string** - A note to remind you what the OAuth token is for.
196+
191197You can only send one of these scope keys at a time.
192198
193- <%= json : add_scopes => [ 'repo'] %>
199+ <%= json : add_scopes => [ 'repo'] , : note => 'admin script' %>
194200
195201### Response
196202
Original file line number Diff line number Diff line change @@ -671,6 +671,7 @@ def json(key)
671671 "url" => "http://my-github-app.com" ,
672672 "name" => "my github app"
673673 } ,
674+ "note" => "optional note" ,
674675 "updated_at" => "2011-09-06T20:39:23Z" ,
675676 "created_at" => "2011-09-06T17:26:27Z"
676677 }
You can’t perform that action at this time.
0 commit comments