MCPcopy Index your code
hub / github.com/ampproject/amphtml / commentTemplate

Function commentTemplate

build-system/status-page/comment.js:12–26  ·  view source on GitHub ↗
(channels)

Source from the content-addressed store, hash-verified

10const body = process.env.BODY || '';
11
12const commentTemplate = (channels) => {
13 const reducer = (current, step) => {
14 return current + `- [ ] <!-- status=${step.status} --> ${step.text} \n`;
15 };
16
17 return `
18 #### 🌸 Cherry-Pick Progress 🌸
19 Hi @${user}, thanks for filing this cherry-pick request!
20 Seeing that this affects ${channels.join(
21 ' and '
22 )}, [status.amp.dev](https://status.amp.dev) will be updated with progress of the fix.
23 Please update this tracker as each step is completed.
24 ${steps.reduce(reducer, '')}
25 `;
26};
27
28/**
29 * Add progress comment for Stable and LTS cherry-picks

Callers 1

addCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected