diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2020-03-24 15:52:31 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-02 07:21:55 +0100 |
commit | 930a856e0769483e9102bddff4acc2e079860f2a (patch) | |
tree | 4fb4fe5df60483250845bbec43a52b41caefa0ed /src/qtmoduleupdater/qt5.go | |
parent | af377a33104ccaed85e15f8cc0069c6d35269ca8 (diff) |
Add support for posting updates to slack/teams
Post an alert if we give up on a module, and also post an alert if we've
found a candidate for a consistent set.
Change-Id: I49c5ffe68a9819960e90047ef87fe0f028793f24
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qtmoduleupdater/qt5.go')
-rw-r--r-- | src/qtmoduleupdater/qt5.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qtmoduleupdater/qt5.go b/src/qtmoduleupdater/qt5.go index 7670441c..3cecb420 100644 --- a/src/qtmoduleupdater/qt5.go +++ b/src/qtmoduleupdater/qt5.go @@ -251,5 +251,10 @@ func prepareQt5Update(product string, branch string, productFetchRef string, upd return fmt.Errorf("Error pushing qt5 change: %s", err) } - return gerrit.reviewAndStageChange(product, branch, commitOid, "Updating all submodules with a new consistent set") + if err := gerrit.reviewAndStageChange(product, branch, commitOid, "Updating all submodules with a new consistent set"); err != nil { + return err + } + url := fmt.Sprintf("https://codereview.qt-project.org/#/q/%s,n,z", commitOid) + postMessageToSlack(fmt.Sprintf("Updating all submodules in qt5 %s with a new consistent set: <%s>", branch, url)) + return nil } |