Mandresy RABENJAHARISON 827d5e7e24 initial commit
2025-08-11 16:34:00 +03:00

26 lines
779 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@gmail.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 }}
# Issue time tracking fields (from the event payload)
TRACKED_SECONDS: ${{ gitea.event.tracked_time.time }}
TRACKED_CREATED: ${{ gitea.event.tracked_time.created }}
EVENT_ACTION: ${{ gitea.event.action }}