GitHub URL Display for Notes | Generated by AI

Home 2026.05

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:

  1. /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 .md file.

  2. /Users/lzwjava/projects/ww/ww/note/screenshot_log.py - Added import subprocess, _get_github_repo_url(), and _print_note_url(file_path). After creating the note, it prints the GitHub URL.

  3. /Users/lzwjava/projects/ww/ww/image/interact_note.py - Imported _print_note_url from screenshot_log and calls it after creating the note.

  4. /Users/lzwjava/projects/ww/ww/note/note_workflow.py - Changed the final [info] Note created at message 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

Back Donate