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

Improve code consistency, CancellationToken support, and add skonsole.sln solution file #22

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

lemillermicrosoft
Copy link
Owner

@lemillermicrosoft lemillermicrosoft commented Sep 22, 2023

Fixes #12

Summary

This pull request includes changes to improve code consistency by updating variable names, adding CancellationToken support to various methods, and introducing a new solution file, skonsole.sln, to the project. The addition of this file will help improve the organization and structure of the project.

Changes

  • Add CA2016 diagnostic rule to .editorconfig for forwarding CancellationToken parameters
  • Update variable names in PromptChatCommand.cs for better consistency
  • Change file constant name in ConfigurationProvider.cs and use System.IO.File for file operations
  • Add CancellationToken support to EmailSkill.cs methods
  • Add CancellationToken support to GitDiffStaged method in GitSkill.cs
  • Update variable names in WriterSkill.cs for better consistency
  • Add CancellationToken support to CondenseSkill.cs methods
  • Add CancellationToken support to GenerateCommitMessage, GeneratePR_Rolling, and GeneratePR methods in PRSkill
  • Update Condense method call in CondenseSkill to include cancellationToken
  • Replace condenseSkill field with _condenseSkill for consistency with other fields in PRSkill
  • Created a new solution file skonsole.sln
  • Set the file mode to 100644
  • Added GlobalSection and EndGlobal to the solution file

Powered by Microsoft Semantic Kernel

This commit updates the usage of CancellationToken in various methods across the project, improving the overall performance and responsiveness of the application. The CancellationToken parameter has been added to methods that take one, ensuring that tasks can be canceled more efficiently when needed. Additionally, this commit fixes the async invocation of `prGeneratorCapture` by properly passing the `cancellationToken` parameter. It also updates the variable name from `condenseSkill` to `_condenseSkill` for consistency with the codebase.
- Update constant variable names to follow naming conventions
- Replace `File` with `System.IO.File` to avoid conflicts
- Rename `funnyPoemFunction` to `_funnyPoemFunction` for consistency
@lemillermicrosoft
Copy link
Owner Author

/sk generate-pr-description

@github-actions github-actions bot changed the title 921 12 921 12 Improve code consistency, CancellationToken support, and add skonsole.sln solution file Sep 22, 2023
@github-actions
Copy link

Generate PR Description: succeeded ✅
https://github.com/lemillermicrosoft/skonsole/actions/runs/6270067883

@lemillermicrosoft lemillermicrosoft marked this pull request as ready for review September 22, 2023 04:24
@lemillermicrosoft lemillermicrosoft changed the title 921 12 Improve code consistency, CancellationToken support, and add skonsole.sln solution file Improve code consistency, CancellationToken support, and add skonsole.sln solution file Sep 22, 2023
@lemillermicrosoft lemillermicrosoft merged commit ad2455f into main Sep 22, 2023
3 checks passed
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.

Better support for cancellation tokens
1 participant