mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
Merge pull request #305 from strangeman/activity-log
Add more verbosity about tasks to the Events description
This commit is contained in:
commit
8e8e7b58d9
@ -47,7 +47,7 @@ func (t *task) run() {
|
||||
t.updateStatus()
|
||||
|
||||
objType := "task"
|
||||
desc := "Task ID " + strconv.Itoa(t.task.ID) + " finished"
|
||||
desc := "Task ID " + strconv.Itoa(t.task.ID) + " (" + t.template.Alias + ")" + " finished - " + strings.ToUpper(t.task.Status)
|
||||
if err := (models.Event{
|
||||
ProjectID: &t.projectID,
|
||||
ObjectType: &objType,
|
||||
@ -75,7 +75,7 @@ func (t *task) run() {
|
||||
}
|
||||
|
||||
objType := "task"
|
||||
desc := "Task ID " + strconv.Itoa(t.task.ID) + " is running"
|
||||
desc := "Task ID " + strconv.Itoa(t.task.ID) + " (" + t.template.Alias + ")" + " is running"
|
||||
if err := (models.Event{
|
||||
ProjectID: &t.projectID,
|
||||
ObjectType: &objType,
|
||||
|
Loading…
Reference in New Issue
Block a user