fix: correct ISSUE_LABELS parsing and logging

This commit is contained in:
Mandresy RABENJAHARISON 2025-09-29 15:30:08 +03:00
parent 06f6737f96
commit 7c0d7d26e4
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ runs:
using: "docker"
image: "Dockerfile"
env:
ISSUE_LABELS: ${{ gitea.event.issue.labels }}
ISSUE_LABELS: ${{ join(gitea.event.issue.labels.*.name, ',') }}
ISSUE_NUMBER: ${{ gitea.event.issue.number }}
ODOO_TICKET_NUMBER: ${{ gitea.event.issue.ref }}
ISSUE_TITLE: ${{ gitea.event.issue.title }}

View File

@ -30,8 +30,10 @@ func main() {
logger.Printf("ODOO_TICKET_NUMBER: %s\n", issueOdooTicketString)
issueTitle := os.Getenv("ISSUE_TITLE")
labelsEnv := os.Getenv("ISSUE_LABELS")
logger.Printf("ISSUE_TITLE: %s\n", reflect.TypeOf(labelsEnv))
logger.Printf("ISSUE_LABELS: %s\n", labelsEnv)
issueNumberString := os.Getenv("ISSUE_NUMBER")
giteaToken := os.Getenv("GITEA_TOKEN")