screwdriver-api 7.0.151 → 7.0.152

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.151",
3
+ "version": "7.0.152",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -87,7 +87,7 @@ async function updateAdmins(userFactory, username, scmContext, pipeline, pipelin
87
87
 
88
88
  try {
89
89
  const user = await userFactory.get({ username, scmContext });
90
- const userPermissions = await user.getPermissions(pipeline.scmUri);
90
+ const userPermissions = await user.getPermissions(pipeline.scmUri, user.scmContext, pipeline.scmRepo);
91
91
 
92
92
  // Delete user from admin list if bad permissions
93
93
  if (!userPermissions.push) {
@@ -999,6 +999,7 @@ async function createEvents(
999
999
  const scmConfig = {
1000
1000
  scmUri: pTuple.pipeline.scmUri,
1001
1001
  token,
1002
+ scmRepo: pTuple.pipeline.scmRepo,
1002
1003
  scmContext
1003
1004
  };
1004
1005
  // obtain pipeline's latest commit sha for branch specific job