Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds implementation and test for API: /approvaltask/{approvalTaskName} #64

Merged

Conversation

PuneetPunamiya
Copy link
Collaborator

  • This patch adds an API with POST method to update the approval task status

  • The request body will have

  { 
    "namespace": “<namespaceName>”,
    "approved": “true/false”,
  }

and will return name and the status of the approval task

Signed-off-by: Puneet Punamiya ppunamiy@redhat.com

@openshift-ci openshift-ci bot requested a review from vdemeester August 22, 2023 13:51
.idea/workspace.xml Outdated Show resolved Hide resolved
pkg/handlers/update.go Outdated Show resolved Hide resolved
pkg/handlers/update.go Outdated Show resolved Hide resolved
- This patch adds an API with POST method to update the approval task
  status

- The request body will have
     {
       "namespace": “<namespaceName>”,
       "approved": “true/false”,
     },

and will return name and the status of the approval task

Signed-off-by: Puneet Punamiya ppunamiy@redhat.com
@openshift-ci
Copy link

openshift-ci bot commented Aug 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PuneetPunamiya, vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@vdemeester
Copy link
Member

/lgtm

@openshift-merge-robot openshift-merge-robot merged commit f237599 into openshift-pipelines:main Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants