Skip to content
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

Modernize tools #6

Merged
merged 3 commits into from
Feb 4, 2022
Merged

Conversation

thomaslevesque
Copy link
Member

Use top-level statements in programs
Use implicit usings
Refactor GitHubClient extension methods into GitHubClient wrapper class
Remove a redundant PackageReference Remove element

Copy link
Member Author

@thomaslevesque thomaslevesque left a comment

Choose a reason for hiding this comment

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

In PrepareRelease, since we can't have extension methods in a file with top-level statements, I put them in a separate class.
But then it was ugly to have them access the repo name as a static field, so I refactored the class into a wrapper around GitHubClient.
If you preferred it as it was before, we don't have to use top-level statements, I can just revert the changes.

Directory.Build.props Show resolved Hide resolved
Directory.Build.props Show resolved Hide resolved
FakeItEasy.PrepareRelease/GitHubHelper.cs Show resolved Hide resolved
GitHubTokenSource.cs Show resolved Hide resolved
Copy link
Member

@blairconrad blairconrad left a comment

Choose a reason for hiding this comment

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

Thanks, @thomaslevesque. I'm happy with everything. A little confused about one comment, but if you're good, I'll merge.

FakeItEasy.PrepareRelease/GitHubHelper.cs Show resolved Hide resolved
@blairconrad blairconrad merged commit b9fab6d into FakeItEasy:master Feb 4, 2022
@blairconrad
Copy link
Member

Thanks, @thomaslevesque!

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.

2 participants