Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add support for template version messages in api and cli#8336

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 13 commits intomainfrommafredri/feat-add-template-push-message
Jul 11, 2023

Conversation

mafredri
Copy link
Member

This commit adds support for template version messages on the backend
and for the CLI commandstemplate create andtemplate push.

Fixes the backend and CLI part of#3775

matifali reacted with heart emojimatifali reacted with rocket emoji
@mafredrimafredri changed the titlefeat(cli,coderd): add support for template version messagesfeat: add support for template version messages in api and cliJul 6, 2023
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mtojekmtojek left a comment
edited
Loading

Choose a reason for hiding this comment

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

Do we want to support multi-line commit messages?

EDIT:

Don't know where are going to present it, but we can consider also regex.

@@ -477,6 +477,7 @@ func TemplateVersion(t testing.TB, db database.Store, orig database.TemplateVers
CreatedAt: takeFirst(orig.CreatedAt, database.Now()),
UpdatedAt: takeFirst(orig.UpdatedAt, database.Now()),
Name: takeFirst(orig.Name, namesgenerator.GetRandomName(1)),
Message: orig.Message,
Copy link
Member

Choose a reason for hiding this comment

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

nit: what about testing? do we need a random message generated for unit tests or maybe benchmarks in the future?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

It's a valid concern, although I didn't do it because I'm sure how we'd set an empty message if we usetakeFirst here on a randomly generated one.

Copy link
Member

Choose a reason for hiding this comment

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

@mafredri the emptytakeFirst is such an annoying problem 😢

@mafredri
Copy link
MemberAuthor

Do we want to support multi-line commit messages?

Good observation! Yes, I'd say we do. And that means I should add detection for newlines when informing about message too long.

mtojek reacted with thumbs up emoji

@mafredrimafredriforce-pushed themafredri/feat-add-template-push-message branch from058504d to5bee51fCompareJuly 6, 2023 14:29
@mtojekmtojek self-requested a reviewJuly 11, 2023 07:31
Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

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

Awesome feature!

@mafredrimafredri merged commit75f62dc intomainJul 11, 2023
@mafredrimafredri deleted the mafredri/feat-add-template-push-message branchJuly 11, 2023 10:11
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 11, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@EmyrkEmyrkEmyrk left review comments

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@mtojekmtojekmtojek approved these changes

@bpmctbpmctAwaiting requested review from bpmct

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@mafredri@BrunoQuaresma@Emyrk@mtojek@bpmct

[8]ページ先頭

©2009-2025 Movatter.jp