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

Getting approvals from within an environment's REST handler #1201

Open
pallibj opened this issue Oct 19, 2023 · 0 comments
Open

Getting approvals from within an environment's REST handler #1201

pallibj opened this issue Oct 19, 2023 · 0 comments

Comments

@pallibj
Copy link

pallibj commented Oct 19, 2023

I have an async REST handler set up for a DevOps environment to control when that pipeline is allowed to run using certain logic.

I used the Azure Function Basic and Advanced handler as a skeleton for creating the REST handler and it is working fine.

From within the handler, I want the approval logic to be such that only when all other approvals on the deployment have been given a go, my async handler should apply it's logic and give a go when conditions are met.

However, from the REST API's code, I have the BuildId (and more) from the DevOps's rest invocation, so I can get a BuildHttpClient and TaskHttpClient, but I can not figure out how to get to the approvals of the pipeline run to get individual approvals status.

Any thoughts on how to accomplish that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant