main

Fetch Workflow

Fetch or refresh Jira backlog data and ensure upstream repos are up-to-date.

Steps

1. Check for fetch script

Look for fetch-backlog.py in the project directory. If missing, inform the user they need to create it or copy from a template.

2. Run fetch

python3 fetch-backlog.py

This uses jrc (jayrat CLI) to paginate through all backlog issues, fetching full details including descriptions and comments.

3. Update upstream repos

For each repo in the component map, fetch the latest:

for repo in pipeline triggers chains results cli operator pipelines-as-code catalog dashboard; do
    git -C ~/src/tektoncd/$repo fetch upstream --quiet 2>/dev/null || \
    git -C ~/src/tektoncd/$repo fetch origin --quiet 2>/dev/null
done

4. Verify

Confirm the backlog JSON exists and report issue count:

python3 -c "import json; d=json.load(open('srvkp-backlog-full.json')); print(f'{len(d)} issues loaded')"