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

Prepopulate the new-build-form with query params #432

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

kgwebsites
Copy link
Contributor

@kgwebsites kgwebsites commented Apr 5, 2023

Currently manual drone promotions have to be done by going into a drone build, clicking the kebab menu and clicking Promote.

Then the user has to fill out all of the fields necessary to promote their build. This is pretty user error prone.

We do not want to automate this process completely for the time being (which we can currently already do via cli), we still want a user to have to manually trigger this drone promote when they are ready.

This PR will allow us to generate a drone url such as /:namespace/:name/:build?target=production&commit=1234&parameters=[{"id":"1","key":"IMAGE_TAG","value":"1234"},{"id":"2","key":"ACTION","value":"deploy"}] . We can then give this generated link to our developers via slack (or anywher else) so they can easily click a link and click Promote without having to manually type out the parameter fields.

Copy link
Contributor

@d1wilko d1wilko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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