Skip to content

Lesson 2#163

Closed
ewyuen wants to merge 4 commits into
github:mainfrom
ewyuen:add-list-by-year
Closed

Lesson 2#163
ewyuen wants to merge 4 commits into
github:mainfrom
ewyuen:add-list-by-year

Conversation

@ewyuen

@ewyuen ewyuen commented Jun 11, 2026

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 11, 2026 21:11
@ewyuen ewyuen closed this Jun 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Refactors the sample book app to centralize UI helpers in utils.py, adds basic input validation, and introduces RTK configuration/documentation to reduce token-heavy CLI output.

Changes:

  • Add validation loops for menu selection and book title input in utils.py.
  • Move show_books out of book_app.py into utils.py and update imports accordingly.
  • Add RTK hook/config files and instructions for using rtk-prefixed commands.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
samples/book-app-project/utils.py Adds input validation and consolidates book display logic into shared utils.
samples/book-app-project/book_app.py Imports show_books from utils after refactor to reduce duplication.
.rtk/filters.toml Adds project-local RTK filter configuration scaffold.
.github/hooks/rtk-rewrite.json Adds a hook to run rtk hook copilot before tool usage.
.github/copilot-instructions.md Documents RTK usage expectations for shell commands.

Comment on lines 10 to +15
def get_user_choice() -> str:
return input("Choose an option (1-5): ").strip()
while True:
choice = input("Choose an option (1-5): ").strip()
if choice in {"1", "2", "3", "4", "5"}:
return choice
print("Invalid choice. Please enter a number between 1 and 5.")
Comment on lines +83 to +87
git status rtk git status
git log -10 rtk git log -10
cargo test rtk cargo test
docker ps rtk docker ps
kubectl get pods rtk kubectl pods
Comment on lines +1 to +12
{
"hooks": {
"PreToolUse": [
{
"type": "command",
"command": "rtk hook copilot",
"cwd": ".",
"timeout": 5
}
]
}
}
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