Skip to content

Conversation

fgheysels
Copy link
Contributor

The DotnetModifyJsonPostActionProcessor PostAction allows dotnet template authors to modify JSON (existing) JSON files when creating a new project.

@ghost
Copy link

ghost commented Jan 11, 2023

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@dnfadmin
Copy link

dnfadmin commented Jan 11, 2023

CLA assistant check
All CLA requirements met.

return node;
}

private static IReadOnlyList<string> FindFilesAtOrAbovePath(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could get rid of this code if we could have an overload of the FindFilesAtOrAbovePath method that exists in the FileFindHelpers class

Copy link
Member

Choose a reason for hiding this comment

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

Feel free to open a PR on the Template Engine to add an over load for the FindFilesAtAbovePath. We can keep this function here until the Template Engine PR is complete for the overloading function.

@maridematte maridematte changed the base branch from release/7.0.2xx to main January 12, 2023 23:20
@fgheysels fgheysels requested a review from a team as a code owner April 26, 2023 10:18
@YuliiaKovalova
Copy link
Member

Could you add post-action info to templating repo?
https://github.com/dotnet/templating/wiki/Post-Action-Registry

@YuliiaKovalova
Copy link
Member

looks good to me!

@fgheysels
Copy link
Contributor Author

Could you add post-action info to templating repo? https://github.com/dotnet/templating/wiki/Post-Action-Registry

So, that's a PR In another repository ?
Wil do!

Copy link
Member

@vlada-shubina vlada-shubina left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

Comment on lines 20 to 21
<PackageReference Include="Verify.XUnit" Version="19.8.0" />
<PackageReference Include="Verify.DiffPlex" Version="2.1.0" />
Copy link
Member

Choose a reason for hiding this comment

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

similarly to FakeItEasy, do not specify the versions here. They are managed by dependabot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I had to verify something with my employer. Done now.

@fgheysels
Copy link
Contributor Author

Could you add post-action info to templating repo? https://github.com/dotnet/templating/wiki/Post-Action-Registry

So, that's a PR In another repository ? Wil do!

I've cloned the wiki locally and added some documentation for the new postaction.
Afterwards, I wanted to push my branch, but got the message that I'm not allowed to push my branch to the remote. So, I created a fork and pushed the changes to my fork.
Now, I want to create a PR for the wiki changes, but GitHub is a bit confused as it says that there is nothing to compare (commit histories are entirely different) although it also shows the changes I've made in a diff window. Unfortunately, it doesn't allow me to create a PR:

image

So, any help here is appreciated :)

@YuliiaKovalova
Copy link
Member

Could you add post-action info to templating repo? https://github.com/dotnet/templating/wiki/Post-Action-Registry

So, that's a PR In another repository ? Wil do!

I've cloned the wiki locally and added some documentation for the new postaction. Afterwards, I wanted to push my branch, but got the message that I'm not allowed to push my branch to the remote. So, I created a fork and pushed the changes to my fork. Now, I want to create a PR for the wiki changes, but GitHub is a bit confused as it says that there is nothing to compare (commit histories are entirely different) although it also shows the changes I've made in a diff window. Unfortunately, it doesn't allow me to create a PR:

image

So, any help here is appreciated :)

You need to fork the repo , commit changes and create PR from the fork to dotnet/templating repo.

@fgheysels
Copy link
Contributor Author

Could you add post-action info to templating repo? https://github.com/dotnet/templating/wiki/Post-Action-Registry

So, that's a PR In another repository ? Wil do!

I've cloned the wiki locally and added some documentation for the new postaction. Afterwards, I wanted to push my branch, but got the message that I'm not allowed to push my branch to the remote. So, I created a fork and pushed the changes to my fork. Now, I want to create a PR for the wiki changes, but GitHub is a bit confused as it says that there is nothing to compare (commit histories are entirely different) although it also shows the changes I've made in a diff window. Unfortunately, it doesn't allow me to create a PR:
image
So, any help here is appreciated :)

You need to fork the repo , commit changes and create PR from the fork to dotnet/templating repo.

I've done that. However, when you fork a repo, the wiki is not forked with it.
So, I've followed these steps. I've now the original wiki in my fork, and updated the docs in my fork.

However, I cannot create a PR as the changes to the wiki are not taken into account when creating a PR. The wiki is a separate repository, so that makes sense. There doesn't seem to be an option to create a PR for the wiki repo.

@fgheysels
Copy link
Contributor Author

@dotnet-policy-service agree

@YuliiaKovalova YuliiaKovalova merged commit cf7aa07 into dotnet:main May 4, 2023
@YuliiaKovalova
Copy link
Member

Could you add post-action info to templating repo? https://github.com/dotnet/templating/wiki/Post-Action-Registry

So, that's a PR In another repository ? Wil do!

I've cloned the wiki locally and added some documentation for the new postaction. Afterwards, I wanted to push my branch, but got the message that I'm not allowed to push my branch to the remote. So, I created a fork and pushed the changes to my fork. Now, I want to create a PR for the wiki changes, but GitHub is a bit confused as it says that there is nothing to compare (commit histories are entirely different) although it also shows the changes I've made in a diff window. Unfortunately, it doesn't allow me to create a PR:
image
So, any help here is appreciated :)

You need to fork the repo , commit changes and create PR from the fork to dotnet/templating repo.

I've done that. However, when you fork a repo, the wiki is not forked with it. So, I've followed these steps. I've now the original wiki in my fork, and updated the docs in my fork.

However, I cannot create a PR as the changes to the wiki are not taken into account when creating a PR. The wiki is a separate repository, so that makes sense. There doesn't seem to be an option to create a PR for the wiki repo.

Please point me to the changes in your fork and I will transfer them to our repo.
Thank you for the contribution!

@fgheysels
Copy link
Contributor Author

Could you add post-action info to templating repo? https://github.com/dotnet/templating/wiki/Post-Action-Registry

So, that's a PR In another repository ? Wil do!

I've cloned the wiki locally and added some documentation for the new postaction. Afterwards, I wanted to push my branch, but got the message that I'm not allowed to push my branch to the remote. So, I created a fork and pushed the changes to my fork. Now, I want to create a PR for the wiki changes, but GitHub is a bit confused as it says that there is nothing to compare (commit histories are entirely different) although it also shows the changes I've made in a diff window. Unfortunately, it doesn't allow me to create a PR:
image
So, any help here is appreciated :)

You need to fork the repo , commit changes and create PR from the fork to dotnet/templating repo.

I've done that. However, when you fork a repo, the wiki is not forked with it. So, I've followed these steps. I've now the original wiki in my fork, and updated the docs in my fork.
However, I cannot create a PR as the changes to the wiki are not taken into account when creating a PR. The wiki is a separate repository, so that makes sense. There doesn't seem to be an option to create a PR for the wiki repo.

Please point me to the changes in your fork and I will transfer them to our repo. Thank you for the contribution!

Looks like you also cannot find the commit on the wiki repo.
Anyway, this is the end result of my changes:
https://github.com/fgheysels/templating/wiki/Post-Action-Registry

@fgheysels fgheysels deleted the frgh/feat/5831_json_postaction branch May 5, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-dotnet new the item is related to dotnet new command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants