diff --git a/dist/index.js.map b/dist/index.js.map index 979ee7cd..4678acf5 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../webpack://typescript-action/./lib/attachment.js","../webpack://typescript-action/./lib/formatter.js","../webpack://typescript-action/./lib/image.js","../webpack://typescript-action/./lib/main.js","../webpack://typescript-action/./lib/markdown.js","../webpack://typescript-action/./lib/parser.js","../webpack://typescript-action/./lib/report.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/artifact-client.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/artifact-client.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/config-variables.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/download-http-client.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/download-specification.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/http-manager.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/requestUtils.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/status-reporter.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/upload-gzip.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/upload-http-client.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/upload-specification.js","../webpack://typescript-action/./node_modules/@actions/artifact/lib/internal/utils.js","../webpack://typescript-action/./node_modules/@actions/core/lib/command.js","../webpack://typescript-action/./node_modules/@actions/core/lib/core.js","../webpack://typescript-action/./node_modules/@actions/core/lib/file-command.js","../webpack://typescript-action/./node_modules/@actions/core/lib/oidc-utils.js","../webpack://typescript-action/./node_modules/@actions/core/lib/utils.js","../webpack://typescript-action/./node_modules/@actions/exec/lib/exec.js","../webpack://typescript-action/./node_modules/@actions/exec/lib/toolrunner.js","../webpack://typescript-action/./node_modules/@actions/github/lib/context.js","../webpack://typescript-action/./node_modules/@actions/github/lib/github.js","../webpack://typescript-action/./node_modules/@actions/github/lib/internal/utils.js","../webpack://typescript-action/./node_modules/@actions/github/lib/utils.js","../webpack://typescript-action/./node_modules/@actions/http-client/auth.js","../webpack://typescript-action/./node_modules/@actions/http-client/index.js","../webpack://typescript-action/./node_modules/@actions/http-client/proxy.js","../webpack://typescript-action/./node_modules/@actions/io/lib/io-util.js","../webpack://typescript-action/./node_modules/@actions/io/lib/io.js","../webpack://typescript-action/./node_modules/@octokit/action/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/auth-action/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/auth-token/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/core/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/endpoint/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/graphql/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/request-error/dist-node/index.js","../webpack://typescript-action/./node_modules/@octokit/request/dist-node/index.js","../webpack://typescript-action/./node_modules/@tootallnate/once/dist/index.js","../webpack://typescript-action/./node_modules/agent-base/dist/src/index.js","../webpack://typescript-action/./node_modules/agent-base/dist/src/promisify.js","../webpack://typescript-action/./node_modules/ast-types/def/babel-core.js","../webpack://typescript-action/./node_modules/ast-types/def/babel.js","../webpack://typescript-action/./node_modules/ast-types/def/core.js","../webpack://typescript-action/./node_modules/ast-types/def/es-proposals.js","../webpack://typescript-action/./node_modules/ast-types/def/es2020.js","../webpack://typescript-action/./node_modules/ast-types/def/es6.js","../webpack://typescript-action/./node_modules/ast-types/def/es7.js","../webpack://typescript-action/./node_modules/ast-types/def/esprima.js","../webpack://typescript-action/./node_modules/ast-types/def/flow.js","../webpack://typescript-action/./node_modules/ast-types/def/jsx.js","../webpack://typescript-action/./node_modules/ast-types/def/type-annotations.js","../webpack://typescript-action/./node_modules/ast-types/def/typescript.js","../webpack://typescript-action/./node_modules/ast-types/fork.js","../webpack://typescript-action/./node_modules/ast-types/gen/namedTypes.js","../webpack://typescript-action/./node_modules/ast-types/lib/equiv.js","../webpack://typescript-action/./node_modules/ast-types/lib/node-path.js","../webpack://typescript-action/./node_modules/ast-types/lib/path-visitor.js","../webpack://typescript-action/./node_modules/ast-types/lib/path.js","../webpack://typescript-action/./node_modules/ast-types/lib/scope.js","../webpack://typescript-action/./node_modules/ast-types/lib/shared.js","../webpack://typescript-action/./node_modules/ast-types/lib/types.js","../webpack://typescript-action/./node_modules/ast-types/main.js","../webpack://typescript-action/./node_modules/balanced-match/index.js","../webpack://typescript-action/./node_modules/before-after-hook/index.js","../webpack://typescript-action/./node_modules/before-after-hook/lib/add.js","../webpack://typescript-action/./node_modules/before-after-hook/lib/register.js","../webpack://typescript-action/./node_modules/before-after-hook/lib/remove.js","../webpack://typescript-action/./node_modules/brace-expansion/index.js","../webpack://typescript-action/./node_modules/bytes/index.js","../webpack://typescript-action/./node_modules/concat-map/index.js","../webpack://typescript-action/./node_modules/core-util-is/lib/util.js","../webpack://typescript-action/./node_modules/data-uri-to-buffer/dist/src/index.js","../webpack://typescript-action/./node_modules/debug/src/browser.js","../webpack://typescript-action/./node_modules/debug/src/common.js","../webpack://typescript-action/./node_modules/debug/src/index.js","../webpack://typescript-action/./node_modules/debug/src/node.js","../webpack://typescript-action/./node_modules/degenerator/dist/src/index.js","../webpack://typescript-action/./node_modules/degenerator/node_modules/escodegen/escodegen.js","../webpack://typescript-action/./node_modules/depd/index.js","../webpack://typescript-action/./node_modules/depd/lib/compat/callsite-tostring.js","../webpack://typescript-action/./node_modules/depd/lib/compat/event-listener-count.js","../webpack://typescript-action/./node_modules/depd/lib/compat/index.js","../webpack://typescript-action/./node_modules/deprecation/dist-node/index.js","../webpack://typescript-action/./node_modules/esprima/dist/esprima.js","../webpack://typescript-action/./node_modules/estraverse/estraverse.js","../webpack://typescript-action/./node_modules/esutils/lib/ast.js","../webpack://typescript-action/./node_modules/esutils/lib/code.js","../webpack://typescript-action/./node_modules/esutils/lib/keyword.js","../webpack://typescript-action/./node_modules/esutils/lib/utils.js","../webpack://typescript-action/./node_modules/file-uri-to-path/dist/src/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/copy-sync/copy-sync.js","../webpack://typescript-action/./node_modules/fs-extra/lib/copy-sync/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/copy/copy.js","../webpack://typescript-action/./node_modules/fs-extra/lib/copy/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/empty/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/ensure/file.js","../webpack://typescript-action/./node_modules/fs-extra/lib/ensure/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/ensure/link.js","../webpack://typescript-action/./node_modules/fs-extra/lib/ensure/symlink-paths.js","../webpack://typescript-action/./node_modules/fs-extra/lib/ensure/symlink-type.js","../webpack://typescript-action/./node_modules/fs-extra/lib/ensure/symlink.js","../webpack://typescript-action/./node_modules/fs-extra/lib/fs/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/json/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/json/jsonfile.js","../webpack://typescript-action/./node_modules/fs-extra/lib/json/output-json-sync.js","../webpack://typescript-action/./node_modules/fs-extra/lib/json/output-json.js","../webpack://typescript-action/./node_modules/fs-extra/lib/mkdirs/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js","../webpack://typescript-action/./node_modules/fs-extra/lib/mkdirs/mkdirs.js","../webpack://typescript-action/./node_modules/fs-extra/lib/mkdirs/win32.js","../webpack://typescript-action/./node_modules/fs-extra/lib/move-sync/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/move-sync/move-sync.js","../webpack://typescript-action/./node_modules/fs-extra/lib/move/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/move/move.js","../webpack://typescript-action/./node_modules/fs-extra/lib/output/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/path-exists/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/remove/index.js","../webpack://typescript-action/./node_modules/fs-extra/lib/remove/rimraf.js","../webpack://typescript-action/./node_modules/fs-extra/lib/util/buffer.js","../webpack://typescript-action/./node_modules/fs-extra/lib/util/stat.js","../webpack://typescript-action/./node_modules/fs-extra/lib/util/utimes.js","../webpack://typescript-action/./node_modules/fs.realpath/index.js","../webpack://typescript-action/./node_modules/fs.realpath/old.js","../webpack://typescript-action/./node_modules/ftp/lib/connection.js","../webpack://typescript-action/./node_modules/ftp/lib/parser.js","../webpack://typescript-action/./node_modules/get-uri/dist/data.js","../webpack://typescript-action/./node_modules/get-uri/dist/file.js","../webpack://typescript-action/./node_modules/get-uri/dist/ftp.js","../webpack://typescript-action/./node_modules/get-uri/dist/http-error.js","../webpack://typescript-action/./node_modules/get-uri/dist/http.js","../webpack://typescript-action/./node_modules/get-uri/dist/https.js","../webpack://typescript-action/./node_modules/get-uri/dist/index.js","../webpack://typescript-action/./node_modules/get-uri/dist/notfound.js","../webpack://typescript-action/./node_modules/get-uri/dist/notmodified.js","../webpack://typescript-action/./node_modules/glob/common.js","../webpack://typescript-action/./node_modules/glob/glob.js","../webpack://typescript-action/./node_modules/glob/sync.js","../webpack://typescript-action/./node_modules/graceful-fs/clone.js","../webpack://typescript-action/./node_modules/graceful-fs/graceful-fs.js","../webpack://typescript-action/./node_modules/graceful-fs/legacy-streams.js","../webpack://typescript-action/./node_modules/graceful-fs/polyfills.js","../webpack://typescript-action/./node_modules/has-flag/index.js","../webpack://typescript-action/./node_modules/http-errors/index.js","../webpack://typescript-action/./node_modules/http-proxy-agent/dist/agent.js","../webpack://typescript-action/./node_modules/http-proxy-agent/dist/index.js","../webpack://typescript-action/./node_modules/https-proxy-agent/dist/agent.js","../webpack://typescript-action/./node_modules/https-proxy-agent/dist/index.js","../webpack://typescript-action/./node_modules/https-proxy-agent/dist/parse-proxy-response.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/dbcs-codec.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/dbcs-data.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/index.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/internal.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/sbcs-codec.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/sbcs-data-generated.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/sbcs-data.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/utf16.js","../webpack://typescript-action/./node_modules/iconv-lite/encodings/utf7.js","../webpack://typescript-action/./node_modules/iconv-lite/lib/bom-handling.js","../webpack://typescript-action/./node_modules/iconv-lite/lib/extend-node.js","../webpack://typescript-action/./node_modules/iconv-lite/lib/index.js","../webpack://typescript-action/./node_modules/iconv-lite/lib/streams.js","../webpack://typescript-action/./node_modules/image-size/dist/detector.js","../webpack://typescript-action/./node_modules/image-size/dist/index.js","../webpack://typescript-action/./node_modules/image-size/dist/readUInt.js","../webpack://typescript-action/./node_modules/image-size/dist/types.js","../webpack://typescript-action/./node_modules/image-size/dist/types/bmp.js","../webpack://typescript-action/./node_modules/image-size/dist/types/cur.js","../webpack://typescript-action/./node_modules/image-size/dist/types/dds.js","../webpack://typescript-action/./node_modules/image-size/dist/types/gif.js","../webpack://typescript-action/./node_modules/image-size/dist/types/icns.js","../webpack://typescript-action/./node_modules/image-size/dist/types/ico.js","../webpack://typescript-action/./node_modules/image-size/dist/types/j2c.js","../webpack://typescript-action/./node_modules/image-size/dist/types/jp2.js","../webpack://typescript-action/./node_modules/image-size/dist/types/jpg.js","../webpack://typescript-action/./node_modules/image-size/dist/types/ktx.js","../webpack://typescript-action/./node_modules/image-size/dist/types/png.js","../webpack://typescript-action/./node_modules/image-size/dist/types/pnm.js","../webpack://typescript-action/./node_modules/image-size/dist/types/psd.js","../webpack://typescript-action/./node_modules/image-size/dist/types/svg.js","../webpack://typescript-action/./node_modules/image-size/dist/types/tiff.js","../webpack://typescript-action/./node_modules/image-size/dist/types/webp.js","../webpack://typescript-action/./node_modules/inflight/inflight.js","../webpack://typescript-action/./node_modules/inherits/inherits.js","../webpack://typescript-action/./node_modules/inherits/inherits_browser.js","../webpack://typescript-action/./node_modules/ip/lib/ip.js","../webpack://typescript-action/./node_modules/is-plain-object/dist/is-plain-object.js","../webpack://typescript-action/./node_modules/isarray/index.js","../webpack://typescript-action/./node_modules/jsonfile/index.js","../webpack://typescript-action/./node_modules/lru-cache/index.js","../webpack://typescript-action/./node_modules/minimatch/minimatch.js","../webpack://typescript-action/./node_modules/ms/index.js","../webpack://typescript-action/./node_modules/netmask/lib/netmask.js","../webpack://typescript-action/./node_modules/node-fetch/lib/index.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/tr46/index.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/whatwg-url/lib/URL-impl.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/whatwg-url/lib/URL.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js","../webpack://typescript-action/./node_modules/node-fetch/node_modules/whatwg-url/lib/utils.js","../webpack://typescript-action/./node_modules/once/once.js","../webpack://typescript-action/./node_modules/pac-proxy-agent/dist/agent.js","../webpack://typescript-action/./node_modules/pac-proxy-agent/dist/index.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/dateRange.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/dnsDomainIs.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/dnsDomainLevels.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/dnsResolve.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/index.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/isInNet.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/isPlainHostName.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/isResolvable.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/localHostOrDomainIs.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/myIpAddress.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/shExpMatch.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/timeRange.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/util.js","../webpack://typescript-action/./node_modules/pac-resolver/dist/weekdayRange.js","../webpack://typescript-action/./node_modules/path-is-absolute/index.js","../webpack://typescript-action/./node_modules/proxy-agent/index.js","../webpack://typescript-action/./node_modules/proxy-from-env/index.js","../webpack://typescript-action/./node_modules/queue/index.js","../webpack://typescript-action/./node_modules/raw-body/index.js","../webpack://typescript-action/./node_modules/readable-stream/lib/_stream_duplex.js","../webpack://typescript-action/./node_modules/readable-stream/lib/_stream_passthrough.js","../webpack://typescript-action/./node_modules/readable-stream/lib/_stream_readable.js","../webpack://typescript-action/./node_modules/readable-stream/lib/_stream_transform.js","../webpack://typescript-action/./node_modules/readable-stream/lib/_stream_writable.js","../webpack://typescript-action/./node_modules/readable-stream/readable.js","../webpack://typescript-action/./node_modules/safer-buffer/safer.js","../webpack://typescript-action/./node_modules/setprototypeof/index.js","../webpack://typescript-action/./node_modules/smart-buffer/build/smartbuffer.js","../webpack://typescript-action/./node_modules/smart-buffer/build/utils.js","../webpack://typescript-action/./node_modules/socks-proxy-agent/dist/agent.js","../webpack://typescript-action/./node_modules/socks-proxy-agent/dist/index.js","../webpack://typescript-action/./node_modules/socks/build/client/socksclient.js","../webpack://typescript-action/./node_modules/socks/build/common/constants.js","../webpack://typescript-action/./node_modules/socks/build/common/helpers.js","../webpack://typescript-action/./node_modules/socks/build/common/receivebuffer.js","../webpack://typescript-action/./node_modules/socks/build/common/util.js","../webpack://typescript-action/./node_modules/socks/build/index.js","../webpack://typescript-action/./node_modules/source-map/lib/array-set.js","../webpack://typescript-action/./node_modules/source-map/lib/base64-vlq.js","../webpack://typescript-action/./node_modules/source-map/lib/base64.js","../webpack://typescript-action/./node_modules/source-map/lib/binary-search.js","../webpack://typescript-action/./node_modules/source-map/lib/mapping-list.js","../webpack://typescript-action/./node_modules/source-map/lib/quick-sort.js","../webpack://typescript-action/./node_modules/source-map/lib/source-map-consumer.js","../webpack://typescript-action/./node_modules/source-map/lib/source-map-generator.js","../webpack://typescript-action/./node_modules/source-map/lib/source-node.js","../webpack://typescript-action/./node_modules/source-map/lib/util.js","../webpack://typescript-action/./node_modules/source-map/source-map.js","../webpack://typescript-action/./node_modules/statuses/index.js","../webpack://typescript-action/./node_modules/string_decoder/index.js","../webpack://typescript-action/./node_modules/supports-color/index.js","../webpack://typescript-action/./node_modules/tmp-promise/index.js","../webpack://typescript-action/./node_modules/tmp/lib/tmp.js","../webpack://typescript-action/./node_modules/tmp/node_modules/rimraf/rimraf.js","../webpack://typescript-action/./node_modules/toidentifier/index.js","../webpack://typescript-action/./node_modules/tslib/tslib.js","../webpack://typescript-action/./node_modules/tunnel/index.js","../webpack://typescript-action/./node_modules/tunnel/lib/tunnel.js","../webpack://typescript-action/./node_modules/universal-user-agent/dist-node/index.js","../webpack://typescript-action/./node_modules/universalify/index.js","../webpack://typescript-action/./node_modules/unpipe/index.js","../webpack://typescript-action/./node_modules/vm2/index.js","../webpack://typescript-action/./node_modules/vm2/lib/helpers.js","../webpack://typescript-action/./node_modules/vm2/lib/main.js","../webpack://typescript-action/./node_modules/wrappy/wrappy.js","../webpack://typescript-action/./node_modules/xregexp/xregexp-all.js","../webpack://typescript-action/./node_modules/yallist/iterator.js","../webpack://typescript-action/./node_modules/yallist/yallist.js","../webpack://typescript-action/./node_modules/@vercel/ncc/dist/ncc/@@notfound.js","../webpack://typescript-action/external \"assert\"","../webpack://typescript-action/external \"buffer\"","../webpack://typescript-action/external \"child_process\"","../webpack://typescript-action/external \"constants\"","../webpack://typescript-action/external \"crypto\"","../webpack://typescript-action/external \"dns\"","../webpack://typescript-action/external \"events\"","../webpack://typescript-action/external \"fs\"","../webpack://typescript-action/external \"http\"","../webpack://typescript-action/external \"https\"","../webpack://typescript-action/external \"net\"","../webpack://typescript-action/external \"os\"","../webpack://typescript-action/external \"path\"","../webpack://typescript-action/external \"perf_hooks\"","../webpack://typescript-action/external \"punycode\"","../webpack://typescript-action/external \"stream\"","../webpack://typescript-action/external \"string_decoder\"","../webpack://typescript-action/external \"timers\"","../webpack://typescript-action/external \"tls\"","../webpack://typescript-action/external \"tty\"","../webpack://typescript-action/external \"url\"","../webpack://typescript-action/external \"util\"","../webpack://typescript-action/external \"vm\"","../webpack://typescript-action/external \"zlib\"","../webpack://typescript-action/webpack/bootstrap","../webpack://typescript-action/webpack/runtime/compat","../webpack://typescript-action/webpack/startup"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.exportAttachments = void 0;\nconst core = __importStar(require(\"@actions/core\"));\nconst exec = __importStar(require(\"@actions/exec\"));\nconst os = __importStar(require(\"os\"));\nconst path = __importStar(require(\"path\"));\nconst image_size_1 = __importDefault(require(\"image-size\"));\nfunction exportAttachments(parser, activity) {\n return __awaiter(this, void 0, void 0, function* () {\n activity.attachments = activity.attachments || [];\n if (activity.attachments) {\n for (const attachment of activity.attachments) {\n if (attachment.filename && attachment.payloadRef) {\n const outputPath = path.join(os.tmpdir(), attachment.filename);\n const image = yield parser.exportObject(attachment.payloadRef.id, outputPath);\n let output = '';\n const options = {\n silent: true,\n listeners: {\n stdout: (data) => {\n output += data.toString();\n }\n }\n };\n try {\n const dimensions = (0, image_size_1.default)(image);\n attachment.dimensions = dimensions;\n if (image && core.getInput('token')) {\n yield exec.exec('curl', [\n '-X',\n 'POST',\n 'https://xcresulttool-file.herokuapp.com/file',\n '-d',\n image.toString('base64')\n ], options);\n const response = JSON.parse(output);\n if (response) {\n attachment.link = response.link;\n }\n }\n }\n catch (error) {\n core.error(error);\n }\n }\n }\n }\n });\n}\nexports.exportAttachments = exportAttachments;\n","\"use strict\";\n/*eslint-disable no-shadow */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Formatter = void 0;\nconst Image = __importStar(require(\"./image\"));\nconst path = __importStar(require(\"path\"));\nconst report_1 = require(\"./report\");\nconst markdown_1 = require(\"./markdown\");\nconst parser_1 = require(\"./parser\");\nconst attachment_1 = require(\"./attachment\");\nconst passedIcon = Image.testStatus('Success');\nconst failedIcon = Image.testStatus('Failure');\nconst skippedIcon = Image.testStatus('Skipped');\nconst expectedFailureIcon = Image.testStatus('Expected Failure');\nconst backIcon = Image.icon('back.png');\nconst testClassIcon = Image.icon('test-class.png');\nconst testMethodIcon = Image.icon('test-method.png');\nconst attachmentIcon = Image.icon('attachment.png');\nclass Formatter {\n constructor(bundlePath) {\n this.summaries = '';\n this.details = '';\n this.bundlePath = bundlePath;\n this.parser = new parser_1.Parser(this.bundlePath);\n }\n format() {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const actionsInvocationRecord = yield this.parser.parse();\n const testReport = new report_1.TestReport();\n if (actionsInvocationRecord.metadataRef) {\n const metadata = yield this.parser.parse(actionsInvocationRecord.metadataRef.id);\n testReport.entityName = (_a = metadata.schemeIdentifier) === null || _a === void 0 ? void 0 : _a.entityName;\n testReport.creatingWorkspaceFilePath = metadata.creatingWorkspaceFilePath;\n }\n if (actionsInvocationRecord.actions) {\n for (const action of actionsInvocationRecord.actions) {\n if (action.actionResult) {\n if (action.actionResult.testsRef) {\n const testReportChapter = new report_1.TestReportChapter(action.schemeCommandName, action.runDestination, action.title);\n testReport.chapters.push(testReportChapter);\n const actionTestPlanRunSummaries = yield this.parser.parse(action.actionResult.testsRef.id);\n for (const summary of actionTestPlanRunSummaries.summaries) {\n for (const testableSummary of summary.testableSummaries) {\n const testSummaries = [];\n yield this.collectTestSummaries(testableSummary, testableSummary.tests, testSummaries);\n if (testableSummary.name) {\n testReportChapter.sections[testableSummary.name] =\n new report_1.TestReportSection(testableSummary, testSummaries);\n }\n }\n }\n }\n }\n }\n }\n class TestSummaryStats {\n constructor() {\n this.passed = 0;\n this.failed = 0;\n this.skipped = 0;\n this.expectedFailure = 0;\n this.total = 0;\n }\n }\n const testSummary = {\n stats: new TestSummaryStats(),\n duration: 0,\n groups: {}\n };\n for (const chapter of testReport.chapters) {\n const chapterSummary = new report_1.TestReportChapterSummary();\n chapter.summaries.push(chapterSummary);\n for (const [identifier, results] of Object.entries(chapter.sections)) {\n const detailGroup = results.details.reduce((groups, detail) => {\n const d = detail;\n if (d.group) {\n if (groups[d.group]) {\n groups[d.group].push(detail);\n }\n else {\n groups[d.group] = [detail];\n }\n }\n return groups;\n }, {});\n const group = {};\n for (const [identifier, details] of Object.entries(detailGroup)) {\n const [stats, duration] = details.reduce(([stats, duration], detail) => {\n const test = detail;\n switch (test.testStatus) {\n case 'Success':\n stats.passed++;\n break;\n case 'Failure':\n stats.failed++;\n break;\n case 'Skipped':\n stats.skipped++;\n break;\n case 'Expected Failure':\n stats.expectedFailure++;\n break;\n }\n stats.total++;\n if (test.duration) {\n duration = test.duration;\n }\n return [stats, duration];\n }, [new TestSummaryStats(), 0]);\n testSummary.stats.passed += stats.passed;\n testSummary.stats.failed += stats.failed;\n testSummary.stats.skipped += stats.skipped;\n testSummary.stats.expectedFailure += stats.expectedFailure;\n testSummary.stats.total += stats.total;\n testSummary.duration += duration;\n group[identifier] = {\n passed: stats.passed,\n failed: stats.failed,\n skipped: stats.skipped,\n expectedFailure: stats.expectedFailure,\n total: stats.total\n };\n }\n const groups = testSummary.groups;\n groups[identifier] = group;\n }\n chapterSummary.content.push('### Summary');\n chapterSummary.content.push('
Total`,\n ` | ${passedIcon} Passed`,\n ` | ${failedIcon} Failed`,\n ` | ${skippedIcon} Skipped`,\n ` | ${expectedFailureIcon} Expected Failure`,\n ` | :stopwatch: Time`\n ].join('');\n chapterSummary.content.push(header);\n chapterSummary.content.push(' |
---|---|---|---|---|---|
${testSummary.stats.total}`,\n ` | ${testSummary.stats.passed}`,\n ` | ${failedCount}`,\n ` | ${testSummary.stats.skipped}`,\n ` | ${testSummary.stats.expectedFailure}`,\n ` | ${duration}s`\n ].join('');\n chapterSummary.content.push(cols);\n chapterSummary.content.push(' |
Test`,\n ` | Total`,\n ` | ${passedIcon}`,\n ` | ${failedIcon}`,\n ` | ${skippedIcon}`,\n ` | ${expectedFailureIcon}`\n ].join('');\n chapterSummary.content.push(header);\n for (const [identifier, stats] of Object.entries(group)) {\n chapterSummary.content.push(' |
---|---|---|---|---|---|
${testClassAnchor}${testClassLink}`,\n ` | ${stats.total}`,\n ` | ${stats.passed}`,\n ` | ${failedCount}`,\n ` | ${stats.skipped}`,\n ` | ${stats.expectedFailure}`\n ].join('');\n chapterSummary.content.push(cols);\n }\n chapterSummary.content.push('');\n chapterSummary.content.push(' |
${passedIcon}`,\n ` | ${failedIcon}`,\n ` | ${skippedIcon}`,\n ` | ${expectedFailureIcon}`,\n ` | :stopwatch:`\n ].join('');\n testsStatsLines.push(header);\n testsStatsLines.push(' |
---|---|---|---|---|
${passed} (${passedRate}%)`,\n ` | ${failedCount}`,\n ` | ${skipped} (${skippedRate}%)`,\n ` | ${expectedFailure} (${expectedFailureRate}%)`,\n ` | ${testDuration}s`\n ].join('');\n testsStatsLines.push(cols);\n testsStatsLines.push(' |
${groupStatusImage} | ${testResultContent}`;\n }\n else {\n testResultRow = ` |
${testResultContent}`;\n }\n }\n else {\n testResultRow = ` | |
${status} | ${testResultContent}`;\n }\n testDetailTable.push(testResultRow);\n }\n }\n testDetailTable.push(` |
File | ${fileLocation}` +\n ` |
Issue Type | ${failureSummary.issueType}` +\n ` |
Message | ${failureSummary.message}` +\n ` |
Total`,\n ` | ${passedIcon} Passed`,\n ` | ${failedIcon} Failed`,\n ` | ${skippedIcon} Skipped`,\n ` | ${expectedFailureIcon} Expected Failure`,\n ` | :stopwatch: Time`\n ].join('');\n chapterSummary.content.push(header);\n chapterSummary.content.push(' |
---|---|---|---|---|---|
${testSummary.stats.total}`,\n ` | ${testSummary.stats.passed}`,\n ` | ${failedCount}`,\n ` | ${testSummary.stats.skipped}`,\n ` | ${testSummary.stats.expectedFailure}`,\n ` | ${duration}s`\n ].join('');\n chapterSummary.content.push(cols);\n chapterSummary.content.push(' |
Test`,\n ` | Total`,\n ` | ${passedIcon}`,\n ` | ${failedIcon}`,\n ` | ${skippedIcon}`,\n ` | ${expectedFailureIcon}`\n ].join('');\n chapterSummary.content.push(header);\n for (const [identifier, stats] of Object.entries(group)) {\n chapterSummary.content.push(' |
---|---|---|---|---|---|
${testClassAnchor}${testClassLink}`,\n ` | ${stats.total}`,\n ` | ${stats.passed}`,\n ` | ${failedCount}`,\n ` | ${stats.skipped}`,\n ` | ${stats.expectedFailure}`\n ].join('');\n chapterSummary.content.push(cols);\n }\n chapterSummary.content.push('');\n chapterSummary.content.push(' |
${passedIcon}`,\n ` | ${failedIcon}`,\n ` | ${skippedIcon}`,\n ` | ${expectedFailureIcon}`,\n ` | :stopwatch:`\n ].join('');\n testsStatsLines.push(header);\n testsStatsLines.push(' |
---|---|---|---|---|
${passed} (${passedRate}%)`,\n ` | ${failedCount}`,\n ` | ${skipped} (${skippedRate}%)`,\n ` | ${expectedFailure} (${expectedFailureRate}%)`,\n ` | ${testDuration}s`\n ].join('');\n testsStatsLines.push(cols);\n testsStatsLines.push(' |
${groupStatusImage} | ${testResultContent}`;\n }\n else {\n testResultRow = ` |
${testResultContent}`;\n }\n }\n else {\n testResultRow = ` | |
${status} | ${testResultContent}`;\n }\n testDetailTable.push(testResultRow);\n }\n }\n testDetailTable.push(` |
File | ${fileLocation}` +\n ` |
Issue Type | ${failureSummary.issueType}` +\n ` |
Message | ${failureSummary.message}` +\n ` |