mirror of
https://github.com/Cute-Dress/Dress.git
synced 2026-04-18 14:45:37 +00:00
[Enhancement] 添加自动修复工作流 (#337)
All checks were successful
Mark stale issues and pull requests / stale (push) Successful in 4s
All checks were successful
Mark stale issues and pull requests / stale (push) Successful in 4s
* feat: add GitHub Action to automatically strip EXIF data and compress images via PR comments * fix: 提升尝试压缩后修复失败的用户体验 * feat: 现在修复结果会直接基于源 comment 做 update * fix: 修复工作流仍然报告失败的问题 * doc: 添加自动修复引导 * ci: 改用 `github.rest.repos.compareCommitsWithBasehead` * ci: 增强检查工作流
This commit is contained in:
6
.github/workflows/check_exif.yml
vendored
6
.github/workflows/check_exif.yml
vendored
@@ -128,7 +128,11 @@ jobs:
|
||||
'**仅高敏感字段(GPS / 地址 / 联系方式)需要移除,普通摄影参数(光圈、快门等)无需处理。**',
|
||||
'**Only high-sensitivity fields (GPS / address / contact info) need to be removed. Regular photography parameters (aperture, shutter speed, etc.) are fine to keep.**',
|
||||
'',
|
||||
`📖 [EXIF 说明 / EXIF Guide](https://github.com/${owner}/${repo}/blob/master/EXIF.md) · [CONTRIBUTING.md](https://github.com/${owner}/${repo}/blob/master/CONTRIBUTING.md)`
|
||||
`📖 [EXIF 说明 / EXIF Guide](https://github.com/${owner}/${repo}/blob/master/EXIF.md) · [CONTRIBUTING.md](https://github.com/${owner}/${repo}/blob/master/CONTRIBUTING.md)`,
|
||||
'---',
|
||||
'',
|
||||
'<small>温馨提示: 您可以直接使用 `/auto-fix` 命令来自动修复这些文件。</small>',
|
||||
'<small>Warm reminder: You can use the `/auto-fix` command to automatically fix these files.</small>'
|
||||
].join('\n');
|
||||
try { await github.rest.issues.createComment({ owner, repo, issue_number: prNumber, body }); }
|
||||
catch (e) { core.warning(`Cannot comment: ${e.message}. Check repo Settings > Actions > Workflow permissions.`); }
|
||||
|
||||
Reference in New Issue
Block a user