rlsbl v0.40.1 /rlsbl.commands.discover
On this page

Discover command that lists projects in the rlsbl ecosystem by querying GitHub for repositories tagged with the rlsbl topic.

#rlsbl.commands.discover

#rlsbl.commands.discover

Discover command that lists projects in the rlsbl ecosystem by querying GitHub for repositories tagged with the rlsbl topic.

#_get_github_token

python
def _get_github_token()

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

#_make_request

python
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.

python
def _parse_next_link(headers)

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

#_relative_time

python
def _relative_time(iso_timestamp)

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

#_get_authenticated_user

python
def _get_authenticated_user(token)

Get the authenticated user's login name.

#_fetch_all_repos

python
def _fetch_all_repos(token)

Fetch all repos with the rlsbl topic, handling pagination.

#run_cmd

python
def run_cmd(registry, args, flags)

Discover command: list projects in the rlsbl ecosystem.