You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
title: Source Import API enhancements for working with Git LFS
3
+
author_name: lizzhale
4
+
---
5
+
6
+
Today we're introducing enhancements to the [Source Import API][docs] to support importing repositories with files larger than 100MB.
7
+
8
+
**Changes to parameters for starting an import**
9
+
10
+
[Starting an import][start-an-import] no longer requires a `vcs` parameter. Please be aware that without this parameter, the import job will take additional time to detect the vcs type before beginning the import. This detection step will be reflected in the response.
11
+
12
+
**New methods**
13
+
14
+
We've added 3 new methods that will enable API consumers to:
15
+
16
+
*[update][update-existing-import] the authentication or project choice for an import. If no parameters are provided during the request, the import will be restarted. Please note that this is a **breaking change**. Updating authentication for the originating URL is no longer supported through the [start an import][start-an-import] method. Please update your applications to use the new method.
17
+
18
+
*[set their preference][set-git-lfs-preference] for using Git LFS to import files larger than 100MB.
19
+
20
+
*[list all the files larger than 100MB][get-large-files] that were found during the import.
21
+
22
+
**New attributes for Git LFS**
23
+
24
+
Several new response attributes (`use_lfs`, `has_large_files`, `large_files_size`, `large_files`) were added to provide details regarding the large files found during the import. You can read more about the attributes [here][git-lfs-related-fields].
25
+
26
+
As before, to access the API during the preview period, you must provide a custom [media type][media-type] in the `Accept` header:
27
+
28
+
application/vnd.github.barred-rock-preview
29
+
30
+
For more information, see the [Source Import API documentation][docs], and if you have any questions or feedback, please [let us know][contact].
GitHub recently added [Reactions to Pull Requests, Issues, and Comments][reactions-blog-post] to help people express their feelings more simply and effectively in conversations. We are adding endpoints for Reactions so that you can now react and unreact via the API. You can enable these changes during the preview period by providing a custom [media type][media-type] in the `Accept` header:
You can learn more about the new reaction response objects in the updated [Commit comment][commit-comment-doc], [Issue][issue-doc], [Issue comment][issue-comment-doc], and [Review Comment][review-comment-doc] documentation. There is also new [Reaction][reaction-doc] documentation.
21
+
22
+
During the preview period, we may change aspects of these APIs based on developer feedback. We will announce the changes here on the developer blog, but we will not provide advance notice.
23
+
24
+
If you have any questions or feedback, please [let us know][contact].
Copy file name to clipboardExpand all lines: content/v3/activity/events/types.md
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -239,15 +239,19 @@ Key | Type | Description
239
239
240
240
## IssueCommentEvent
241
241
242
+
{% if page.version == 'dotcom' or page.version > 2.6 %}
242
243
Triggered when an [issue comment](/v3/issues/comments/) is created, edited, or deleted.
244
+
{% else %}
245
+
Triggered when an [issue is commented on](/v3/issues/comments/).
246
+
{% endif %}
243
247
244
248
### Events API payload
245
249
246
250
Key | Type | Description
247
251
----|------|-------------
248
-
`action`|`string` | The action that was performed on the comment. Can be one of "created", "edited", or "deleted".
252
+
`action`|`string` | The action that was performed on the comment. {% if page.version == 'dotcom' or page.version > 2.6 %}Can be one of "created", "edited", or "deleted".
249
253
`changes`|`object` | The changes to the comment if the action was "edited".
250
-
`changes[body][from]` |`string` | The previous version of the body if the action was "edited".
254
+
`changes[body][from]` |`string` | The previous version of the body if the action was "edited".{% else %}Currently, can only be "created".{% endif %}
251
255
`issue`|`object` | The [issue](/v3/issues/) the comment belongs to.
252
256
`comment`|`object` | The [comment](/v3/issues/comments/) itself.
253
257
@@ -261,17 +265,17 @@ Key | Type | Description
261
265
262
266
## IssuesEvent
263
267
264
-
Triggered when an [issue](/v3/issues) is assigned, unassigned, labeled, unlabeled, opened, edited, closed, or reopened.
268
+
Triggered when an [issue](/v3/issues) is assigned, unassigned, labeled, unlabeled, opened, {% if page.version == 'dotcom' or page.version > 2.6 %}edited, {% endif %}closed, or reopened.
265
269
266
270
### Events API payload
267
271
268
272
Key | Type | Description
269
273
----|------|-------------
270
-
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "closed", or "reopened".
271
-
`issue`|`object` | The [issue](/v3/issues) itself.
274
+
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", {% if page.version == 'dotcom' or page.version > 2.6 %}"edited", {% endif %}"closed", or "reopened".
275
+
`issue`|`object` | The [issue](/v3/issues) itself.{% if page.version == 'dotcom' or page.version > 2.6 %}
272
276
`changes`|`object`| The changes to the issue if the action was "edited".
273
277
`changes[title][from]`|`string` | The previous version of the title if the action was "edited".
274
-
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".
278
+
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".{% endif %}
275
279
`assignee`|`object` | The optional user who was assigned or unassigned from the issue.
276
280
`label`|`object` | The optional label that was added or removed from the issue.
277
281
@@ -363,17 +367,17 @@ Triggered when a private repository is [open sourced](/v3/repos/#edit). Without
363
367
364
368
## PullRequestEvent
365
369
366
-
Triggered when a [pull request](/v3/pulls) is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, or synchronized.
370
+
Triggered when a [pull request](/v3/pulls) is assigned, unassigned, labeled, unlabeled, opened, {% if page.version == 'dotcom' or page.version > 2.6 %}edited, {% endif %}closed, reopened, or synchronized.
367
371
368
372
### Events API payload
369
373
370
374
Key | Type | Description
371
375
----|------|-------------
372
-
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "closed", or "reopened", or "synchronize". If the action is "closed" and the `merged` key is `false`, the pull request was closed with unmerged commits. If the action is "closed" and the `merged` key is `true`, the pull request was merged.
373
-
`number`|`integer` | The pull request number.
376
+
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", {% if page.version == 'dotcom' or page.version > 2.6 %}"edited", {% endif %}"closed", or "reopened", or "synchronize". If the action is "closed" and the `merged` key is `false`, the pull request was closed with unmerged commits. If the action is "closed" and the `merged` key is `true`, the pull request was merged.
377
+
`number`|`integer` | The pull request number.{% if page.version == 'dotcom' or page.version > 2.6 %}
374
378
`changes`|`object`| The changes to the comment if the action was "edited".
375
379
`changes[title][from]`|`string` | The previous version of the title if the action was "edited".
376
-
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".
380
+
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".{% endif %}
377
381
`pull_request`|`object` | The [pull request](/v3/pulls) itself.
378
382
379
383
### Webhook event name
@@ -386,15 +390,19 @@ Key | Type | Description
386
390
387
391
## PullRequestReviewCommentEvent
388
392
393
+
{% if page.version == 'dotcom' or page.version > 2.6 %}
389
394
Triggered when a [comment on a Pull Request's unified diff](/v3/pulls/comments) is created, edited, or deleted (in the Files Changed tab).
395
+
{% else %}
396
+
Triggered when a [Pull Request's unified diff is commented on](/v3/pulls/comments) (in the Files Changed tab).
397
+
{% endif %}
390
398
391
399
### Events API payload
392
400
393
401
Key | Type | Description
394
402
----|------|-------------
395
-
`action`|`string` | The action that was performed on the comment. Can be one of `created`, `edited`, or `deleted`.
403
+
`action`|`string` | The action that was performed on the comment. {% if page.version == 'dotcom' or page.version > 2.6 %}Can be one of "created", "edited", or "deleted".
396
404
`changes`|`object`| The changes to the comment if the action was "edited".
397
-
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".
405
+
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".{% else %}Currently, can only be "created".{% endif %}
398
406
`pull_request`|`object` | The [pull request](/v3/pulls/) the comment belongs to.
399
407
`comment`|`object` | The [comment](/v3/pulls/comments) itself.
400
408
@@ -463,15 +471,15 @@ Key | Type | Description
463
471
464
472
## RepositoryEvent
465
473
466
-
Triggered when a repository is created, deleted, made public, or made private.
474
+
Triggered when a repository is created{% if page.version == 'dotcom' or page.version > 2.6 %}, deleted, made public, or made private{% endif %}.
467
475
468
-
Events of this type are not visible in timelines. These events are only used to trigger hooks.
476
+
Events of this type are not visible in timelines. These events are only used to trigger {% if page.version != 'dotcom' and page.version <= 2.6 %}organization {% endif %}hooks.
469
477
470
478
### Events API payload
471
479
472
480
Key | Type | Description
473
481
----|------|-------------
474
-
`action` |`string` | The action that was performed. This can be one of `created`, `deleted`, `publicized`, or `privatized`.
482
+
`action` |`string` | The action that was performed. {% if page.version == 'dotcom' or page.version > 2.6 %}This can be one of "created", "deleted", "publicized", or "privatized".{% else %}Currently, can only be "created".{% endif %}
475
483
`repository`|`object` | The [repository](/v3/repos/) itself.
An additional `reactions` object in the issue payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice.
60
+
Please see the [blog post](/changes/2016-05-12-reactions-api-preview) for full details.
61
+
62
+
To access the API you must provide a custom [media type](/v3/media) in the `Accept` header:
63
+
64
+
application/vnd.github.squirrel-girl-preview
65
+
66
+
The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](/v3/reactions) reactions.
An additional `reactions` object in the issue payload is currently available for developers to preview.
105
+
During the preview period, the APIs may change without advance notice.
106
+
Please see the [blog post](/changes/2016-05-12-reactions-api-preview) for full details.
107
+
108
+
To access the API you must provide a custom [media type](/v3/media) in the `Accept` header:
109
+
110
+
application/vnd.github.squirrel-girl-preview
111
+
112
+
The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](/v3/reactions) reactions.
113
+
114
+
{{/tip}}
115
+
<%= json :issue_reaction_summary %>
116
+
{% endif %}
117
+
77
118
## Get a single issue
78
119
79
120
<%= fetch_content(:prs_as_issues) %>
@@ -85,6 +126,27 @@ Name | Type | Description
85
126
<%= headers 200 %>
86
127
<%= json :full_issue %>
87
128
129
+
{% if page.version == 'dotcom' %}
130
+
#### Reactions summary
131
+
132
+
{{#tip}}
133
+
134
+
<aname="preview-period-issue"></a>
135
+
136
+
An additional `reactions` object in the issue payload is currently available for developers to preview.
137
+
During the preview period, the APIs may change without advance notice.
138
+
Please see the [blog post](/changes/2016-05-12-reactions-api-preview) for full details.
139
+
140
+
To access the API you must provide a custom [media type](/v3/media) in the `Accept` header:
141
+
142
+
application/vnd.github.squirrel-girl-preview
143
+
144
+
The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](/v3/reactions) reactions.
145
+
146
+
{{/tip}}
147
+
<%= json :issue_reaction_summary %>
148
+
{% endif %}
149
+
88
150
## Create an issue
89
151
90
152
Any user with pull access to a repository can create an issue.
An additional `reactions` object in the issue comment payload is currently available for developers to preview.
41
+
During the preview period, the APIs may change without advance notice.
42
+
Please see the [blog post](/changes/2016-05-12-reactions-api-preview) for full details.
43
+
44
+
To access the API you must provide a custom [media type](/v3/media) in the `Accept` header:
45
+
46
+
application/vnd.github.squirrel-girl-preview
47
+
48
+
The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](/v3/reactions) reactions.
49
+
50
+
{{/tip}}
51
+
<%= json :issue_comment_reaction_summary %>
52
+
{% endif %}
53
+
33
54
## List comments in a repository
34
55
35
56
GET /repos/:owner/:repo/issues/comments
@@ -50,6 +71,27 @@ Name | Type | Description
50
71
<%= headers 200 %>
51
72
<%= json(:issue_comment) { |h| [h] } %>
52
73
74
+
{% if page.version == 'dotcom' %}
75
+
#### Reactions summary
76
+
77
+
{{#tip}}
78
+
79
+
<aname="preview-period-issues-comments"></a>
80
+
81
+
An additional `reactions` object in the issue comment payload is currently available for developers to preview.
82
+
During the preview period, the APIs may change without advance notice.
83
+
Please see the [blog post](/changes/2016-05-12-reactions-api-preview) for full details.
84
+
85
+
To access the API you must provide a custom [media type](/v3/media) in the `Accept` header:
86
+
87
+
application/vnd.github.squirrel-girl-preview
88
+
89
+
The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](/v3/reactions) reactions.
An additional `reactions` object in the issue comment payload is currently available for developers to preview.
112
+
During the preview period, the APIs may change without advance notice.
113
+
Please see the [blog post](/changes/2016-05-12-reactions-api-preview) for full details.
114
+
115
+
To access the API you must provide a custom [media type](/v3/media) in the `Accept` header:
116
+
117
+
application/vnd.github.squirrel-girl-preview
118
+
119
+
The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](/v3/reactions) reactions.
0 commit comments