Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-2692

Re-run of check on `push` event does not work from Github UI

    XMLWordPrintable

Details

    • Pipelines Sprint 229, Pipelines Sprint 230

    Description

      I have PipelineRun defined on `push` event to my repo (https://github.com/redhat-appstudio/quality-dashboard/blob/cf934470c7bf4fdfc2183c6505eca24a3e08c9fe/.tekton/push-backend.yaml#L6-L7)
      In order to really make it work I had to specify `target_branch == "refs/heads/main"` as setting it just to `main` was not triggering the PipelineRun. This was suggested to me in this slack thread: https://coreos.slack.com/archives/C0382KN768J/p1669894072556819

      Unfortunately, with target_branch set to `refs/heads/main`, the re-runs of that check are not triggering the pipelinerun.
      Looking at PaC controller logs it seems that it's matching branch to `main` instead of `refs/heads/main`

      Here are the snippets of logs from

      • Orignal PUSH event:
        {"severity":"INFO","timestamp":"2022-12-14T12:48:32.568859697Z","logger":"pipelinesascode","caller":"matcher/annotation_matcher.go:118","message":"matching pipelineruns to event: URL=https://github.com/redhat-appstudio/quality-dashboard, target-branch=refs/heads/main, source-branch=refs/heads/main, target-event=push","commit":"8bebeb6","provider":"github","event-id":"9cc90b8a-7bad-11ed-83ee-109f04988e7b","event-sha":"2212cd5c001be42b3b55a7801a8dbac266ce495a","event-type":"push"}
        
      • re-run request
        {"severity":"INFO","timestamp":"2022-12-14T14:18:40.454245702Z","logger":"pipelinesascode","caller":"matcher/annotation_matcher.go:118","message":"matching pipelineruns to event: URL=https://github.com/redhat-appstudio/quality-dashboard, target-branch=main, source-branch=main, target-event=pull_request","commit":"8bebeb6","provider":"github","event-id":"7648e100-7bb8-11ed-8d5a-8cbfd513fd54","event-sha":"2212cd5c001be42b3b55a7801a8dbac266ce495a","event-type":"push"}
        

      Ideally I would love to be able to "just" specify the branch name in `target_branch` field - in my case `target_branch == "main"` and everything would work as expected.

      Attachments

        Activity

          People

            smukhade Shivam Mukhade (Inactive)
            rhopp@redhat.com Radim Hopp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: