Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-3476

Show Tag label and tag name if tag is detected in repository PipelineRun list and details page

    XMLWordPrintable

Details

    • Moderate
    • ODC Sprint 227, ODC Sprint 228, ODC Sprint 229
    • 3
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, on the *PipelineRun details* page, it was difficult to understand if a Git branch or a tag was specified as they were displayed under a common heading. With this fix, the heading will be set based on the type of values. (link:https://issues.redhat.com/browse/OCPBUGS-3476[*OCPBUGS-3476*])
      Show
      * Previously, on the *PipelineRun details* page, it was difficult to understand if a Git branch or a tag was specified as they were displayed under a common heading. With this fix, the heading will be set based on the type of values. (link: https://issues.redhat.com/browse/OCPBUGS-3476 [* OCPBUGS-3476 *])
    • Done

    Description

      Description of problem:

      When we detect a refs/heads/branchname we should show the label as what we have now:
      
      - Branch: branchname
      
      And when we detect a refs/tags/tagname we should instead show the label as:
      
      - Tag: tagname
      
      

      I haven't implemented this in cli but there is an old issue for that here openshift-pipelines/pipelines-as-code#181

      Version-Release number of selected component (if applicable):

      4.11.z

      How reproducible:

       

      Steps to Reproduce:

      1. Create a repository
      2. Trigger the pipelineruns by push or pull request event on the github  

      Actual results:

      We do not show tag name even is tag is present instead of branch

      Expected results:

      We should show tag if tag is detected and branch if branch is detedcted.

      Additional info:

      https://github.com/openshift/console/pull/12247#issuecomment-1306879310

      Attachments

        Issue Links

          Activity

            People

              avik6028 Avik Kundu
              viraj-1 Vikram Raj
              Vikram Raj Vikram Raj
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: