MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / applyVars

Function applyVars

scripts/report-ci-failures.mjs:51–57  ·  view source on GitHub ↗
(text, vars)

Source from the content-addressed store, hash-verified

49}
50
51function applyVars(text, vars) {
52 let result = text;
53 for (const [key, value] of Object.entries(vars)) {
54 result = result.replace(new RegExp(`\\{\\{\\s*env\\.${key}\\s*\\}\\}`, 'g'), value);
55 }
56 return result;
57}
58
59export default async function run({ github, context, core }) {
60 const { owner, repo } = context.repo;

Callers 1

runFunction · 0.85

Calls 2

replaceMethod · 0.80
entriesMethod · 0.65

Tested by

no test coverage detected