aboutsummaryrefslogtreecommitdiffstats
path: root/src/Plugin/GitHubCommit.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin/GitHubCommit.hs')
-rw-r--r--src/Plugin/GitHubCommit.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Plugin/GitHubCommit.hs b/src/Plugin/GitHubCommit.hs
new file mode 100644
index 0000000..24c4831
--- /dev/null
+++ b/src/Plugin/GitHubCommit.hs
@@ -0,0 +1,13 @@
+module Plugin.GitHubCommit
+ ( gitHubCommit
+ ) where
+
+import Plugin.Base
+
+gitHubCommit = Plugin
+ { matchRegex = "^[0-9a-f]{40}$"
+ , perform = gitHubCommitAction
+ }
+
+gitHubCommitAction :: PluginAction
+gitHubCommitAction match = "https://github.com/" ++ match