File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 31
31
BASE_COMMIT_HASH : ${{ github.event.pull_request.base.sha }}
32
32
GITHUB_SHA : ${{ github.event.pull_request.head.sha }}
33
33
MERGE_BASE_COMMIT_HASH : ' ' # placeholder so that we have autocomplete and logs
34
+
34
35
steps :
35
36
- name : Checkout and setup environment
36
37
uses : MetaMask/action-checkout-and-setup@v1
61
62
if : ${{ github.event_name == 'pull_request' }}
62
63
run : yarn tsx development/benchmark-pr-comment.ts
63
64
env :
64
- PR_COMMENT_TOKEN : ${{ secrets.PR_COMMENT_TOKEN }}
65
- OWNER : ${{ github.repository_owner }}
66
- REPOSITORY : ${{ github.event.repository.name }}
67
65
PR_NUMBER : ${{ github.event.pull_request.number }}
68
- GITHUB_SHA : ${{ github.event.pull_request.head.sha }}
69
66
70
67
- name : Upload benchmark results
71
68
if : github.ref == 'refs/heads/main'
Original file line number Diff line number Diff line change @@ -180,10 +180,6 @@ async function fetchLatestMainBenchmarkData(
180
180
181
181
// Take the latest N commits (or all if less than N)
182
182
const latestCommits = commitHashes . slice ( 0 , n ) ;
183
- console . log (
184
- `Processing ${ latestCommits . length } commits: ${ latestCommits . join ( ', ' ) } ` ,
185
- ) ;
186
-
187
183
return aggregateHistoricalBenchmarkData ( latestCommits , data , n ) ;
188
184
} catch ( error ) {
189
185
console . warn ( 'Error fetching historical benchmark data:' , error ) ;
@@ -530,7 +526,7 @@ function generateBenchmarkComment(
530
526
* - OWNER: Repository owner (ex.: "MetaMask")
531
527
* - REPOSITORY: Repository name (ex.: "metamask-extension")
532
528
* - PR_NUMBER: Pull request number to comment on
533
- * - GITHUB_SHA: Head commitSha
529
+ * - GITHUB_SHA: Head commit hash
534
530
*
535
531
* @throws {Error } When GitHub API request fails or required environment variables are missing.
536
532
*/
You can’t perform that action at this time.
0 commit comments