GitHub URL Display for Notes | Generated by AI
All imports pass. The remote URL detection will convert git@github.com:lzwjava/blog-source.git to https://github.com/lzwjava/blog-source, which is the correct behavior.
Here’s a summary of all changes made across 4 files:
-
/Users/lzwjava/projects/ww/ww/github/gitmessageai.py- Added_get_github_repo_url(git)and_print_note_urls(git, file_changes)helpers. After push, if the type is “file” and there are file_changes, it prints[info] Note created at <github_url>for each added.mdfile. -
/Users/lzwjava/projects/ww/ww/note/screenshot_log.py- Addedimport subprocess,_get_github_repo_url(), and_print_note_url(file_path). After creating the note, it prints the GitHub URL. -
/Users/lzwjava/projects/ww/ww/image/interact_note.py- Imported_print_note_urlfrom screenshot_log and calls it after creating the note. -
/Users/lzwjava/projects/ww/ww/note/note_workflow.py- Changed the final[info] Note created atmessage to show the GitHub URL instead of the local file path (falling back to local path on error).
Now all note creation paths (ww note, ww screenshot note, ww screenshot interact-note) and the git push path (ww git gpa) will output the GitHub URL in this format:
[info] Note created at https://github.com/lzwjava/blog-source/blob/main/notes/2026-05-18-amd-digitalocean-cloud-partnership-en.md