ci check `lint templates` flags all authors with localhost in name/email

未關閉 適合新手
#63,249 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
76/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
github-actions, shell
領域
ci-cd

研究方向

從回報所指的第39行 common/scripts/lint-commits 開始,檢查它如何驗證提交作者的姓名和電子郵件地址。透過在作者姓名或電子郵件地址中使用 localhost 或 localdomain 建立提交,並執行 CI 檢查 Lint templates 來重現問題。當這些作者資訊不再造成 lint 錯誤,且檢查仍能偵測出預期的無效情況時,工作即告完成。

由索引模型根據 Issue 內容生成。

描述

bug needs-testing
Is this a new report?

Yes

System Info

Void 6.18.58_1 x86_64 GenuineIntel notuptodate rFFFFFF

Package(s) Affected

void-packages

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

CI Lint templates > Run lints does not find errors on commit author when email/name contains localhost

Actual behaviour

https://github.com/void-linux/void-packages/pull/63246#issuecomment-6473096936
https://github.com/void-linux/void-packages/actions/runs/40726730986/job/122951887624?pr=63246
https://github.com/void-linux/void-packages/blob/d95dfc30bc40c1dafe4877f5d15307bbcce8801e/common/scripts/lint-commits#L39 Error: authored by localhost email

Steps to reproduce

Commit change with author email/name containing localhost/localdomain and push to pr to run on ci

主要語言
Shell
星號
3.5k
分支
2.8k
平均合併
2 天 7 小時
30 天內合併 PR
327

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

void-linux/void-packages 的其他 Issue

查看 void-linux/void-packages 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。