[swift-dev] Automator service: "View Public Swift Commit"

Jordan Rose jordan_rose at apple.com
Wed May 18 13:13:08 CDT 2016


Hi, fellow Mac users. On GitHub, commit hashes are autolinked (within repositories, anyway), but that doesn't apply to mail clients, or, um, external bug tracking clients *cough*Radar*cough*. I've found myself wanting to jump quickly from a commit hash to the GitHub page for the commit (either to look at the diff, or to see if there are comments), so today I made an Automator workflow. It's just visiting "https://github.com/apple/swift/commit/${selected_text}", but that's good enough for me! (It's easy enough to edit for another repo, too.)

HOW TO USE
1. Download and open the workflow file. Allow Automator to install it as a Service.
2. Select a commit hash (even an abbreviated one). Here's one you can use for testing: 7154c6167baafc986f2d289aa96343fe5747bb11
3. Menu-click (right-click or control-click) and choose Services > View Public Swift Commit.

You can also set a keyboard shortcut by going to the Services section of the Shortcuts tab of the Keyboard preference pane.

Share and enjoy!
Jordan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: View Public Swift Commit.workflow.zip
Type: application/zip
Size: 4216 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160518/6c5da707/attachment.zip>


More information about the swift-dev mailing list