Skip to content

Conversation

@diogomatsubara
Copy link
Contributor

@diogomatsubara diogomatsubara commented Jan 13, 2026

## Problem
The workflow was passing repositories as a single quoted string to -t flag:
  -t "${{ inputs.repositories }}"

This resulted in repository names like 'zenoh-c eclipse-zenoh' being treated
as a single repository, causing 404 API errors with URL-encoded spaces (%20).

## Solution
Loop through space-separated repositories and pass each as a separate -t argument:
  for repo in ${{ inputs.repositories }}; do
    args+=(-t "$repo")
  done

This matches the expected array format for yargs parser in github-sync.js.

## Changes
Applied fix to all 4 command invocations:
- Label sync (live run)
- Label sync (dry-run)
- Milestone sync (live run)
- Milestone sync (dry-run)
The labels input had the same issue as repositories. The -l flag in
github-sync.js expects an array, but labels were passed as a single
quoted string with spaces.

Labels are generated from pr-checklists.json keys joined with spaces:
  join(" ")  # produces: "api-sync" "breaking-change" "bug" ...

Fixed by looping through each label and passing as separate -l argument,
similar to the repositories fix. Applied to both label sync runs
(live and dry-run).
@sashacmc sashacmc merged commit f0dda78 into eclipse-zenoh:main Jan 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants