Skip to content

Rr 118 list tags acr#128

Merged
ryanraaschCDC merged 7 commits intomainfrom
rr-118-list-tags-acr
Mar 16, 2026
Merged

Rr 118 list tags acr#128
ryanraaschCDC merged 7 commits intomainfrom
rr-118-list-tags-acr

Conversation

@ryanraaschCDC
Copy link
Copy Markdown
Collaborator

No description provided.

@ryanraaschCDC ryanraaschCDC requested a review from Copilot March 9, 2026 16:25
@ryanraaschCDC ryanraaschCDC self-assigned this Mar 9, 2026
@ryanraaschCDC ryanraaschCDC linked an issue Mar 9, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a list_acr_tags function to retrieve all tags from a given Azure Container Registry (ACR) repository, exposing it both as a standalone helper function in helpers.py and as a method on the CloudClient class in _cloudclient.py. It uses the Azure CLI (az acr repository show-tags) via subprocess.run to query the registry and parses the JSON output.

Changes:

  • Adds list_acr_tags helper function in helpers.py that shells out to az acr repository show-tags and parses the returned JSON list of tags.
  • Adds list_acr_tags method on CloudClient in _cloudclient.py that delegates to the helper function.
  • Adds import json at the top of helpers.py to support JSON parsing of CLI output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cfa/cloudops/helpers.py Adds list_acr_tags standalone helper and import json
cfa/cloudops/_cloudclient.py Adds list_acr_tags method on CloudClient, delegating to the helper

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cfa/cloudops/_cloudclient.py Outdated
Comment thread cfa/cloudops/helpers.py Outdated
ryanraaschCDC and others added 2 commits March 9, 2026 09:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ryanraaschCDC ryanraaschCDC requested a review from xop5 March 9, 2026 20:10
@ryanraaschCDC ryanraaschCDC merged commit 8d54997 into main Mar 16, 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.

create function to list tags of ACR registry

4 participants