-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[ui] Nicer comment styles in example jobs #19037
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! Pretty comments FTW! One very very very optional suggestion around heredoc delimiters.
data = <<EOF | ||
<h1>Hello, Nomad!</h1> | ||
<ul> | ||
<li>Task: {{env "NOMAD_TASK_NAME"}}</li> | ||
<li>Group: {{env "NOMAD_GROUP_NAME"}}</li> | ||
<li>Job: {{env "NOMAD_JOB_NAME"}}</li> | ||
<li>Metadata value for foo: {{env "NOMAD_META_foo"}}</li> | ||
<li>Currently running on port: {{env "NOMAD_PORT_www"}}</li> | ||
</ul> | ||
<h1>Hello, Nomad!</h1> | ||
<ul> | ||
<li>Task: {{env "NOMAD_TASK_NAME"}}</li> | ||
<li>Group: {{env "NOMAD_GROUP_NAME"}}</li> | ||
<li>Job: {{env "NOMAD_JOB_NAME"}}</li> | ||
<li>Metadata value for foo: {{env "NOMAD_META_foo"}}</li> | ||
<li>Currently running on port: {{env "NOMAD_PORT_www"}}</li> | ||
</ul> | ||
EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to retain the spec as written using <<-EOF
instead of <<EOF
Ember Test Audit comparison
|
b97030f
to
7c77edc
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Swaps out the
//
for#
comment prefixes in our job template strings (which eventually are expressed as HCL) for highlighting reasons, among others.Old:
![image](https://private-user-images.githubusercontent.com/713991/281535068-d20984e3-58db-4af4-82ef-0ad98d8b0e91.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lm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