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

fix!: enforce regex for agent names#16641

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
deansheather merged 2 commits intomainfromdean/agent-name-regex
Feb 20, 2025
Merged

Conversation

deansheather
Copy link
Member

@deansheatherdeansheather commentedFeb 20, 2025
edited by ethanndickson
Loading

Underscores and trailing, leading and double hyphens are now blocked. The regex is almost the exact same as thecoder_appslug regex, but uppercase characters are still permitted.

Underscores and double hyphens are now blocked. The regex is almost theexact same as the `coder_app` `slug` regex, but uppercase characters arestill permitted.
@deansheatherdeansheather added the release/breakingThis label is applied to PRs to detect breaking changes as part of the release process labelFeb 20, 2025
@deansheatherdeansheather self-assigned thisFeb 20, 2025
Copy link
Member

@ethanndicksonethanndickson 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.

lgtm after a lint!
I like that we have a clear error message on what changed.

Comment on lines +219 to +221
iftfResource.Name=="" {
returnnil,xerrors.Errorf("agent name cannot be empty")
}

Choose a reason for hiding this comment

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

This is technically already checked for us by Terraform, but I think it's fine to check again?

Copy link
Member

@ethanndicksonethanndicksonFeb 20, 2025
edited
Loading

Choose a reason for hiding this comment

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

I guess in case we ever change how we extract the name it's good to have

deansheather reacted with thumbs up emoji
@deansheatherdeansheatherenabled auto-merge (squash)February 20, 2025 04:56
@deansheatherdeansheather merged commit9469b78 intomainFeb 20, 2025
33 checks passed
@deansheatherdeansheather deleted the dean/agent-name-regex branchFebruary 20, 2025 05:09
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 20, 2025
@matifali
Copy link
Member

@ethanndickson@stirby, we need to call this out in the changelog.

@ethanndickson
Copy link
Member

Yep, this and#16614 are both annotated with the breaking tag

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@ethanndicksonethanndicksonethanndickson approved these changes

@hugodutkahugodutkaAwaiting requested review from hugodutka

Assignees

@deansheatherdeansheather

Labels

release/breakingThis label is applied to PRs to detect breaking changes as part of the release process

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@deansheather@matifali@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp