Skip to content

Commit

Permalink
chore: 주석 수정 및 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Jun 2, 2024
1 parent 0056388 commit 616e774
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/actions/get-score-comments/action.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const core = require('@actions/core');
console.log('꼽냐?');

try {
console.log('hello');

// 점수 지표 파일 정보
const fs = require('fs');
const results = JSON.parse(fs.readFileSync('./lhci_reports/manifest.json'));
Expand Down Expand Up @@ -48,10 +45,10 @@ try {
});
});

// 점수에 따른 색상 표시
// 점수 색상 표시
const formatScore = res => (res >= 90 ? '🟢' : res >= 70 ? '🟠' : '🔴');

// 상세 지표의 표준 점수에 따른 색상 표시
// 상세 지표 점수 색상 표시
const detailScore = (value, metric) => {
switch (metric) {
case 'first-contentful-paint':
Expand Down Expand Up @@ -99,21 +96,6 @@ try {

// comments 내보내기
core.setOutput('comments', comments);

// // Comment 작성
// if (comments && context.issue.number) {
// const issue_number = context.issue.number;
// const repo = context.repo.repo;
// const owner = context.repo.owner;
// github.issues.createComment({
// owner,
// repo,
// issue_number,
// body: comments,
// });
// } else {
// console.log('No PR COMMENT!');
// }
} catch (error) {
console.error(error);
}

0 comments on commit 616e774

Please sign in to comment.