Skip to content

Commit 56d7eab

Browse files
authored
fix: update in-code documentation for repos.createOrUpdateFileContents (PUT /repos/{owner}/{repo}/contents/{path}) and repos.deleteFile (DELETE /repos/{owner}/{repo}/contents/{path}) to clarify that calling them in parallel may lead to conflicts (#556)
WIP octokit/openapi updated
1 parent b3b36d0 commit 56d7eab

File tree

18 files changed

+51
-43
lines changed

18 files changed

+51
-43
lines changed

docs/issues/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Indicates which sorts of issues to return. `assigned` means issues assigned to y
3939
</td></tr>
4040
<tr><td>state</td><td>no</td><td>
4141

42-
Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.
42+
Indicates the state of the issues to return.
4343

4444
</td></tr>
4545
<tr><td>labels</td><td>no</td><td>
@@ -49,7 +49,7 @@ A list of comma separated label names. Example: `bug,ui,@high`
4949
</td></tr>
5050
<tr><td>sort</td><td>no</td><td>
5151

52-
What to sort results by. Can be either `created`, `updated`, `comments`.
52+
What to sort results by.
5353

5454
</td></tr>
5555
<tr><td>direction</td><td>no</td><td>

docs/issues/listForAuthenticatedUser.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Indicates which sorts of issues to return. `assigned` means issues assigned to y
3737
</td></tr>
3838
<tr><td>state</td><td>no</td><td>
3939

40-
Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.
40+
Indicates the state of the issues to return.
4141

4242
</td></tr>
4343
<tr><td>labels</td><td>no</td><td>
@@ -47,7 +47,7 @@ A list of comma separated label names. Example: `bug,ui,@high`
4747
</td></tr>
4848
<tr><td>sort</td><td>no</td><td>
4949

50-
What to sort results by. Can be either `created`, `updated`, `comments`.
50+
What to sort results by.
5151

5252
</td></tr>
5353
<tr><td>direction</td><td>no</td><td>

docs/issues/listForOrg.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Indicates which sorts of issues to return. `assigned` means issues assigned to y
4444
</td></tr>
4545
<tr><td>state</td><td>no</td><td>
4646

47-
Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.
47+
Indicates the state of the issues to return.
4848

4949
</td></tr>
5050
<tr><td>labels</td><td>no</td><td>
@@ -54,7 +54,7 @@ A list of comma separated label names. Example: `bug,ui,@high`
5454
</td></tr>
5555
<tr><td>sort</td><td>no</td><td>
5656

57-
What to sort results by. Can be either `created`, `updated`, `comments`.
57+
What to sort results by.
5858

5959
</td></tr>
6060
<tr><td>direction</td><td>no</td><td>

docs/issues/listForRepo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If an `integer` is passed, it should refer to a milestone by its `number` field.
5050
</td></tr>
5151
<tr><td>state</td><td>no</td><td>
5252

53-
Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.
53+
Indicates the state of the issues to return.
5454

5555
</td></tr>
5656
<tr><td>assignee</td><td>no</td><td>
@@ -75,7 +75,7 @@ A list of comma separated label names. Example: `bug,ui,@high`
7575
</td></tr>
7676
<tr><td>sort</td><td>no</td><td>
7777

78-
What to sort results by. Can be either `created`, `updated`, `comments`.
78+
What to sort results by.
7979

8080
</td></tr>
8181
<tr><td>direction</td><td>no</td><td>

docs/markdown/render.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The Markdown text to render in HTML.
3232
</td></tr>
3333
<tr><td>mode</td><td>no</td><td>
3434

35-
The rendering mode. Can be either `markdown` or `gfm`.
35+
The rendering mode.
3636

3737
</td></tr>
3838
<tr><td>context</td><td>no</td><td>

docs/orgs/listMembershipsForAuthenticatedUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ octokit.rest.orgs.listMembershipsForAuthenticatedUser();
2525
<tbody>
2626
<tr><td>state</td><td>no</td><td>
2727

28-
Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships.
28+
Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.
2929

3030
</td></tr>
3131
<tr><td>per_page</td><td>no</td><td>

docs/projects/listForOrg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The organization name. The name is not case sensitive.
3434
</td></tr>
3535
<tr><td>state</td><td>no</td><td>
3636

37-
Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.
37+
Indicates the state of the projects to return.
3838

3939
</td></tr>
4040
<tr><td>per_page</td><td>no</td><td>

docs/projects/listForRepo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The name of the repository. The name is not case sensitive.
4040
</td></tr>
4141
<tr><td>state</td><td>no</td><td>
4242

43-
Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.
43+
Indicates the state of the projects to return.
4444

4545
</td></tr>
4646
<tr><td>per_page</td><td>no</td><td>

docs/projects/listForUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The handle for the GitHub user account.
3232
</td></tr>
3333
<tr><td>state</td><td>no</td><td>
3434

35-
Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.
35+
Indicates the state of the projects to return.
3636

3737
</td></tr>
3838
<tr><td>per_page</td><td>no</td><td>

docs/pulls/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ Filter pulls by base branch name. Example: `gh-pages`.
5555
</td></tr>
5656
<tr><td>sort</td><td>no</td><td>
5757

58-
What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).
58+
What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month.
5959

6060
</td></tr>
6161
<tr><td>direction</td><td>no</td><td>
6262

63-
The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.
63+
The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.
6464

6565
</td></tr>
6666
<tr><td>per_page</td><td>no</td><td>

0 commit comments

Comments
 (0)