Repository navigation
[#180] ✨ - Improve AI PR descriptions - #191
Merged
Merged
Conversation
…_pull_request_description_use_case to emphasize code changes in summaries
…current configurations in Execution class
…ub.com/landamessenger/git-board-flow into feature/180-improve-ai-pr-descriptions
|
To view this pull requests documentation preview, visit the following URL: docs.page/landamessenger/git-board-flow~191 Documentation is deployed and generated using docs.page. |
1 task done
Contributor
✨ Feature Actions
🚀 Happy coding! |
…estSizeUseCase: remove unnecessary check for undefined parent branch
…ub.com/landamessenger/git-board-flow into feature/180-improve-ai-pr-descriptions
Contributor
Contributor
…estSizeUseCase: Update logging and parameter usage to reflect pull request context
…ub.com/landamessenger/git-board-flow into feature/180-improve-ai-pr-descriptions
Contributor
Contributor
…n context in IssueContentInterface
…ub.com/landamessenger/git-board-flow into feature/180-improve-ai-pr-descriptions
Contributor
Contributor
…g to include code highlighting in summary generation
…ub.com/landamessenger/git-board-flow into feature/180-improve-ai-pr-descriptions
Contributor
Contributor
Contributor
✨ Feature Actions
🚀 Happy coding! |
1 task done
Closed
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





#180
What does this PR do?
This pull request enhances the user interface of pull request descriptions by highlighting code changes and emphasizing variable names, classes, or referenced code. It aims to improve PR usability. The current limitation is that code highlighting is not supported in PR descriptions. The expected impact is a more user-friendly experience for team members reviewing PRs. No alternatives were considered.
What files were changed?
dist/index.js:-47517,6 +47517,9IssueContentInterfaceclass was modified to include a new conditionelse if (execution.isPush)which assigns thenumbervariable toexecution.issueNumber. This change was made in thedist/index.jsfile, with a total of 12 lines added and 8 lines removed.@@ class IssueContentInterface extends content_interface_1.ContentInterface { else if (execution.isPullRequest) { number = execution.pullRequest.number; } + else if (execution.isPush) { + number = execution.issueNumber; + } else { return undefined; }console.logstatement to log the previous configuration in a readable format:This change will now print out the previous configuration in a structured manner for debugging or informational purposes.
These changes were made to improve the functionality of the code in this section.
src/data/manager/description/base/issue_content_interface.ts:Added the code snippet that checks for
execution.isPushand sets thenumbervariable toexecution.issueNumberin theIssueContentInterfaceclass.src/data/model/execution.ts:src/data/usecase/steps/check_changes_issue_size_use_case.ts:src/data/usecase/steps/check_changes_pull_request_size_use_case.ts:param.issueNumbertoparam.pullRequest.numberforsetLabelsmethod inissueRepositoryclass.Updated console log message to mention pull request number instead of issue number.
Changed message from mentioning issue resizing to pull request resizing for the success step.
src/data/usecase/steps/update_pull_request_description_use_case.ts: