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

I want to call Cypress API api.cypress.io to add Tags to a Run. Where can I find documentation of this Backend API? #6015

Closed
ashishmundra opened this issue Nov 22, 2024 · 5 comments

Comments

@ashishmundra
Copy link

Description

I want to call Cypress API api.cypress.io to add Tags to a Run. Where can I find documentation of this Backend API?

E.g. if there is a /runs or /tags Endpoint and what should there Payload be? How to know this documentation? I want to call it from a bash script.

@ryanthemanuel
Copy link
Contributor

Hi @ashishmundra. The calls to api.cypress.io are not meant to be called outside of the running Cypress app. If you want the ability to add tags to a run that you're about to kick off via a bash script, you can use the module API and pass in tags as an option.

@ashishmundra
Copy link
Author

I want to add tags to a run after the run has been completed.

I want to do it via my Github action that promotes my QA build to Prod Environment. I like to capture qa lead approved before this promotion happens and want to tag approved by and approval date with Cypress Test Run itself so that later I can show that for this release these are Test Run, and was approved by whom within Cypress Cloud.

How can I achieve that? If there was a cypress api that can add tags to a run, that could be called from Github Action or anywhere else. Is there any other way to achieve what I have mentioned?

If not, I will have to store Test Results in Cypress and Approving Test Results somewhere else.

@MikeMcC399
Copy link
Contributor

@ashishmundra

In case you are not aware, for "how-to" type support you can connect to the Cypress technical community on Discord

Discord chat (click on button)

@jennifer-shehane
Copy link
Member

@ashishmundra This capability doesn't exist today, but I'll raise it as a feature request to our Cloud team. Thanks for sharing.

I'll close this issue as it's intended to be used for bugs or features wanted for the cypress-documentation repo.

@danjohansenconsulting
Copy link
Contributor

@ashishmundra quick update that Cloud is adding the ability for users to manually tag completed runs (some of our users are referring to this as "annotating" completed runs). That is anticipated in Q1. We are not expecting to add post-run tagging via API in this same timeframe, however.

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

No branches or pull requests

5 participants