Skip to content

Instantly share code, notes, and snippets.

@jlu5
Last active April 7, 2018 23:52
Show Gist options
  • Select an option

  • Save jlu5/6cd74307002a097119a5aa85a38f4dce to your computer and use it in GitHub Desktop.

Select an option

Save jlu5/6cd74307002a097119a5aa85a38f4dce to your computer and use it in GitHub Desktop.

Revisions

  1. jlu5 revised this gist Apr 7, 2018. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion supy-gh-formats.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,11 @@
    config plugins.github.format.before.push "cif [ceq [echo $__num_commits] 0] ignore \"echo \\\"[2$repository__owner__name/$repository__name] 07$pusher__name pushed $__num_commits commit(s) to $ref__branch:\\\" [urlify $compare]\""

    prefer username:
    config plugins.github.format.push "echo \"[2$repository__owner__name/$repository__name]07\" [cif [ceq [echo $__commit__author__username] $__commit__author__username] \"echo \\\"$__commit__author__name\\\"\" \"echo \\\"$__commit__author__username\\\"\"] \"[$__commit__id__short] $__commit__message__firstline\""

    use realname:
    Working on it...

    config plugins.github.format.commit_comment "echo \"[2$repository__owner__login/$repository__name] 07$comment__user__login commented on commit $comment__commit_id__short\" [urlify $comment__html_url__tiny]"

    config plugins.github.format.issue_comment "echo \"[2$repository__owner__login/$repository__name] 07$sender__login commented on issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"
    @@ -12,7 +16,7 @@ config plugins.github.format.pull_request "echo \"[2$repository__owner__login/$

    config plugins.github.format.pull_request_review "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action a pull request review for #$pull_request__number: $pull_request__title\" [urlify $pull_request__html_url__tiny]"

    config plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name] 07$release__author__login $action $release__tag_name as $release__target_commitish\" [urlify $release__html_url__tiny]"
    config plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name]\" 07$release__author__login $action release $release__tag_name" [urlify $release__html_url__tiny]

    config plugins.github.format.create "echo \"[2$repository__owner__login/$repository__name] 07$sender__login created $ref_type $ref\""

  2. jlu5 revised this gist Apr 7, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion supy-gh-formats.txt
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ config plugins.github.format.pull_request "echo \"[2$repository__owner__login/$

    config plugins.github.format.pull_request_review "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action a pull request review for #$pull_request__number: $pull_request__title\" [urlify $pull_request__html_url__tiny]"

    config plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name] 07$author__login $action $release__tag_name as $release__target_commitish\" [urlify $release__html_url__tiny]"
    config plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name] 07$release__author__login $action $release__tag_name as $release__target_commitish\" [urlify $release__html_url__tiny]"

    config plugins.github.format.create "echo \"[2$repository__owner__login/$repository__name] 07$sender__login created $ref_type $ref\""

  3. jlu5 revised this gist Jun 24, 2017. No changes.
  4. James Lu renamed this gist Mar 4, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. James Lu revised this gist Mar 4, 2017. 1 changed file with 15 additions and 16 deletions.
    31 changes: 15 additions & 16 deletions supy-gh-format.txt
    Original file line number Diff line number Diff line change
    @@ -1,30 +1,29 @@
    `cf plugins.github.format.before.push "cif [ceq [echo $__num_commits] 0] ignore \"echo \\\"[2$repository__owner__name/$repository__name] 07$pusher__name pushed $__num_commits commit(s) to $ref__branch:\\\" [urlify $compare]\""
    config plugins.github.format.before.push "cif [ceq [echo $__num_commits] 0] ignore \"echo \\\"[2$repository__owner__name/$repository__name] 07$pusher__name pushed $__num_commits commit(s) to $ref__branch:\\\" [urlify $compare]\""

    `cf plugins.github.format.push "echo \"[2$repository__owner__name/$repository__name]07\" [cif [ceq [echo $__commit__author__username] $__commit__author__username] \"echo \\\"$__commit__author__name\\\"\" \"echo \\\"$__commit__author__username\\\"\"] \"[$__commit__id__short] $__commit__message__firstline\""
    config plugins.github.format.push "echo \"[2$repository__owner__name/$repository__name]07\" [cif [ceq [echo $__commit__author__username] $__commit__author__username] \"echo \\\"$__commit__author__name\\\"\" \"echo \\\"$__commit__author__username\\\"\"] \"[$__commit__id__short] $__commit__message__firstline\""

    `cf plugins.github.format.commit_comment "echo \"[2$repository__owner__login/$repository__name] 07$comment__user__login commented on commit $comment__commit_id__short\" [urlify $comment__html_url__tiny]"
    config plugins.github.format.commit_comment "echo \"[2$repository__owner__login/$repository__name] 07$comment__user__login commented on commit $comment__commit_id__short\" [urlify $comment__html_url__tiny]"

    `cf plugins.github.format.issue_comment "echo \"[2$repository__owner__login/$repository__name] 07$sender__login commented on issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"
    config plugins.github.format.issue_comment "echo \"[2$repository__owner__login/$repository__name] 07$sender__login commented on issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"

    `cf plugins.github.format.issues "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"
    config plugins.github.format.issues "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"

    `cf plugins.github.format.pull_request "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action pull request #$number (to $pull_request__base__ref): $pull_request__title\" [urlify $pull_request__html_url__tiny]"
    config plugins.github.format.pull_request "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action pull request #$number (to $pull_request__base__ref): $pull_request__title\" [urlify $pull_request__html_url__tiny]"

    `cf plugins.github.format.pull_request_review "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action a pull request review for #$pull_request__number: $pull_request__title\" [urlify $pull_request__html_url__tiny]"
    config plugins.github.format.pull_request_review "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action a pull request review for #$pull_request__number: $pull_request__title\" [urlify $pull_request__html_url__tiny]"

    `cf plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name] 07$author__login $action $release__tag_name as $release__target_commitish\" [urlify $release__html_url__tiny]"
    config plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name] 07$author__login $action $release__tag_name as $release__target_commitish\" [urlify $release__html_url__tiny]"

    `cf plugins.github.format.create "echo \"[2$repository__owner__login/$repository__name] 07$sender__login created $ref_type $ref\""
    config plugins.github.format.create "echo \"[2$repository__owner__login/$repository__name] 07$sender__login created $ref_type $ref\""

    `cf plugins.github.format.delete "echo \"[2$repository__owner__login/$repository__name] 07$sender__login deleted $ref_type $ref\""
    config plugins.github.format.delete "echo \"[2$repository__owner__login/$repository__name] 07$sender__login deleted $ref_type $ref\""

    `cf plugins.github.format.status "cif [ceq [echo $state] pending] ignore \"echo [2$repository__owner__login/$repository__name] Status for commit $commit__commit__message__firstline: $description\""
    config plugins.github.format.status "cif [ceq [echo $state] pending] ignore \"echo [2$repository__owner__login/$repository__name] Status for commit $commit__commit__message__firstline: $description\""

    `cf plugins.github.format.watch "echo \"[2$repository__owner__login/$repository__name] 07$sender__login starred the repository\""
    config plugins.github.format.watch "echo \"[2$repository__owner__login/$repository__name] 07$sender__login starred the repository\""

    `cf plugins.github.format.fork "echo \"[2$repository__owner__login/$repository__name] 07$sender__login forked the repository to $forkee__full_name\""
    config plugins.github.format.fork "echo \"[2$repository__owner__login/$repository__name] 07$sender__login forked the repository to $forkee__full_name\""

    config plugins.github.format.status "cif [ceq [echo $state] pending] ignore \"traviscolor [echo \\\"[2$repository__owner__login/$repository__name]\\\" Status for commit $sha__short: $description [urlify $target_url]]\""

    `cf plugins.github.format.status "cif [ceq [echo $state] pending] ignore \"traviscolor [echo \\\"[2$repository__owner__login/$repository__name]\\\" Status for commit $sha__short: $description [urlify $target_url]]\""

    `cf plugins.github.format.repository "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action this repository\""
    config plugins.github.format.repository "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action this repository\""
  6. James Lu created this gist Mar 4, 2017.
    30 changes: 30 additions & 0 deletions supy-gh-format.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    `cf plugins.github.format.before.push "cif [ceq [echo $__num_commits] 0] ignore \"echo \\\"[2$repository__owner__name/$repository__name] 07$pusher__name pushed $__num_commits commit(s) to $ref__branch:\\\" [urlify $compare]\""

    `cf plugins.github.format.push "echo \"[2$repository__owner__name/$repository__name]07\" [cif [ceq [echo $__commit__author__username] $__commit__author__username] \"echo \\\"$__commit__author__name\\\"\" \"echo \\\"$__commit__author__username\\\"\"] \"[$__commit__id__short] $__commit__message__firstline\""

    `cf plugins.github.format.commit_comment "echo \"[2$repository__owner__login/$repository__name] 07$comment__user__login commented on commit $comment__commit_id__short\" [urlify $comment__html_url__tiny]"

    `cf plugins.github.format.issue_comment "echo \"[2$repository__owner__login/$repository__name] 07$sender__login commented on issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"

    `cf plugins.github.format.issues "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action issue #$issue__number: $issue__title\" [urlify $issue__html_url__tiny]"

    `cf plugins.github.format.pull_request "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action pull request #$number (to $pull_request__base__ref): $pull_request__title\" [urlify $pull_request__html_url__tiny]"

    `cf plugins.github.format.pull_request_review "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action a pull request review for #$pull_request__number: $pull_request__title\" [urlify $pull_request__html_url__tiny]"

    `cf plugins.github.format.release "echo \"[2$repository__owner__login/$repository__name] 07$author__login $action $release__tag_name as $release__target_commitish\" [urlify $release__html_url__tiny]"

    `cf plugins.github.format.create "echo \"[2$repository__owner__login/$repository__name] 07$sender__login created $ref_type $ref\""

    `cf plugins.github.format.delete "echo \"[2$repository__owner__login/$repository__name] 07$sender__login deleted $ref_type $ref\""

    `cf plugins.github.format.status "cif [ceq [echo $state] pending] ignore \"echo [2$repository__owner__login/$repository__name] Status for commit $commit__commit__message__firstline: $description\""

    `cf plugins.github.format.watch "echo \"[2$repository__owner__login/$repository__name] 07$sender__login starred the repository\""

    `cf plugins.github.format.fork "echo \"[2$repository__owner__login/$repository__name] 07$sender__login forked the repository to $forkee__full_name\""


    `cf plugins.github.format.status "cif [ceq [echo $state] pending] ignore \"traviscolor [echo \\\"[2$repository__owner__login/$repository__name]\\\" Status for commit $sha__short: $description [urlify $target_url]]\""

    `cf plugins.github.format.repository "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action this repository\""