Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commita4c53fb

Browse files
committed
Merge pull request#672 from github/izuzak-milestones-referred-by-number-not-id
Clarify that milestones are referred to by number not by id when creating or editing issues
2 parentscfc142c +073bed6 commita4c53fb

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

‎content/v3/issues.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Name | Type | Description
5454

5555
Name | Type | Description
5656
-----|------|--------------
57-
`milestone`|`integer` or`string`| If an`integer` is passed, it should refer to a milestone number. If the string`*` is passed, issues with any milestone are accepted. If the string`none` is passed, issues without milestones are returned.
57+
`milestone`|`integer` or`string`| If an`integer` is passed, it should refer to a milestoneby its`number` field. If the string`*` is passed, issues with any milestone are accepted. If the string`none` is passed, issues without milestones are returned.
5858
`state`|`string`| Indicates the state of the issues to return. Can be either`open`,`closed`, or`all`. Default:`open`
5959
`assignee`|`string`| Can be the name of a user. Pass in`none` for issues with no assigned user, and`*` for issues assigned to any user.
6060
`creator`|`string`| The user that created the issue.
@@ -93,7 +93,7 @@ Name | Type | Description
9393
`title`|`string` |**Required**. The title of the issue.
9494
`body`|`string` | The contents of the issue.
9595
`assignee`|`string` | Login for the user that this issue should be assigned to._NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise._
96-
`milestone`|`number` |Milestone to associate this issue with._NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._
96+
`milestone`|`integer` |The`number` of the milestone to associate this issue with._NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._
9797
`labels`|`array` of`strings` | Labels to associate with this issue._NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._
9898

9999
####Example
@@ -125,7 +125,7 @@ Name | Type | Description
125125
`body`|`string` | The contents of the issue.
126126
`assignee`|`string` | Login for the user that this issue should be assigned to.
127127
`state`|`string` | State of the issue. Either`open` or`closed`.
128-
`milestone`|`number` |Milestone to associate this issue with or`null` to remove current._NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._
128+
`milestone`|`integer` |The`number` of the milestone to associate this issue with or`null` to remove current._NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._
129129
`labels`|`array` of`strings` | Labels to associate with this issue. Pass one or more Labels to_replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue._NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._
130130

131131

‎content/v3/pulls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Issue number instead of `title` and `body`.
109109

110110
Name | Type | Description
111111
-----|------|--------------
112-
`issue`|`number` |**Required**. The issue number in this repository to turn into a Pull Request.
112+
`issue`|`integer` |**Required**. The issue number in this repository to turn into a Pull Request.
113113

114114
####Example
115115

‎content/v3/pulls/comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Name | Type | Description
6565
`body`|`string` |**Required**. The text of the comment
6666
`commit_id`|`string` |**Required**. The SHA of the commit to comment on.
6767
`path`|`string` |**Required**. The relative path of the file to comment on.
68-
`position`|`number` |**Required**. The line index in the diff to comment on.
68+
`position`|`integer` |**Required**. The line index in the diff to comment on.
6969

7070

7171
####Example
@@ -85,7 +85,7 @@ an existing Pull Request Comment like this:
8585
Name | Type | Description
8686
-----|------|--------------
8787
`body`|`string` |**Required**. The text of the comment
88-
`in_reply_to`|`number` |**Required**. The comment id to reply to.
88+
`in_reply_to`|`integer` |**Required**. The comment id to reply to.
8989

9090

9191
####Example

‎content/v3/repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Name | Type | Description
124124
`has_issues`|`boolean` | Either`true` to enable issues for this repository,`false` to disable them. Default:`true`
125125
`has_wiki`|`boolean` | Either`true` to enable the wiki for this repository,`false` to disable it. Default:`true`
126126
`has_downloads`|`boolean` | Either`true` to enable downloads for this repository,`false` to disable them. Default:`true`
127-
`team_id`|`number` | The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
127+
`team_id`|`integer` | The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
128128
`auto_init`|`boolean` | Pass`true` to create an initial commit with empty README. Default:`false`
129129
`gitignore_template`|`string` | Desired language or platform[.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".
130130
`license_template`|`string` | Desired[LICENSE template](https://github.com/github/choosealicense.com) to apply. Use the[name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mozilla".

‎content/v3/repos/comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Name | Type | Description
4040
-----|------|--------------
4141
`body`|`string` |**Required**. The contents of the comment.
4242
`path`|`string` | Relative path of the file to comment on.
43-
`position`|`number` | Line index in the diff to comment on.
44-
`line`|`number` |**Deprecated**. Use**position** parameter instead. Line number in the file to comment on.
43+
`position`|`integer` | Line index in the diff to comment on.
44+
`line`|`integer` |**Deprecated**. Use**position** parameter instead. Line number in the file to comment on.
4545

4646

4747
####Example

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp