3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #149327 from yu-re-ka/feature/matrix-alertmanager-homepage-url

matrix-alertmanager: fix homepage url and update script
This commit is contained in:
0x4A6F 2021-12-07 12:23:06 +01:00 committed by GitHub
commit c8e9e1bcb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1550 additions and 426 deletions

View file

@ -31,7 +31,7 @@ mkYarnPackage rec {
meta = with lib; {
description = "Bot to receive Alertmanager webhook events and forward them to chosen rooms";
homepage = "https://git.feneas.org/jaywink/matrix-alertmanager";
homepage = "https://github.com/jaywink/matrix-alertmanager";
license = licenses.mit;
maintainers = with maintainers; [ yuka ];
platforms = platforms.all;

View file

@ -1,6 +1,6 @@
{
"name": "matrix-alertmanager",
"version": "0.4.0",
"version": "0.5.0",
"description": "Prometheus Alertmanager bot for Matrix",
"main": "src/app.js",
"scripts": {
@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
"url": "https://git.feneas.org/jaywink/matrix-alertmanager"
"url": "https://github.com/jaywink/matrix-alertmanager"
},
"keywords": [
"matrix",
@ -24,17 +24,18 @@
"author": "Jason Robinson",
"license": "MIT",
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^7.14.0",
"mocha": "^8.2.1",
"nodemon": "^2.0.6",
"sinon": "^9.2.1"
"chai": "^4.3.4",
"eslint": "^7.32.0",
"mocha": "^9.1.1",
"nodemon": "^2.0.12",
"npm-check-updates": "^11.8.5",
"sinon": "^11.1.2"
},
"dependencies": {
"dotenv": "^8.2.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"matrix-js-sdk": "^9.2.0",
"striptags": "^3.1.1"
"matrix-js-sdk": "^12.5.0",
"striptags": "^3.2.0"
},
"bin": "src/app.js"
}

View file

@ -7,12 +7,15 @@ writeShellScript "update-matrix-alertmanager" ''
set -xe
export PATH="${lib.makeBinPath [ gnugrep coreutils curl wget jq common-updater-scripts yarn prefetch-yarn-deps ]}"
cd pkgs/servers/monitoring/matrix-alertmanager/
owner="jaywink"
repo="matrix-alertmanager"
version=`curl -s "https://api.github.com/repos/$owner/$repo/tags" | jq -r .[0].name | grep -oP "^v\K.*"`
url="https://raw.githubusercontent.com/$owner/$repo/v$version/"
(
cd ../../../..
update-source-version matrix-alertmanager "$version" --file=pkgs/servers/monitoring/matrix-alertmanager/default.nix
)

View file

@ -1 +1 @@
1yvcm0prk8lxljlnww42pdgzdjdhljkih94hqb0x4cikd2cqgjmp
1vjg0rapdj88ygc00j60w4h5wkaf6jycmlx3fz13xar74ikwrifa

File diff suppressed because it is too large Load diff