Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-7386

Process PR closed events from GitHub in Pipelines as Code

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Pipelines
    • None
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      1. Proposed title of this feature request

      Process PR closed events from GitHub in Pipelines as Code 

      2. What is the nature and description of the request?

      Currently Piplelines as Code only processes Push and PR Open/Update webhooks, and wont pass on other pull request action types to the PipelineRun. There is no way to use CEL or another annotation type to capture and react to PR Close events.
      This can be achieved with the older EventListener -> Trigger -> Interceptor pipeline workflow
              - params:
                  - name: filter
                    value: 'body.action in [''closed'']'
                ref:
                  kind: ClusterInterceptor
                  name: cel

      3. Why does the customer need this? (List the business requirements here)

       When testing a PR we build a copy of the app to validate it. When the PR is closed (with or without merge) we want to run a cleanup action to delete any PR specific objects that have been created. 

      4. List any affected packages or components.

      OpenShift Pipelines - PAC  

       

              rh-ee-ssadeghi Siamak Sadeghianfar
              rhn-support-sburhade Satyam Burhade
              None
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                None
                None