rlsbl.commands.discover

Discover command: list projects in the rlsbl ecosystem.

Functions

_get_github_token

def _get_github_token()

Get a GitHub token from GITHUB_TOKEN env or gh auth token.

_make_request

def _make_request(url, token)

Make a GET request to the GitHub API, return parsed JSON and response headers.

On a 403 with a Retry-After header, waits (capped at 10s) and retries once.

_parse_next_link

def _parse_next_link(headers)

Extract the 'next' URL from the Link header, or None.

_relative_time

def _relative_time(iso_timestamp)

Convert an ISO 8601 timestamp to a relative time string like '2d ago'.

_get_authenticated_user

def _get_authenticated_user(token)

Get the authenticated user's login name.

_fetch_all_repos

def _fetch_all_repos(token)

Fetch all repos with the rlsbl topic, handling pagination.

run_cmd

def run_cmd(registry, args, flags)

Discover command: list projects in the rlsbl ecosystem.