Skip to content

feat: allow bumping workspace deadline #1828

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

Merged
merged 14 commits into from
May 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! cli/ssh: notify relative time instead
  • Loading branch information
johnstcn committed May 27, 2022
commit c31b9ddb415fba10eb50f05541664623fffae5b4
5 changes: 1 addition & 4 deletions cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,7 @@ func notifyCondition(ctx context.Context, client *codersdk.Client, workspaceID u
if ttl > time.Minute {
title = fmt.Sprintf(`Workspace %s stopping soon`, ws.Name)
body = fmt.Sprintf(
`Your Coder workspace %s is scheduled to stop in %s`,
ws.Name,
deadline.Sub(now),
)
`Your Coder workspace %s is scheduled to stop in %s`, ws.Name, ttl)
} else {
title = fmt.Sprintf("Workspace %s stopping!", ws.Name)
body = fmt.Sprintf("Your Coder workspace %s is stopping any time now!", ws.Name)
Expand Down