-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
design-review.js
57 lines (45 loc) · 2.58 KB
/
design-review.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
const sessionDurationHours = 1;
/**
* Times in this rotation are adjusted according to Daylight Savings.
* If these are updated, the schedule on update-session-issues.yml should
* also be updated correspondingly.
*/
const timeRotationUtc = [
[/* wed */ 3, '16:30', 'Africa/Europe/western Asia'],
[/* wed */ 3, '21:00', 'Americas'],
[/* wed */ 3, '16:30', 'Africa/Europe/western Asia'],
[/* wed */ 3, '21:00', 'Americas'],
[/* wed */ 3, '16:30', 'Africa/Europe/western Asia'],
[/* wed */ 3, '21:00', 'Americas'],
[/* wed */ 3, '16:30', 'Africa/Europe/western Asia'],
[/* wed */ 3, '21:00', 'Americas'],
];
const timeRotationStart = new Date('2021-12-01');
// All previous weeks have already been handled.
const generateWeeksFromNow = 3;
const labels = ['Type: Design Review'];
const createTitle = ({datetimeUtc, region}) =>
`Design Review ${datetimeUtc} UTC (${region})`;
const vcUrl = 'https://bit.ly/amp-dr';
const calendarEventTitle = 'AMP Project Design Review';
const calendarEventDetails = vcUrl;
const createBody = ({calendarUrl, timeUrl, timeUtc}) =>
`
Time: [${timeUtc} UTC](${timeUrl}) ([add to Google Calendar](${calendarUrl}))
Location: [Video conference via Google Meet](${vcUrl})
The AMP community holds weekly engineering [design reviews](https://github.com/ampproject/amphtml/blob/main/docs/design-reviews.md). **We encourage everyone in the community to participate in these design reviews.**
If you are interested in bringing your design to design review, read the [design review documentation](https://github.com/ampproject/amphtml/blob/main/docs/design-reviews.md) and add a link to your design doc or issue by the Monday before your design review.
When attending a design review please read through the designs _before_ the design review starts. This allows us to spend more time on discussion of the design.
We rotate our design review between times that work better for different parts of the world as described in our [design review documentation](https://github.com/ampproject/amphtml/blob/main/docs/design-reviews.md), but you are welcome to attend any design review. If you cannot make any of the design reviews but have a design to discuss please let us know in the \`#contributing\` channel on [Slack](https://github.com/ampproject/amphtml/blob/main/docs/contributing.md#discussion-channels) and we will find a time that works for you.
`;
module.exports = /** @type {import('../types').TemplateDef} */ ({
calendarEventTitle,
calendarEventDetails,
sessionDurationHours,
timeRotationUtc,
timeRotationStart,
generateWeeksFromNow,
labels,
createTitle,
createBody,
});