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 -- Not In Org -- option. |
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 -- Input Repo Full Name -- option, then the card ignores the Organization selection and you must enter the full name of the repository in the Repository input field. |
Dropdown |
TRUE |
Branch |
Select the branch where you want to commit the new file. The options are Provide Branch or Use Default Branch. The default branch is usually Main. |
Dropdown |
TRUE |
Input
Field | Definition | Type | Required |
---|---|---|---|
Repository |
|||
Full Name |
The full name of the repository. This input field appears when you select -- Input Repo Full Name -- as the Repository option. The name must be formatted as <org_name>/<repo_name> if the repository is within an organization, or <owner_name>/<repo_name> if the repository is under a personal account. 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 Provide Branch as the Branch option. Otherwise, the change is made using the default branch for the repository. |
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 |