Gitlab/ST Web Hook for CSCF Projects

Usage

If your gitlab project has this turned on, all commits pushed to git.uwaterloo.ca will be automatically associated to the (first) RT or ST item mentioned in the commit message. It will match against variations of [RS]T#12345 such as "RT #12345", "RT #12345", or "rt#12345"

A sample update:

Subject:    Gitlab Commit Notification
From:    dkbellin@uwaterloo.ca
commit 4548d3f3135f9422f6037582015088ffb105d77d
Author: Dennis Bellinger <dkbellin@uwaterloo.ca>
Date: 2015-08-06T18:03:07-04:00

Added CASClient class

The CASClient class handles getting CAS authenticated web pages.

RT#100132
https://git.uwaterloo.ca/cscf/nagios-scripts/commit/4548d3f3135f9422f6037582015088ffb105d77d

More details and samples of the formatting may be found in ST#100911. You can also take a look at a more recent example of one of the webhook messages on RT#974152


Setup

Be warned that "Test Hook" sends a number of recent commits to the hook. If any of these commits contain ST numbers they would be sent emails.


Code

The webhook code is on here: https://git.uwaterloo.ca/cscf/gitlab-webhook

Support

For support, talk to drallen

-- DanielAllen - 2015-08-27

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2019-07-31 - JustinVisser
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback