denoland / deploy_feedback

For reporting issues with Deno Deploy
https://deno.com/deploy
74 stars 5 forks source link

Stable URL for all branches pointing to latest deployment of related branch #384

Open olmohake opened 1 year ago

olmohake commented 1 year ago

What problem are you trying to solve?

I am trying to setup a test environment. While this should be a quite simple task for the production environment, it is currently not that simple for environments related to branches other than main as the url for the deployed service changes with every deployment.

Describe the solution you'd like

It would be extremely helpful to have a stable url for all branches and let these urls automatically point to the latest deployment of each branch:

<branchname>-<repository-name>.deno.dev

Describe alternatives you've considered

manual update of the url after each deployment for all branches/enviroments != main/production

Documentation, Adoption, Migration Strategy

No response

lucacasonato commented 1 year ago

$projectname--$branch.deno.dev are stable branch URLs. The Deno Deploy GitHub bot adds this stable URL as a link to your PR in the "Checks" section.

image

olmohake commented 1 year ago

Hmm, these don't show up anywhere for me. Is this only the case if i select the GitHub Action Integration or should this also be the case for the Automatic Integration option?

Also, if these url's are generated it would helpful to display theme on dash.deno.com!

lucacasonato commented 1 year ago

Yes, it is supported for both Automatic and GHA mode. You may have to accept updated permissions at https://github.com/settings/installations.

Also, if these url's are generated it would helpful to display theme on dash.deno.com!

Noted!

jvhellemond commented 3 weeks ago

Is there any way to prevent branches from triggering a deploy? For example: GitHub's dependabot autmatically creates feature branches in my repository to bump dependencies. These should really not trigger a (branch)deploy. Can I somehow limit deployments to the main branch and maybe a few, specified branches?