2025-08-25 13:46:37 +03:00

26 lines
769 B
YAML

name: 'create-odoo-timesheet'
description: 'Create an Odoo timesheet via FastAPI when time is added on a Gitea Issue.'
author: 'Mandresy RABENJAHARISON <mandresy.rabenjaharison@ethumada.com>'
branding:
icon: clock
color: blue
inputs:
base_url:
description: 'Base URL of the FastAPI server.'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
env:
BASE_URL: ${{ inputs.base_url }}
ISSUE_NUMBER: ${{ gitea.event.issue.number }}
ISSUE_TITLE: ${{ gitea.event.issue.title }}
SENDER_LOGIN: ${{ gitea.event.sender.login }}
TRACKED_SECONDS: ${{ gitea.event.tracked_time.time }}
TRACKED_CREATED: ${{ gitea.event.tracked_time.created }}
EVENT_ACTION: ${{ gitea.event.action }}
BRANCH_REF: ${{ gitea.event.issue.ref }}