This is an automated email from the ASF dual-hosted git repository. tardieu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-composer.git
The following commit(s) were added to refs/heads/master by this push: new 6e27d50 Synthetize provide-api-key annotation (#31) 6e27d50 is described below commit 6e27d509cdfd4d1b8db21fbce9c928d7af05765d Author: Olivier Tardieu <tard...@users.noreply.github.com> AuthorDate: Tue Mar 19 18:05:54 2019 -0400 Synthetize provide-api-key annotation (#31) --- conductor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conductor.js b/conductor.js index 90e9e18..9d73fe6 100644 --- a/conductor.js +++ b/conductor.js @@ -29,7 +29,11 @@ function generate ({ name, composition, ast, version: composer, annotations = [] let code = `// generated by composer v${composer} and conductor v${version}\n\nconst composition = ${JSON.stringify(composition, null, 4)}\n\n// do not edit below this point\n\n` + minify(`const main=(${main})(composition)`, { output: { max_line_len: 127 } }).code if (debug) code = `process.env.DEBUG='${debug}'\n\n` + code - annotations = annotations.concat([{ key: 'conductor', value: ast }, { key: 'composerVersion', value: composer }, { key: 'conductorVersion', value: version }]) + annotations = annotations.concat([ + { key: 'conductor', value: ast }, + { key: 'composerVersion', value: composer }, + { key: 'conductorVersion', value: version }, + { key: 'provide-api-key', value: true }]) return { name, action: { exec: { kind: 'nodejs:default', code }, annotations } } }