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

Fix: Alerts for Deploy task shows Build Task ID instead of Build Version #2047

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

prakx87
Copy link

@prakx87 prakx87 commented May 23, 2024

Added condition to get incoming version for Deploy task:

Build:
image

Alert for Deploy task showing Build Version:
image

@@ -364,8 +364,8 @@ func (t *TaskRunner) alertInfos() (string, string) {

if t.Task.Version != nil {
version = *t.Task.Version
} else if t.Task.BuildTaskID != nil {
version = "build " + strconv.Itoa(*t.Task.BuildTaskID)
} else if t.Task.GetIncomingVersion(t.pool.store) != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

GetIncomingVersion do database request. Let's call once this method.

Copy link
Author

Choose a reason for hiding this comment

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

will make necessary change

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

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

Successfully merging this pull request may close these issues.

None yet

3 participants