Automator service: "View Public Swift Commit"


(Jordan Rose) #1

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

View Public Swift Commit.workflow.zip (4.12 KB)


(John McCall) #2

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.

Excellent, thanks!

John.

···

On May 18, 2016, at 11:13 AM, Jordan Rose via swift-dev <swift-dev@swift.org> wrote:

Share and enjoy!
Jordan

<View Public Swift Commit.workflow>_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.swift.org_mailman_listinfo_swift-2Ddev&d=CwIGaQ&c=Hw-EJUFt2_D9PK5csBJ29kRV40HqSDXWTLPyZ6W8u84&r=jdKdk6kiOdZSD0VUWdyZTiL-6Po2RTBOJ0m-YH0T2Ow&m=jYoEiO7KUliJzLBOET27nlHXifbRbeyrMPwWFntAo3A&s=YXWz376SX2obazm8eIdE2s8YCPcFSrOa7obZdTjZleE&e=


(Douglas Gregor) #3

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.

Very cool, thanks!

  - Doug

···

On May 18, 2016, at 11:13 AM, Jordan Rose via swift-dev <swift-dev@swift.org> wrote:

Share and enjoy!
Jordan

<View Public Swift Commit.workflow>_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.swift.org_mailman_listinfo_swift-2Ddev&d=CwIGaQ&c=Hw-EJUFt2_D9PK5csBJ29kRV40HqSDXWTLPyZ6W8u84&r=BP-9ATpGWBBjdQuRXZ9fxsddMorDffk9RedIL9o8qBk&m=uA2bJWuJrjpR7GhD50HknQ5LbBHO_byP6pMD4oMMUmU&s=aZLo9maTOaIhtfd8OV4xqP8PONqFm_DB-_3nKMw-eAA&e=