Create File Content
Create a file with content in GitHub.
Options
| Field | Definition | Type | Required |
|---|---|---|---|
|
Organization |
Choose the organization that owns the repository where you want to add the file. The dropdown list displays the organizations for the authenticated user. The list is limited to 100 organizations. If the repository is under a personal account, select the |
Dropdown | TRUE |
|
Repository |
Choose the repository where you want to add the new file. The dropdown list displays the repositories for the selected Organization. If you select the |
Dropdown | TRUE |
|
Branch |
Select the branch where you want to commit the new file. The options are The default branch is usually |
Dropdown | TRUE |
Input
| Field | Definition | Type | Required |
|---|---|---|---|
|
Repository |
|||
|
Full Name |
The full name of the repository. This input field appears when you select The name must be formatted as The card returns an error if the repository doesn't exist or the user doesn't have permission to access the repository. |
Text | TRUE |
|
File |
|||
|
Message |
The commit message for the change. |
Text | TRUE |
|
File Content |
The new file content, encoded using Base 64. |
File | TRUE |
|
Path |
The path and parameter of the file. |
Text | TRUE |
|
Branch Name |
The name of the branch used for the change. This field appears if you choose |
Text | FALSE |
Output
| Field | Definition | Type |
|---|---|---|
|
File Name |
Name of the file. | Text |
|
File Path |
The path and parameter for the updated file. |
Text |
|
Content SHA |
Blob SHA of the updated file. |
Text |
|
HTML URL |
The location of the updated file. |
Text |