screwdriver-api 4.1.232 → 4.1.233

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": "4.1.232",
3
+ "version": "4.1.233",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -422,8 +422,7 @@ async function createPREvents(options, request) {
422
422
  restrictPR,
423
423
  chainPR,
424
424
  ref,
425
- releaseName,
426
- meta
425
+ releaseName
427
426
  } = options;
428
427
  const { scm } = request.server.app.pipelineFactory;
429
428
  const { eventFactory, pipelineFactory, userFactory } = request.server.app;
@@ -525,7 +524,6 @@ async function createPREvents(options, request) {
525
524
  changedFiles,
526
525
  baseBranch: branch,
527
526
  causeMessage: `Merged by ${username}`,
528
- meta,
529
527
  releaseName,
530
528
  ref,
531
529
  subscribedEvent: true,
@@ -800,7 +798,6 @@ function pullRequestEvent(pluginOptions, request, h, parsed, token) {
800
798
  scmContext
801
799
  };
802
800
  const { restrictPR, chainPR } = pluginOptions;
803
- const meta = createMeta(parsed);
804
801
 
805
802
  request.log(['webhook', hookId], `PR #${prNum} ${action} for ${fullCheckoutUrl}`);
806
803
 
@@ -842,8 +839,7 @@ function pullRequestEvent(pluginOptions, request, h, parsed, token) {
842
839
  chainPR,
843
840
  pipelines,
844
841
  ref,
845
- releaseName,
846
- meta
842
+ releaseName
847
843
  };
848
844
 
849
845
  await batchUpdateAdmins({ userFactory, pipelines, username, scmContext, pipelineFactory });
@@ -887,7 +883,6 @@ async function createEvents(
887
883
  scmConfigFromHook
888
884
  ) {
889
885
  const { action, branch, sha, username, scmContext, changedFiles, type, releaseName, ref } = parsed;
890
- const meta = createMeta(parsed);
891
886
 
892
887
  const pipelineTuples = await Promise.all(
893
888
  pipelines.map(async p => {
@@ -971,7 +966,7 @@ async function createEvents(
971
966
  changedFiles,
972
967
  baseBranch: branch,
973
968
  causeMessage: `Merged by ${username}`,
974
- meta,
969
+ meta: createMeta(parsed),
975
970
  releaseName,
976
971
  ref
977
972
  };