question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add more unique deployment names

See original GitHub issue

Hi - I was wondering if there was some way to customize the “Deployment” or “Pipeline” fields to show more unique information? Or, if an improvement could be made?

Deployments for our team can mean deploying multiple components separately. A frontend, backend, poller/worker service, etc.

In this screenshot you can see that they currently just show “deploy”. But, this isn’t too useful since I don’t know which is which. Once you click the underlying link it will actually take you to the GitHub action, where you can actually determine which belongs to which. It would be nice to map one of these fields to the name of the deploy instead.

image

Digging into the code here; I suspect this is where they are mapped. deployment.task I suspect resolves to the value deploy for displayName. But, I’m not too sure what to change in my github action, since it doesn’t seem we specify that anywhere.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:7
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benoittgtcommented, Nov 10, 2022

Hello

Ok after diging a little bit. I think the current implementation is good but it needs some documentation and maybe the field “deployment” should print another info. Few ideas:

For all those ideas “Deployment” should not have a link, but env should be mapped to environment_url (https://docs.github.com/en/rest/deployments/statuses#create-a-deployment-status)

With the existing implementation, to change the content of deploy and pipeline simply specify in Github Action the name of the task.

I do not use Github Action, but I was able to make this with the proper API calls on Github API.

Capture_d’écran_2022-11-10_à_15_11_10
1reaction
dt-atkinsoncommented, Nov 3, 2022

Perhaps the deployment payload (on creation) can be used for these extra details if we have unique keys that can be looked up?

For example your deployment could easily have a pipeline and deployment key string added there, possibly nested under a jira info key?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use uniqueString() function to generate unique names for ...
Use uniqueString() function to generate unique names for resources in ARM template · Stephane Lapointe · Unique but Non-Deterministic.
Read more >
how to ensure unique names within an arm template?
Use some prefix with your resource name and the uniqueString function withtin the arm template to generate a unique name. Example:
Read more >
Name generation pattern - Azure Resource Manager
Use Bicep's string interpolation to generate resource names as variables. If the resource requires a globally unique name, use the uniqueString ...
Read more >
How to make your deployments successful every time
It's that simple! Now every time you will deploy a unique string will be added to your resource name. That string will always...
Read more >
Learn how you can use Infrastructure as Code
It's also possible to list parts of your deployment inline, in a nested way. ... Add a new parameter, add the following to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found