feat: log Odoo ticket number and ID for better debugging

This commit is contained in:
Mandresy RABENJAHARISON 2025-08-21 15:01:30 +03:00
parent c9d46dbf21
commit e1d0d43b5c

View File

@ -25,6 +25,8 @@ func main() {
// Retrieve environment variables
issueOdooTicketString := os.Getenv("ODOO_TICKET_NUMBER")
logger.Printf("ODOO_TICKET_NUMBER: %s\n", issueOdooTicketString)
issueTitle := os.Getenv("ISSUE_TITLE")
labelsStr := os.Getenv("ISSUE_LABELS")
issueNumberString := os.Getenv("ISSUE_NUMBER")
@ -52,6 +54,7 @@ func main() {
logger.Printf("Error while converting the Odoo ticket number: %v\n", err)
os.Exit(1)
}
logger.Printf("Odoo ticket ID: %d\n", issueOdooTicketID)
// Map labels to Git Flow prefixes
prefix := "feature"