Actions34
- Git Repositories Actions
- Pipelines (CI/CD) Actions
- Work Items (Boards) Actions
- Pull Requests Actions
- Test Plans (QA) Actions
- Service Hooks (Webhooks) Actions
- Wiki Actions
- Artifacts Actions
- Boards & Iterations Actions
Git Repositories → Push Commit
AI-generatedSummary
Pushes a commit to an Azure DevOps repository branch that adds or edits one file with the supplied content.
Inputs
- Project (required) — Azure DevOps project name or ID.
- Repository ID (required) — Repository ID or name.
- Branch Name (required) — Branch to update, such as refs/heads/feature-1.
- Commit Message — Commit message; defaults to “Update from n8n”.
- File Path (required) — Path of the file to add or update. A leading slash is added if omitted.
- Change Type — Choose Edit to update an existing file or Add to create a new file. Defaults to Edit.
- File Content — New content to write to the file; defaults to an empty string.
Output shape
A list of n8n items containing the Azure DevOps push response.
The operation looks up the branch’s current head and uses it as the ref update’s old object ID; if no matching ref is found, it uses an all-zero object ID. On success, the API response is returned as one item. With Continue On Fail enabled, an error is returned as an item containing an error field.