Skip to content

Templates for template authoring: first edition#5739

Merged
vlada-shubina merged 9 commits intodotnet:mainfrom
vlada-shubina:authoring-templates
Jan 18, 2023
Merged

Templates for template authoring: first edition#5739
vlada-shubina merged 9 commits intodotnet:mainfrom
vlada-shubina:authoring-templates

Conversation

@vlada-shubina
Copy link
Copy Markdown
Member

@vlada-shubina vlada-shubina commented Dec 7, 2022

Problem

fixes #2722

Solution

Adds the template package with templates for template authoring.

TODO:

  • post actions asking to fill TODOs
  • validation of the fields: short name, package ID

Checks:

  • Added unit tests - waits for Verify tests to be available
  • Added #nullable enable to all the modified files ? - N/A

@vlada-shubina vlada-shubina changed the title emplates for template authoring: first draft Templates for template authoring: first draft Dec 7, 2022
@JanKrivanek
Copy link
Copy Markdown
Member

Do we want to add template for host config file?

Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Great addition!! To mee it almost feel this should be part of sdk :-)

I'd just adjust the json template so that it's valid as is

@vlada-shubina vlada-shubina force-pushed the authoring-templates branch 2 times, most recently from a25b664 to bee7454 Compare December 16, 2022 15:16
@vlada-shubina vlada-shubina marked this pull request as ready for review December 20, 2022 15:46
@vlada-shubina vlada-shubina requested a review from a team as a code owner December 20, 2022 15:46
@vlada-shubina vlada-shubina changed the title Templates for template authoring: first draft Templates for template authoring: first edition Dec 20, 2022
Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Overal looks good!

I have couple minor comments - but those are just ideas

@vlada-shubina vlada-shubina merged commit 4827cbc into dotnet:main Jan 18, 2023
@vlada-shubina vlada-shubina deleted the authoring-templates branch January 18, 2023 11:17
@vlada-shubina
Copy link
Copy Markdown
Member Author

/backport to release/7.0.2xx

@github-actions
Copy link
Copy Markdown

Started backporting to release/7.0.2xx: https://github.com/dotnet/templating/actions/runs/3948338373

@github-actions
Copy link
Copy Markdown

@vlada-shubina backporting to release/7.0.2xx failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: templates for template authoring: first draft
Using index info to reconstruct a base tree...
M	Microsoft.TemplateEngine.sln
Falling back to patching base and 3-way merge...
Auto-merging Microsoft.TemplateEngine.sln
CONFLICT (content): Merge conflict in Microsoft.TemplateEngine.sln
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 templates for template authoring: first draft
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@github-actions
Copy link
Copy Markdown

@vlada-shubina an error occurred while backporting to release/7.0.2xx, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create templates for template authors

3 participants