| 10 | const body = process.env.BODY || ''; |
| 11 | |
| 12 | const 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 |