Merge pull request #607 from crazy-max/allow-comments
preserve comments in list input values with commentNoInfix
This commit is contained in:
4 files changed
+68
-7
No files matched your search
@@ -79,6 +79,67 @@ describe('getInputs', () => {
|
|||||||
tags: [],
|
tags: [],
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
3,
|
||||||
|
new Map<string, string>([
|
||||||
|
['labels', 'mylabel=foo#bar\n#comment\nanother=bar'],
|
||||||
|
]),
|
||||||
|
{
|
||||||
|
context: context.ContextSource.workflow,
|
||||||
|
bakeTarget: 'docker-metadata-action',
|
||||||
|
flavor: [],
|
||||||
|
githubToken: '',
|
||||||
|
images: [],
|
||||||
|
labels: ['mylabel=foo#bar', 'another=bar'],
|
||||||
|
annotations: [],
|
||||||
|
sepLabels: '\n',
|
||||||
|
sepTags: '\n',
|
||||||
|
sepAnnotations: '\n',
|
||||||
|
tags: [],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
4,
|
||||||
|
new Map<string, string>([
|
||||||
|
['annotations', 'org.opencontainers.image.url=https://example.com/path#readme\n#comment\norg.opencontainers.image.source=https://github.com/docker/metadata-action'],
|
||||||
|
]),
|
||||||
|
{
|
||||||
|
context: context.ContextSource.workflow,
|
||||||
|
bakeTarget: 'docker-metadata-action',
|
||||||
|
flavor: [],
|
||||||
|
githubToken: '',
|
||||||
|
images: [],
|
||||||
|
labels: [],
|
||||||
|
annotations: [
|
||||||
|
'org.opencontainers.image.url=https://example.com/path#readme',
|
||||||
|
'org.opencontainers.image.source=https://github.com/docker/metadata-action'
|
||||||
|
],
|
||||||
|
sepLabels: '\n',
|
||||||
|
sepTags: '\n',
|
||||||
|
sepAnnotations: '\n',
|
||||||
|
tags: [],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
5,
|
||||||
|
new Map<string, string>([
|
||||||
|
['tags', 'type=raw,value=foo#bar\n#comment'],
|
||||||
|
['flavor', 'prefix=v#1\n#comment'],
|
||||||
|
]),
|
||||||
|
{
|
||||||
|
context: context.ContextSource.workflow,
|
||||||
|
bakeTarget: 'docker-metadata-action',
|
||||||
|
flavor: ['prefix=v#1'],
|
||||||
|
githubToken: '',
|
||||||
|
images: [],
|
||||||
|
labels: [],
|
||||||
|
annotations: [],
|
||||||
|
sepLabels: '\n',
|
||||||
|
sepTags: '\n',
|
||||||
|
sepAnnotations: '\n',
|
||||||
|
tags: ['type=raw,value=foo#bar'],
|
||||||
|
}
|
||||||
|
],
|
||||||
];
|
];
|
||||||
test.each(cases)('[%d] given %o as inputs, returns %o', async (num: number, inputs: Map<string, string>, expected: context.Inputs) => {
|
test.each(cases)('[%d] given %o as inputs, returns %o', async (num: number, inputs: Map<string, string>, expected: context.Inputs) => {
|
||||||
inputs.forEach((value: string, name: string) => {
|
inputs.forEach((value: string, name: string) => {
|
||||||
|
|||||||
+1
-1
@@ -103,5 +103,5 @@ var i=o(79168);var a=o(25111);var c=o(56008);var p=o(53672);t.exports=Negotiator
|
|||||||
/* v8 ignore next -- @preserve */
|
/* v8 ignore next -- @preserve */
|
||||||
()=>new ArrayBuffer(0)))}}function isJSONResponse(t){return t.type==="application/json"||t.type==="application/scim+json"}function toErrorMessage(t){if(typeof t==="string"){return t}if(t instanceof ArrayBuffer){return"Unknown error"}if("message"in t){const r="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map((t=>JSON.stringify(t))).join(", ")}${r}`:`${t.message}${r}`}return`Unknown error: ${JSON.stringify(t)}`}function dist_bundle_withDefaults(t,r){const o=t.defaults(r);const newApi=function(t,r){const i=o.merge(t,r);if(!i.request||!i.request.hook){return fetchWrapper(o.parse(i))}const request2=(t,r)=>fetchWrapper(o.parse(o.merge(t,r)));Object.assign(request2,{endpoint:o,defaults:dist_bundle_withDefaults.bind(null,o)});return i.request.hook(request2,i)};return Object.assign(newApi,{endpoint:o,defaults:dist_bundle_withDefaults.bind(null,o)})}var Mf=dist_bundle_withDefaults(tf,hf);
|
()=>new ArrayBuffer(0)))}}function isJSONResponse(t){return t.type==="application/json"||t.type==="application/scim+json"}function toErrorMessage(t){if(typeof t==="string"){return t}if(t instanceof ArrayBuffer){return"Unknown error"}if("message"in t){const r="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map((t=>JSON.stringify(t))).join(", ")}${r}`:`${t.message}${r}`}return`Unknown error: ${JSON.stringify(t)}`}function dist_bundle_withDefaults(t,r){const o=t.defaults(r);const newApi=function(t,r){const i=o.merge(t,r);if(!i.request||!i.request.hook){return fetchWrapper(o.parse(i))}const request2=(t,r)=>fetchWrapper(o.parse(o.merge(t,r)));Object.assign(request2,{endpoint:o,defaults:dist_bundle_withDefaults.bind(null,o)});return i.request.hook(request2,i)};return Object.assign(newApi,{endpoint:o,defaults:dist_bundle_withDefaults.bind(null,o)})}var Mf=dist_bundle_withDefaults(tf,hf);
|
||||||
/* v8 ignore next -- @preserve */
|
/* v8 ignore next -- @preserve */
|
||||||
/* v8 ignore else -- @preserve */var mf="0.0.0-development";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}var gf=class extends Error{constructor(t,r,o){super(_buildMessageForResponseErrors(o));this.request=t;this.headers=r;this.response=o;this.errors=o.errors;this.data=o.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var zf=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var Of=["query","method","url"];var yf=/\/api\/v3\/?$/;function graphql(t,r,o){if(o){if(typeof r==="string"&&"query"in o){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in o){if(!Of.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const i=typeof r==="string"?Object.assign({query:r},o):r;const a=Object.keys(i).reduce(((t,r)=>{if(zf.includes(r)){t[r]=i[r];return t}if(!t.variables){t.variables={}}t.variables[r]=i[r];return t}),{});const c=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(yf.test(c)){a.url=c.replace(yf,"/api/graphql")}return t(a).then((t=>{if(t.data.errors){const r={};for(const o of Object.keys(t.headers)){r[o]=t.headers[o]}throw new gf(a,r,t.data)}return t.data.data}))}function graphql_dist_bundle_withDefaults(t,r){const o=t.defaults(r);const newApi=(t,r)=>graphql(o,t,r);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,o),endpoint:o.endpoint})}var Ef=graphql_dist_bundle_withDefaults(Mf,{headers:{"user-agent":`octokit-graphql.js/${mf} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return graphql_dist_bundle_withDefaults(t,{method:"POST",url:"/graphql"})}var Cf="(?:[a-zA-Z0-9_-]+)";var Bf="\\.";var If=new RegExp(`^${Cf}${Bf}${Cf}${Bf}${Cf}$`);var Rf=If.test.bind(If);async function auth(t){const r=Rf(t);const o=t.startsWith("v1.")||t.startsWith("ghs_");const i=t.startsWith("ghu_");const a=r?"app":o?"installation":i?"user-to-server":"oauth";return{type:"token",token:t,tokenType:a}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,r,o,i){const a=r.endpoint.merge(o,i);a.headers.authorization=withAuthorizationPrefix(t);return r(a)}var Sf=function createTokenAuth2(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};const qf="7.0.6";const dist_src_noop=()=>{};const wf=console.warn.bind(console);const Nf=console.error.bind(console);function createLogger(t={}){if(typeof t.debug!=="function"){t.debug=dist_src_noop}if(typeof t.info!=="function"){t.info=dist_src_noop}if(typeof t.warn!=="function"){t.warn=wf}if(typeof t.error!=="function"){t.error=Nf}return t}const vf=`octokit-core.js/${qf} ${getUserAgent()}`;class Octokit{static VERSION=qf;static defaults(t){const r=class extends(this){constructor(...r){const o=r[0]||{};if(typeof t==="function"){super(t(o));return}super(Object.assign({},t,o,o.userAgent&&t.userAgent?{userAgent:`${o.userAgent} ${t.userAgent}`}:null))}};return r}static plugins=[];static plugin(...t){const r=this.plugins;const o=class extends(this){static plugins=r.concat(t.filter((t=>!r.includes(t))))};return o}constructor(t={}){const r=new JA.Collection;const o={baseUrl:Mf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};o.headers["user-agent"]=t.userAgent?`${t.userAgent} ${vf}`:vf;if(t.baseUrl){o.baseUrl=t.baseUrl}if(t.previews){o.mediaType.previews=t.previews}if(t.timeZone){o.headers["time-zone"]=t.timeZone}this.request=Mf.defaults(o);this.graphql=withCustomRequest(this.request).defaults(o);this.log=createLogger(t.log);this.hook=r;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const o=Sf(t.auth);r.wrap("request",o.hook);this.auth=o}}else{const{authStrategy:o,...i}=t;const a=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},t.auth));r.wrap("request",a.hook);this.auth=a}const i=this.constructor;for(let r=0;r<i.plugins.length;++r){Object.assign(this,i.plugins[r](this,t))}}request;graphql;log;hook;auth}const Tf="17.0.0";const Wf={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repositoLine truncated
|
/* v8 ignore else -- @preserve */var mf="0.0.0-development";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}var gf=class extends Error{constructor(t,r,o){super(_buildMessageForResponseErrors(o));this.request=t;this.headers=r;this.response=o;this.errors=o.errors;this.data=o.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var zf=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var Of=["query","method","url"];var yf=/\/api\/v3\/?$/;function graphql(t,r,o){if(o){if(typeof r==="string"&&"query"in o){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in o){if(!Of.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const i=typeof r==="string"?Object.assign({query:r},o):r;const a=Object.keys(i).reduce(((t,r)=>{if(zf.includes(r)){t[r]=i[r];return t}if(!t.variables){t.variables={}}t.variables[r]=i[r];return t}),{});const c=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(yf.test(c)){a.url=c.replace(yf,"/api/graphql")}return t(a).then((t=>{if(t.data.errors){const r={};for(const o of Object.keys(t.headers)){r[o]=t.headers[o]}throw new gf(a,r,t.data)}return t.data.data}))}function graphql_dist_bundle_withDefaults(t,r){const o=t.defaults(r);const newApi=(t,r)=>graphql(o,t,r);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,o),endpoint:o.endpoint})}var Ef=graphql_dist_bundle_withDefaults(Mf,{headers:{"user-agent":`octokit-graphql.js/${mf} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return graphql_dist_bundle_withDefaults(t,{method:"POST",url:"/graphql"})}var Cf="(?:[a-zA-Z0-9_-]+)";var Bf="\\.";var If=new RegExp(`^${Cf}${Bf}${Cf}${Bf}${Cf}$`);var Rf=If.test.bind(If);async function auth(t){const r=Rf(t);const o=t.startsWith("v1.")||t.startsWith("ghs_");const i=t.startsWith("ghu_");const a=r?"app":o?"installation":i?"user-to-server":"oauth";return{type:"token",token:t,tokenType:a}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,r,o,i){const a=r.endpoint.merge(o,i);a.headers.authorization=withAuthorizationPrefix(t);return r(a)}var Sf=function createTokenAuth2(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};const qf="7.0.6";const dist_src_noop=()=>{};const wf=console.warn.bind(console);const Nf=console.error.bind(console);function createLogger(t={}){if(typeof t.debug!=="function"){t.debug=dist_src_noop}if(typeof t.info!=="function"){t.info=dist_src_noop}if(typeof t.warn!=="function"){t.warn=wf}if(typeof t.error!=="function"){t.error=Nf}return t}const vf=`octokit-core.js/${qf} ${getUserAgent()}`;class Octokit{static VERSION=qf;static defaults(t){const r=class extends(this){constructor(...r){const o=r[0]||{};if(typeof t==="function"){super(t(o));return}super(Object.assign({},t,o,o.userAgent&&t.userAgent?{userAgent:`${o.userAgent} ${t.userAgent}`}:null))}};return r}static plugins=[];static plugin(...t){const r=this.plugins;const o=class extends(this){static plugins=r.concat(t.filter((t=>!r.includes(t))))};return o}constructor(t={}){const r=new JA.Collection;const o={baseUrl:Mf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};o.headers["user-agent"]=t.userAgent?`${t.userAgent} ${vf}`:vf;if(t.baseUrl){o.baseUrl=t.baseUrl}if(t.previews){o.mediaType.previews=t.previews}if(t.timeZone){o.headers["time-zone"]=t.timeZone}this.request=Mf.defaults(o);this.graphql=withCustomRequest(this.request).defaults(o);this.log=createLogger(t.log);this.hook=r;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const o=Sf(t.auth);r.wrap("request",o.hook);this.auth=o}}else{const{authStrategy:o,...i}=t;const a=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},t.auth));r.wrap("request",a.hook);this.auth=a}const i=this.constructor;for(let r=0;r<i.plugins.length;++r){Object.assign(this,i.plugins[r](this,t))}}request;graphql;log;hook;auth}const Tf="17.0.0";const Wf={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repositoLine truncated
|
||||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
|
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
|
||||||
+5
-5
@@ -28,11 +28,11 @@ export interface Inputs {
|
|||||||
export function getInputs(): Inputs {
|
export function getInputs(): Inputs {
|
||||||
return {
|
return {
|
||||||
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
|
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
|
||||||
images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
|
images: Util.getInputList('images', {ignoreComma: true, comment: '#', commentNoInfix: true}),
|
||||||
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
|
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#', commentNoInfix: true}),
|
||||||
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
|
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#', commentNoInfix: true}),
|
||||||
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
|
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#', commentNoInfix: true}),
|
||||||
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#'}),
|
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#', commentNoInfix: true}),
|
||||||
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
|
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
|
||||||
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
|
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
|
||||||
sepAnnotations: core.getInput('sep-annotations', {trimWhitespace: false}) || `\n`,
|
sepAnnotations: core.getInput('sep-annotations', {trimWhitespace: false}) || `\n`,
|
||||||
|
|||||||
Reference in new issue
Block a user