Skip to content

Commit fbaeb7a

Browse files
authored
ci: small fixes (#117)
1 parent 450b8ec commit fbaeb7a

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/scripts/create-flaky-test-report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function createSlackBlocks(summary, dateDisplay, workflowCount = 0, failedCount
518518
elements: [{
519519
type: 'rich_text_section',
520520
elements: [
521-
{ type: 'text', text: ` ${errorPreview.replace(/\n/g, ' ')}` }
521+
{ type: 'text', text: ` ${errorPreview.replace(/\n/g, ' ')}`, style: { italic: true } }
522522
]
523523
}]
524524
});

.github/scripts/post-merge-validation-tracker.mjs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import { google } from 'googleapis';
22
import { Octokit } from '@octokit/rest';
33

44
const githubToken = process.env.GITHUB_TOKEN;
5-
const spreadsheetId = process.env.SHEET_ID;
5+
// can be found in the excel url e.g. https://docs.google.com/spreadsheets/d/1uSERA-Mczy0pjlrr1vv../
6+
const spreadsheetId = process.env.SHEET_ID; // 1uSERA-Mczy0pjlrr1vv...
7+
// GOOGLE_APPLICATION_CREDENTIALS_BASE64 can be found in MM QA 1pasword vault
68
const googleApplicationCredentialsBase64 = process.env.GOOGLE_APPLICATION_CREDENTIALS_BASE64;
7-
const repo = process.env.REPO;
9+
const repo = process.env.REPO || "MetaMask/metamask-extension";
810
const LOOKBACK_DAYS = parseInt(process.env.LOOKBACK_DAYS ?? '1');
911
const START_HOUR_UTC = parseInt(process.env.START_HOUR_UTC ?? '7');
1012

@@ -57,18 +59,17 @@ function tabTitleFor(repo, releaseLabel) {
5759

5860
function headerRowFor(type) {
5961
const isMobile = String(type).toLowerCase() === 'mobile';
60-
const colF = isMobile ? 'Validated (Android)' : 'Validated (Chrome)';
61-
const colG = isMobile ? 'Validated (iOS)' : 'Validated (Firefox)';
62+
const colG = isMobile ? 'Validated (Android)' : 'Validated (Chrome)';
63+
const colH = isMobile ? 'Validated (iOS)' : 'Validated (Firefox)';
6264
return [
6365
'Pull Request',
6466
'Merged Time (UTC)',
6567
'Author',
6668
'PR Size',
6769
'Auto Tests',
6870
'Team Responsible',
69-
colF,
7071
colG,
71-
'Comments',
72+
colH,
7273
];
7374
}
7475

0 commit comments

Comments
 (0)