Skip to content

Instantly share code, notes, and snippets.

@jlu5
Last active April 7, 2018 23:52
Show Gist options
  • Save jlu5/6cd74307002a097119a5aa85a38f4dce to your computer and use it in GitHub Desktop.
Save jlu5/6cd74307002a097119a5aa85a38f4dce to your computer and use it in GitHub Desktop.
Custom configuration for the Limnoria GitHub plugin (https://github.com/ProgVal/Supybot-plugins/tree/master/GitHub)
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]"
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]"
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]"
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 $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\""
config plugins.github.format.delete "echo \"[2$repository__owner__login/$repository__name] 07$sender__login deleted $ref_type $ref\""
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\""
config plugins.github.format.watch "echo \"[2$repository__owner__login/$repository__name] 07$sender__login starred the repository\""
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]]\""
config plugins.github.format.repository "echo \"[2$repository__owner__login/$repository__name] 07$sender__login $action this repository\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment