-
Notifications
You must be signed in to change notification settings - Fork 191
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
Add more unique deployment names #1536
Comments
Hey @fullstackzach. Would this feature help? https://github.com/atlassian/github-for-jira/blob/main/docs/deployments.md#environment-mapping |
Hi @rachellerathbone - I did see that documentation when I was trying to solve this problem, but I don't think it solves my request. Our deployments are being properly captured as "production" - as seen above, so environment mapping isn't the issue. So for example the first item in the table above the GitHub action might be named "Deploy Frontend", and the second item is "Deploy Backend", but only "deploy" appears in Jira - it's not until I click the link that it takes me to Github and I see the name of the component in the Github UI |
Hey @fullstackzach, can you give us a sample of your GitHub Actions workflow file so we can have a look? |
Sorry it took me a bit to get back to you here. I am a little apprehensive about posting our build config in a public forum, while giving you enough to work with. I inserted
|
Just popping in to add support on figuring out how to adjust those columns. Just spent a couple hours wondering if I was missing something obvious :) |
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 |
Same for us. We would like to provide more informations. We have multiple location for production env for example, and they are not deployed at the same time. Custom name in "Deployment" column or "pipeline" column could be very useful. Same for pre-production env who is not a testing env for us. Deployment Status API from Github already accept custom naming. I think Jira integration should accept only But first maybe display more infos from the Github deployment status API. :) Also
I think the doc should better explain how fields are mapped between Github API and Jira. I am not using Github Action to generate deployment and deployment status on Github API and it means lot's of digging to find the mapping.
Also the "description" field should be display. But yeah |
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 With the existing implementation, to change the content of I do not use Github Action, but I was able to make this with the proper API calls on Github API. |
We want to be able to easily access to an environment when possible from the deployment page. It needs to be provided as environment_url when making deployment status call. https://docs.github.com/en/rest/deployments/statuses#create-a-deployment-status For people who use the classic Github Action to mark deployment as suggested by Jira. It's here: https://github.com/chrnorm/deployment-action/blob/880668c419e283adc6b1cc092d52eb5e558fec4d/action.yml#L31-L33 Related: - atlassian#1536 - atlassian#1732
As mentioned in [Github documentation](https://docs.github.com/en/rest/deployments/deployments#about-the-deployments-api): > Deployment statuses can also include an optional description and log_url, which are highly recommended because they make deployment statuses more useful. We want to avoid having duplicate information between "pipeline" and "deployments" and use the more rich informations provided on description. For people who use the classic Github Action to mark deployment as suggested by Jira. It's here: https://github.com/chrnorm/deployment-action/blob/880668c419e283adc6b1cc092d52eb5e558fec4d/action.yml#L24-L26 Related: - atlassian#1536 - atlassian#1732 - atlassian#1736
As mentioned in [Github documentation](https://docs.github.com/en/rest/deployments/deployments#about-the-deployments-api): > Deployment statuses can also include an optional description and log_url, which are highly recommended because they make deployment statuses more useful. We want to avoid having duplicate information between "pipeline" and "deployments" and use the more rich informations provided on description. For people who use the classic Github Action to mark deployment as suggested by Jira. It's here: https://github.com/chrnorm/deployment-action/blob/880668c419e283adc6b1cc092d52eb5e558fec4d/action.yml#L24-L26 Related: - atlassian#1536 - atlassian#1732 - atlassian#1736
I open two pull requests with changes based on url and description. Open for discussions. |
As mentioned in [Github documentation](https://docs.github.com/en/rest/deployments/deployments#about-the-deployments-api): > Deployment statuses can also include an optional description and log_url, which are highly recommended because they make deployment statuses more useful. We want to avoid having duplicate information between "pipeline" and "deployments" and use the more rich informations provided on description. For people who use the classic Github Action to mark deployment as suggested by Jira. It's here: https://github.com/chrnorm/deployment-action/blob/880668c419e283adc6b1cc092d52eb5e558fec4d/action.yml#L24-L26 Related: - atlassian#1536 - atlassian#1732 - atlassian#1736
Some changes have been pushed. You can see them already in Jira. I added some feedbacks on the PR directly. #1732 (comment) |
I looked at that PR and I agree with you @benoittgt, that the last commit message is not useful and that |
Hey @benoittgt @fullstackzach thanks for contributing. I agree with your thoughts and would also prefer it. Let's see what @kaganatlassian2 is thinking :) |
Hi @benoittgt @fullstackzach , We've updated the displayName to the latest commit message since the GitHub Actions is also using a similar approach while displaying their Workflow runs, iteratively we're planning to put the workflow run number in case it exists. I can understand your point about using GitHub API but the thing is not all of our customers just use GitHub API for creating deployments there are also others who use GitHub Actions as well and for those, these values are always static and make no difference, and are indistinguishable at our end. |
For multi-environment deployments maybe what we can do is add a prefix that indicates the current environment information with the latest commit information. How's that sound? |
Hello @kaganatlassian2 :)
I think the Jira integration should be closer to Github Deploy+Deployment API rather than a Github Action not maintained by Github itself. For example I am thinking about using this name: Deploy
on: [push]
jobs:
deploy:
name: Deploy my app
runs-on: ubuntu-latest
permissions:
deployments: write
steps:
- uses: actions/checkout@v1
- uses: chrnorm/deployment-action@v2
name: Create GitHub deployment
id: deployment
with:
token: '${{ github.token }}'
task: 'deploy:${{ github.event.repository.name }}'
environment: us-production
description: '${{ github.event.head_commit.message }}' Result can be seen here: https://github.com/benoittgt/ga_deploy_test/actions/runs/3524913964/jobs/5910951556 It returns the last commit, but also a custom task name based on repository, and a custom env name. The custom task name will be displayed in Jira as a replacement for "deploy". Result from the API. l think this proposal should be looked at again : #1737 😄 |
For that we do one deployment per env. So we do not need something different. In rare case we add the env in the deploy task name (review app), but grouping them ins testing is good enough. :) |
As mentioned in [Github documentation](https://docs.github.com/en/rest/deployments/deployments#about-the-deployments-api): > Deployment statuses can also include an optional description and log_url, which are highly recommended because they make deployment statuses more useful. We want to avoid having duplicate information between "pipeline" and "deployments" and use the more rich informations provided on description. For people who use the classic Github Action to mark deployment as suggested by Jira. It's here: https://github.com/chrnorm/deployment-action/blob/880668c419e283adc6b1cc092d52eb5e558fec4d/action.yml#L24-L26 Related: - atlassian#1536 - atlassian#1732 - atlassian#1736
We are still looking for this feature. Our QA use a lot the deployment page and having correct links will help a lot. :) |
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.
Digging into the code here; I suspect this is where they are mapped.
deployment.task
I suspect resolves to the valuedeploy
fordisplayName
. But, I'm not too sure what to change in my github action, since it doesn't seem we specify that anywhere.The text was updated successfully, but these errors were encountered: