Skip to content

Git Menu

1. Git Accounts

Git accounts store provider credentials used for git integration operations like pull and webhook linking. Currently only GitHub is supported.

Fields

  1. Name - Account name (required, tracked)
  2. Provider - Git provider (required, default: github)
  3. Access Token - Personal access token for authentication (required)
  4. Owner - Odoo user who owns this account (required, defaults to current user)
  5. Notes - Additional notes about the account
  6. Active - Whether the account is active (default: True)
  7. Repository Count - Number of linked repositories (computed)

2. Git Repositories

Repository configuration for webhook-based deployments. Repositories link to a git account and track commits received via webhooks.

Fields

  1. Repository Name - Full path in Owner/RepoName format (required)
  2. Default Branch - Branch name for deployments (required, tracked)
  3. Git Account - Associated git account credentials
  4. Repository ID - GitHub repository ID (readonly, auto-populated)
  5. Webhook ID - Internal webhook identifier (readonly)
  6. Webhook Git ID - GitHub-side webhook ID (readonly)
  7. Webhook State - not_linked or linked (readonly, tracked)
  8. Last Commit ID - Most recent deployed commit (readonly)
  9. Last Commit Message - Message of the last commit (readonly, related)
  10. Last Commit By - Author of the last commit (readonly, related)
  11. Commit Count - Total commits tracked (computed)

Actions

Action Description
Link Webhook Register a webhook on GitHub to receive push events
Delete Webhook Remove the webhook from GitHub
Create Branch Create a new branch on GitHub from an existing one
Push Commit Clone and deploy code to a root server with syntax validation

Syntax Validation

When deploying commits, the system validates Python, XML, and JavaScript syntax before pushing to the server. If errors are found, the partner is notified.


3. Git Commits

Read-only log of all commits received via webhooks.

Fields

  1. Commit Message - Commit description text (readonly)
  2. Commit ID - GitHub commit SHA hash (readonly)
  3. Commit By - Author name (readonly)
  4. Branch - Branch where the commit was pushed (readonly)
  5. Account - Associated git account (readonly)
  6. Repository - Associated repository (readonly)