hubot-grafana 3.2.1 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,19 +8,28 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
 
10
10
  strategy:
11
+ fail-fast: false
11
12
  matrix:
12
- node-version: [12.x, 14.x, 16.x]
13
+ node-version: [16.x, 18.x, 20.x]
13
14
 
14
15
  steps:
15
- - uses: actions/checkout@v1
16
+ - uses: actions/checkout@v3
17
+
16
18
  - name: Use Node.js ${{ matrix.node-version }}
17
- uses: actions/setup-node@v1
19
+ uses: actions/setup-node@v3
18
20
  with:
19
21
  node-version: ${{ matrix.node-version }}
20
- - name: npm install, build, and test
22
+
23
+ - name: npm install, build
21
24
  run: |
22
25
  npm ci
23
26
  npm run build --if-present
27
+ env:
28
+ CI: true
29
+
30
+ - name: npm test
31
+ run: |
24
32
  npm test
25
33
  env:
26
34
  CI: true
35
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hubot-grafana",
3
3
  "description": "Query Grafana dashboards",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "author": "Stephen Yeargin <stephen@yearg.in>",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -22,18 +22,18 @@
22
22
  "request": "^2.88.2"
23
23
  },
24
24
  "peerDependencies": {
25
- "hubot": "^3"
25
+ "hubot": "^3 || ^4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "chai": "^4.3.7",
29
29
  "coffee-script": "^1.12.7",
30
30
  "hubot-test-helper": "^1.9.0",
31
- "husky": "^8.0.2",
32
- "mocha": "^10.1.0",
33
- "nock": "^13.2.9",
34
- "release-it": "^15.5.0",
31
+ "husky": "^8.0.3",
32
+ "mocha": "^10.2.0",
33
+ "nock": "^13.3.1",
34
+ "release-it": "^15.11.0",
35
35
  "require-dir": "^1.2.0",
36
- "sinon": "^14.0.2",
36
+ "sinon": "^15.1.0",
37
37
  "sinon-chai": "^3.7.0",
38
38
  "travis-cov": "^0.2.5"
39
39
  },
@@ -192,7 +192,7 @@ module.exports = (robot) ->
192
192
  return sendError 'An error ocurred. Check your logs for more details.', msg
193
193
  if dashboard.message
194
194
  # Search for URL slug to offer help
195
- if dashboard.message = "Dashboard not found"
195
+ if dashboard.message == "Dashboard not found"
196
196
  callGrafana endpoint, "search?type=dash-db", (results) ->
197
197
  for item in results
198
198
  if item.url.match(new RegExp("\/d\/[a-z0-9\-]+\/#{uid}$", 'i'))