diff --git a/.gitignore b/.gitignore index 088c6d5..f402284 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ target/ *.stats* .vscode config.json -event_config.json \ No newline at end of file +event_config.json +!tests/event_config.json \ No newline at end of file diff --git a/tests/event_config.json b/tests/event_config.json new file mode 100644 index 0000000..2b687d1 --- /dev/null +++ b/tests/event_config.json @@ -0,0 +1,56 @@ +{ + "github_released": + { + "hmac": "this_is_secret_number_one", + "templates": + [ + { + "check_value_path": "", + "check_value": "", + "body": "New release!" + } + ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + }, + "github_starred": + { + "hmac": "this_is_secret_number_one", + "templates": + [ + { + "check_value_path": "action", + "check_value": "created", + "body": " just got a new star! That makes " + }, + { + "check_value_path": "action", + "check_value": "deleted", + "body": " just lost a star :cry: That makes " + } + ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + }, + "github_pushed": + { + "hmac": "this_is_secret_number_one", + "templates": [ ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + }, + "github_ping": + { + "hmac": "this_is_secret_number_one", + "templates": + [ + { + "check_value_path": "", + "check_value": "", + "body": "Ping!" + } + ], + "end_point": { "addr": "" }, + "dont_message_on_private_repos": true + } +} \ No newline at end of file