screwdriver-api 7.0.102 → 7.0.104

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.
@@ -0,0 +1,21 @@
1
+ name: Issue Workflow
2
+
3
+ on:
4
+ issues:
5
+ types:
6
+ - labeled
7
+ - opened
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Run similarity analysis
15
+ if: (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'triage')) || (github.event.action == 'opened')
16
+ uses: actions-cool/issues-similarity-analysis@main
17
+ with:
18
+ filter-threshold: 0.3
19
+ title-excludes: 'bug, not, 1234'
20
+ comment-title: '### Similar issues'
21
+ comment-body: '${index}. ${similarity} #${number}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.102",
3
+ "version": "7.0.104",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -120,7 +120,7 @@
120
120
  "screwdriver-request": "^2.0.1",
121
121
  "screwdriver-scm-base": "^8.2.0",
122
122
  "screwdriver-scm-bitbucket": "^5.0.1",
123
- "screwdriver-scm-github": "^12.4.0",
123
+ "screwdriver-scm-github": "^12.6.0",
124
124
  "screwdriver-scm-gitlab": "^3.1.0",
125
125
  "screwdriver-scm-router": "^7.0.0",
126
126
  "screwdriver-template-validator": "^7.0.0",
@@ -106,11 +106,12 @@ function addOAuthRoutes(config) {
106
106
  }
107
107
 
108
108
  // check enterprise github cloud
109
- if (config.scm.gheCloud) {
109
+ const scmConfig = config.scm.scms[scmContext].config;
110
+
111
+ if (scmConfig && scmConfig.gheCloud) {
110
112
  const isEnterpriseUser = await userFactory.scm.isEnterpriseUser({
111
113
  token: accessToken,
112
- login: username,
113
- slug: config.scm.gheCloudSlug
114
+ login: username
114
115
  });
115
116
 
116
117
  if (!isEnterpriseUser) {