lfs
Creates, updates, deletes, gets or lists a lfs resource.
Overview
| Name | lfs |
| Type | Resource |
| Id | github.migrations.lfs |
Fields
The following fields are returned by SELECT queries:
- get_large_files
Response
| Name | Datatype | Description |
|---|---|---|
ref_name | string | |
oid | string | |
path | string | |
size | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_large_files | select | owner, repo | List files larger than 100MB found during the import > [!WARNING] > Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog. | |
set_lfs_preference | update | owner, repo, use_lfs | You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by Git LFS. You can learn more about our LFS feature and working with large files on our help site. > [!WARNING] > Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
SELECT examples
- get_large_files
List files larger than 100MB found during the import
> [!WARNING]
> Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog.
SELECT
ref_name,
oid,
path,
size
FROM github.migrations.lfs
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;
UPDATE examples
- set_lfs_preference
You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability
is powered by Git LFS.
You can learn more about our LFS feature and working with large files on our help
site.
> [!WARNING]
> Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog.
UPDATE github.migrations.lfs
SET
use_lfs = '{{ use_lfs }}'
WHERE
owner = '{{ owner }}' --required
AND repo = '{{ repo }}' --required
AND use_lfs = '{{ use_lfs }}' --required
RETURNING
authors_count,
authors_url,
commit_count,
error_message,
failed_step,
has_large_files,
html_url,
import_percent,
large_files_count,
large_files_size,
message,
project_choices,
push_percent,
repository_url,
status,
status_text,
svc_root,
svn_root,
tfvc_project,
url,
use_lfs,
vcs,
vcs_url;