Skip to content

Commit 58d0752

Browse files
committed
Merge branch 'master' into developer-next-groundwork
Conflicts: content/index.md Moved new deprecations section to v3.md
2 parents cba9023 + 4fed482 commit 58d0752

12 files changed

Lines changed: 82 additions & 41 deletions

File tree

content/changes/2013-04-25-deprecating-merge-commit-sha.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
attribute](/v3/pulls/#mergability) for improved understanding.
1717

1818
To protect future API consumers from this confusion, we have
19-
[deprecated](/#expected-changes) the `merge_commit_sha` attribute, and we will
19+
[deprecated](/#deprecations) the `merge_commit_sha` attribute, and we will
2020
remove it in the next major version of the API.
2121

2222
As always, if you have any questions or feedback, please drop us a line at

content/guides/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Most any meaningful use of the GitHub API will involve some level of Repository
208208
information. We can `GET` repository details in the same way we fetched user
209209
details earlier:
210210

211-
curl -i https://api.github.com/repos/twitter/bootstrap
211+
curl -i https://api.github.com/repos/twbs/bootstrap
212212

213213
In the same way, we can view repositories for the authenticated user:
214214

content/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ GitHub in your app</h1>
3434
3535
</ul>
3636
</div>
37+

content/v3.md

Lines changed: 54 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,60 @@ to the actual date.
2121
We consider the "beta" API unchangeable. [File a support issue](https://github.com/contact)
2222
if you have problems.
2323

24-
#### Expected Changes
25-
26-
These changes are _not_ implemented, just planned for the next major API version.
27-
28-
* `[ ]` Standardize on existing `*_url` attributes for hypermedia. Remove all `_links`
29-
objects.
30-
* `[✓]` <del>The '/repos/:owner/:repo/hooks/:id/test' action becomes
31-
'/repos/:owner/:repo/hooks/:id/tests'.</del>
32-
* `[✓]` <del>The '/gists/:id/fork' action becomes '/gists/:id/forks'.</del>
33-
* `[ ]` Gist forks/history objects become separate API calls.
34-
* `[ ]` Gist files object is not returned on Gist listings.
35-
* `[ ]` Commit schema will change to be [more consistent](https://gist.github.com/3a2e5779588e21b0c0f3).
36-
* `[ ]` `master_branch` becomes `default_branch`.
37-
* `[ ]` `integrate_branch` on the [repo API](/v3/repos/#get) will no longer be
38-
returned.
39-
* `[ ]` `merge_commit_sha` on the [pull request API](/v3/pulls/#get-a-single-pull-request)
40-
will no longer be returned.
41-
* `[ ]` Use the `private` attribute when creating a private repository,
42-
instead of setting `public` to false.
43-
* `[ ]` Use JSON to POST to the "repos/:owner/:repo/forks" endpoint, instead of a query string.
44-
* `[✓]` <del>User Emails come back [as a hash][v3-email] instead of a string.</del>
45-
* `[ ]` Remove the unused "bio" field for Users.
46-
* `[ ]` When listing the contents of a directory in the [Repository Contents API](/v3/repos/contents/#get-contents), fix the `type` value returned for submodules: change the value to `"submodule"` (instead of `"file"`).
47-
* `[ ]` Remove the [Legacy Search API](/v3/search/legacy/).
48-
* `[ ]` Top-level `rate` hash on the [Rate Limit API](v3/rate_limit/) will no longer be returned.
24+
### Deprecations
25+
26+
The following functionality is deprecated. For backwards compatibility purposes,
27+
API v3 will continue to provide this functionality. However, this deprecated
28+
functionality **will be removed** in the _next_ major version of the API.
29+
30+
The recommendations below will help you prepare your application for the next major version of the API.
31+
32+
1. Method: /gists/:id/fork
33+
: Recommendation: Use **/gists/:id/forks** (plural) instead.
34+
35+
1. Method: /legacy/issues/search/:owner/:repository/:state/:keyword
36+
: Recommendation: Use [v3 Issue Search API](v3/search/#search-issues) instead.
37+
38+
1. Method: /legacy/repos/search/:keyword
39+
: Recommendation: Use [v3 Repository Search API](/v3/search/#search-repositories) instead.
40+
41+
1. Method: /legacy/user/search/:keyword
42+
: Recommendation: Use [v3 User Search API](/v3/search/#search-users) instead.
43+
44+
1. Method: /legacy/user/email/:email
45+
: Recommendation: Use [v3 User Search API](/v3/search/#search-users) instead.
46+
47+
1. Method: /repos/:owner/:repo/hooks/:id/test
48+
: Recommendation: Use **/repos/:owner/:repo/hooks/:id/tests** (plural) instead.
49+
50+
1. Query parameters when POSTing to /repos/:owner/:repo/forks
51+
: Recommendation: Use JSON to POST to this method instead.
52+
53+
1. Pull Request attribute: merge_commit_sha
54+
: Recommendation: [Do not use this attribute](/changes/2013-04-25-deprecating-merge-commit-sha/).
55+
56+
1. Rate Limit attribute: rate
57+
: Recommendation: Use **resources["core"]** instead.
58+
59+
1. Repository attribute: forks
60+
: Recommendation: Use **fork_count** instead.
61+
62+
1. Repository attribute: master_branch
63+
: Recommendation: Use **default_branch** instead.
64+
65+
1. Repository attribute: open_issues
66+
: Recommendation: Use **open_issues_count** instead.
67+
68+
1. Repository attribute: public
69+
: Recommendation: When [creating a repository](/v3/repos/#create), use the
70+
**private** attribute to indicate whether the repository should be public or
71+
private. Do not use the **public** attribute.
72+
73+
1. Repository attribute: watchers
74+
: Recommendation: Use **watchers_count** instead.
75+
76+
1. User attribute: bio
77+
: Recommendation: Do not use this attribute. It is obsolete.
4978

5079
### Breaking Beta Changes
5180

content/v3/media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ The Commit, Commit Comparison, and Pull Request resources support
137137
[git-diff]: http://git-scm.com/docs/git-diff
138138
[git-patch]: http://git-scm.com/docs/git-format-patch
139139
[hypermedia]: /v3/#hypermedia
140-
[expected-changes]: /#expected-changes
140+
[expected-changes]: /#deprecations

content/v3/pulls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Each time the pull request receives new commits, GitHub creates a merge commit
7272
to _test_ whether the pull request can be automatically merged into the base
7373
branch. (This _test_ commit is not added to the base branch or the head branch.)
7474
The `merge_commit_sha` attribute holds the SHA of the _test_ merge commit;
75-
however, this attribute is [deprecated](/#expected-changes) and is scheduled for
75+
however, this attribute is [deprecated](/#deprecations) and is scheduled for
7676
removal in the next version of the API. The Boolean `mergeable` attribute will
7777
remain to indicate whether the pull request can be automatically merged.
7878

content/v3/rate_limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ all the _rest_ of the API.
4343
#### Deprecation Notice
4444

4545
The `"rate"` hash (shown at the bottom of the response above) is
46-
[deprecated](/#expected-changes) and is scheduled for removal in the next
46+
[deprecated](/#deprecations) and is scheduled for removal in the next
4747
version of the API.
4848

4949
If you're writing new API client code (or updating your existing code), you

content/v3/repos/contents.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ ref
6060
<%= headers 200 %>
6161
<%= json :directory_content %>
6262

63+
Note: When listing the contents of a directory, submodules have their "type"
64+
specified as "file". Logically, the value *should* be "submodule". This behavior
65+
exists in API v3 [for backwards compatibility purposes](https://github.com/github/developer.github.com/commit/1b329b04cece9f3087faa7b1e0382317a9b93490).
66+
In the next major version of the API, the type will be returned as "submodule".
67+
6368
### Response if content is a symlink
6469

6570
If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](#response-if-content-is-a-file)).

content/v3/search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ query might look something like this.
225225

226226
https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc
227227

228-
In this query, we're searching for the keyword `win32`, within any open issue
228+
In this query, we're searching for the keyword `windows`, within any open issue
229229
that's labeled as `bug`. The search runs across repositories whose primary
230-
language is Ruby. We’re sorting by creation date in ascending order, so that
230+
language is Python. We’re sorting by creation date in ascending order, so that
231231
the oldest issues appear first in the search results.
232232

233233
<%= headers 200 %>

content/v3/search/legacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ v3. There should be no changes, other than the new URL and JSON output format.
1414

1515
<div class="alert">
1616
<p>
17-
The Legacy Search API (described below) is <a href="https://github.com/#expected-changes">deprecated</a>
17+
The Legacy Search API (described below) is <a href="https://github.com/#deprecations">deprecated</a>
1818
and is scheduled for removal in the next version of the API.
1919

2020
We recommend using the <a href="/v3/search/">v3 Search API</a> instead.

0 commit comments

Comments
 (0)