Last active
April 27, 2024 04:48
-
-
Save 0xallie/926cabd1a47cd196704538be510bd03d to your computer and use it in GitHub Desktop.
Notifico-like formats for Limnoria's GitHub plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config plugins.GitHub.format.commit_comment "echo \"[\x0310$repository__name\x03]\" \x0307$comment__user__login\x03 commented on commit \x039$comment__commit_id__short\x03 \x0313$comment__html_url__tiny\x03" | |
config plugins.GitHub.format.create "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 created $ref_type \x0309$ref\x03" | |
config plugins.GitHub.format.delete "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 \x0304deleted\x03 $ref_type \x0309$ref\x03" | |
config plugins.GitHub.format.gollum "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 $__page__action wiki page \x0309$__page__title\x03 \x0313$__page__html_url__tiny\x03" | |
config plugins.GitHub.format.issue_comment "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 [cif [ceq [echo $action] created] \"echo commented\" \"echo $action a comment\"] on issue \x0309#$issue__number\x03: $issue__title \x0313$issue__html_url__tiny\x03" | |
config plugins.GitHub.format.issues "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 $action issue [concat [format join \" \" \"\x0309#$issue__number\x03\" [gh.issueassignee] [gh.issuelabel]] :] $issue__title \x0313$issue__html_url__tiny\x03" | |
config plugins.GitHub.format.pull_request "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 [cif [ceq [echo $action] synchronize] \"echo synchronized\" \"echo $action\"] pull request [concat [format join \" \" \"\x0309#$number\x03\" [gh.issueassignee] [gh.issuelabel]] :] $pull_request__title \x0313$pull_request__html_url__tiny\x03" | |
config plugins.GitHub.format.pull_request_review "echo \"[\x0310$repository__name\x03]\" \x0307$review__user__login\x03 reviewed pull request \x0309#$pull_request__number\x03: $pull_request__title \x0313$pull_request__html_url__tiny\x03" | |
config plugins.GitHub.format.pull_request_review_comment "" [utilities ignore THIS LINE IS IMPORTANT AS OLD INSTALLATIONS MAY HAVE THIS SET] | |
config plugins.GitHub.format.status "cif [ceq [echo $state] pending] \"utilities ignore\" \"echo \\\"[\x0310$repository__name\x03]\\\" [cif [ceq [echo $state] success] \\\"echo \x0309$description\x03\\\" \\\"echo \x0304$description\x03\\\"] - \x0313$target_url\x03\"" | |
config plugins.GitHub.format.before.push "cif [ceq [echo $after__short] 0000000] \"utilities ignore\" \"echo \\\"[\x0310$repository__name\x03]\\\" \x0307$sender__login\x03 [gh.pushinfo] [gh.numcommits] \x0309$ref__branch\x03 [format join \\\" \\\" [gh.fpushinfo] \\\"\x0313$compare__tiny\x03\\\"]\"" | |
config plugins.GitHub.format.push "echo \"[\x0310$repository__name\x03]\" [color 07 [gh.commitauthor]] \x0314$__commit__id__short\x03 $__commit__message__firstline" | |
config plugins.GitHub.format.push.hidden "echo \"[\x0310$repository__name\x03] ... and $__hidden_commits more commits ...\"" | |
load Aka | |
load Conditional | |
load Format | |
aka add gh.commitauthor "cif [ceq [echo $__commit__author__username] $__commit__author__username] \"echo $__commit__author__name\" \"echo $__commit__author__username\"" | |
aka add gh.fpushinfo "cif [cand [gh.isforcepush] [ceq [echo $__num_commits] 0]] \"echo \\\"from \x0314$before__short\x03 to \x0314$after__short\x03\\\"\" \"utilities ignore\"" | |
aka add gh.isforcepush "ceq [echo $forced$created] TrueFalse" | |
aka add gh.issueassignee "cif [ceq [echo $assignee__login] [echo $$assignee__login]] \"utilities ignore\" \"format join \\\" \\\" [cif [ceq [echo $action] unassigned] \\\"echo from\\\" \\\"echo to\\\"] \\\"\x0308$assignee__login\x03\\\"\"" | |
aka add gh.issuelabel "cif [ceq [echo $label__name] [echo $$label__name]] \"utilities ignore\" \"echo \\\"as \x0308$label__name\x03\\\"\"" | |
aka add gh.numcommits "cif [ceq [echo $__num_commits] 0] \"utilities ignore\" \"echo \x02$__num_commits\x02 [simpleplural [echo $__num_commits] commit] to\"" | |
aka add gh.pushinfo "cif [gh.isforcepush] \"echo \x0304force-pushed\x03\" \"echo pushed\"" | |
aka add simpleplural "plural $1 $2 $2s" | |
aka add plural "cif [ceq $1 1] \"echo $2\" \"echo $3\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment