-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setting up a new Github Action Application for AI Support #3
Conversation
Pull Request: Enhancements and Refactoring for GitHub Actions Workflow with AI SupportOverviewThis pull request introduces multiple updates and enhancements to the GitHub Actions workflow configuration file Updates and EnhancementsWorkflow Configuration
Action Input Parameters
Dependency Updates
Code Enhancements
RecommendationsCorrect Naming Conventions
Added Documentation and Clarity
Error Handling and Unit Testing
TypeScript Improvements
ConclusionThe proposed updates enhance the workflow for the AI support application via GitHub Actions. Addressing the minor errors, enhancing clarity, and adding robust error handling and documentation will help solidify the setup and ensure smooth execution. Overall, these changes represent a significant step towards an improved and flexible GitHub Action for AI support. |
openai_model: 'gpt-4' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
openai_api_key: ${{ secrets.OPEN_AI_KEY }} | ||
openai_model: "gpt-4o" | ||
review_code: true |
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.
There appears to be a typo here. The input key should be excluded_files
instead of expluded_files
.
openai_model: 'gpt-4' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
openai_api_key: ${{ secrets.OPEN_AI_KEY }} | ||
openai_model: "gpt-4o" |
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.
@DarrellRichards make this configurable but defaulted to this model
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.
Already completed (:
Summary of Changes
Workflow Updates
setup-node@v2
tosetup-node@v4
.18
.npm install
) and build the code (npm run build
).Input Modifications
github_token
,openai_api_key
, andopenai_model
values.excluded_files
input to exclude files such asnode_modules, package.json, package-lock.json
.github-token
togithub_token
for naming consistency.pr-number
input and addedexcluded_files
input with a default ofnode_modules, package-lock.json, yarn.lock
.New Inputs
action.yml
:generate_summary
: Generates a Pull Request summary based on git diff and code changes. Defaults tofalse
.overall_code_review
: Allows for an overall code review to be made as a comment. Defaults tofalse
.Dependency Updates
package-lock.json
:@tandil/diffparse
.@octokit/types
andparse-diff
.Code Modifications
package-lock.json
Modifications:@tandil/diffparse
version0.2.0
.parse-diff
version0.11.1
.index.ts
Updates:parse-diff
.validatePullRequest
), code (validateCode
), and overall code reviews (validateOverallCodeReview
).opened
andsynchronize
and call appropriate validation functions.New Service Files
src/services/ai.ts
:createMessage
,prSummaryCreation
,obtainFeedback
,summaryOfAllFeedback
,summaryAllMessages
,validateCodeViaAI
.src/services/github.ts
:@octokit/rest
library.