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

Allow filtering events by title, using CEL

    XMLWordPrintable

Details

    • Pipelines Sprint 227, Pipelines Sprint 228, Pipelines Sprint 229, Pipelines Sprint 230

    Description

      As of now we only expose few feilds to end user to play with Advanced event matching.

      The fields available are :
      
      event: push or pull_request
      target_branch: The branch we are targeting.
      source_branch: The branch where this pull_request come from. (on push this is the same as target_branch). 

      we might need to add new field for title so can do some CEL regular exprissions , and filter out required events to run workloads.
      eg:

      PR's with below format [Downstream] ...... [Feat] .... [Fix] .... etc., 

      And For example if I want to have a PipelineRun targeting a pull_request with title prefix downstream [Downstream] Feature 1

      pipelinesascode.tekton.dev/on-cel-expression: |
                  event == "pull_request" && title == '\[D?d?ownstream.*' 
      • Proposal is to add new feild title

      Attachments

        Activity

          People

            cboudjna@redhat.com Chmouel Boudjnah
            pthangad Praveen Kumar Reddy Thangadancha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: