feat(repos): surface a mirror's upstream source (original_url + last sync) in get output #467
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#467
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a repo is a mirror,
madt_repos action=getreportsmirror: truebut not WHERE it mirrors from. To learn the upstream source I have to drop to the raw API escape hatch:The
getformatted output already holds the full repo object. It just does not print the two fields that answer "what does this mirror track, and is it current":original_url- the upstream source URL the mirror clones frommirror_updated- the last successful sync timeRepro
madt_repos action=get owner_repo=<org>/<a-github-mirror>prints:The output says the repo IS a mirror, but never says the GitHub source it mirrors, nor when it last synced. Both live on the same object I just fetched.
Ask
When
mirroris true, add the upstream source and last sync to the formattedgetoutput, for example:Acceptance
madt_repos action=geton a mirror printsoriginal_url(the source) andmirror_updatedin the formatted text.madt_api_call.Optional follow-on
Surface the same "mirror of X" line in
madt_status, since that is the other place the question "what is this checkout" gets asked.