Skip to content

Commit

Permalink
a bit of documentation on the pr tag change
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-vakil committed Sep 20, 2024
1 parent 58ccf2a commit c4ed025
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cnab/app/container-registry-discovery.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ function Find-ContainerRegistry([string]$imageTag) {
return $containerRegistryDetails
}

# Image tags that are PRs are in the format pr-xxx or yyyy.mm.dd.vv-pr
# where:
# - xxx is the github pull request number
# - yyyy.mm.dd is the date of the release
# - vv is the github run number
# - pr- and -pr are literals
function IsPr([string]$imageTag) {
$isPr = $imageTag -match '(^pr-[0-9]+(-[0-9]+)?$)|([0-9\.]*-pr?$)'
Write-MinorStep "Is PR: $isPr"
Expand Down

0 comments on commit c4ed025

Please sign in to comment.