Skip to content

Commit 19d295a

Browse files
committed
update crl gen
1 parent 05e155a commit 19d295a

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

crl-utils.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ async function updateAndCommitCRL (token, owner, repo, reason = 'Update CRL') {
6767
6868
Generated at: ${crl.generatedAt}
6969
Total issued: ${crl.totalIssued}
70-
Total revoked: ${crl.totalRevoked}
71-
72-
🤖 Generated with Claude Code
73-
Co-Authored-By: Claude <noreply@anthropic.com>`
70+
Total revoked: ${crl.totalRevoked}`
7471

7572
execSync(`git commit -m "${commitMessage.replace(/"/g, '\\"')}"`, { stdio: 'inherit' })
7673

generate-crl.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ const path = require('path')
1818
const { getOctokit } = require('@actions/github')
1919

2020
/**
21-
* 从 issue 评论中提取证书信息
21+
* 从 issue 评论中提取证书信息(取最后一条)
2222
*/
2323
function extractCertificateInfoFromComments (comments) {
24-
const certComment = comments.find(c =>
24+
// 从后往前查找最后一条证书签发评论
25+
const certComment = comments.slice().reverse().find(c =>
2526
c.body &&
2627
c.body.includes('✅ Certificate successfully issued') &&
2728
c.body.includes('Serial Number')

0 commit comments

Comments
 (0)