此 PR 唯一的 commit 8cc8c414 沒有 GPG 簽章(驗證狀態為 not_signed_commit),而我的 Gitea 帳號 alex 目前未設定任何 GPG 簽署金鑰,因此 Gitea 在 PR 頁面顯示「There is no key available to sign this commit」(找不到可用來簽署此 commit 的金鑰)。
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
實作 bear CLI 的 PAT(個人存取權杖)模式最小可用版本,對應 issue #2。
範圍
bear login --token <PAT>:以 PAT 驗證GET /userinfo後寫入憑證檔(0600),全程免瀏覽器bear whoami:GET /userinfo顯示身分 claims(支援--json)bear token:印出 access token 供 pipe(--refresh在 PAT 模式無 refresh token,忽略並警告)bear logout:清除本機憑證(PAT 需至網頁撤銷)bear status:純本機判定登入狀態技術
bear),HTTP 一律使用Req(與 bear 主專案一致)~/.local/state/bear/credentials.json:原子寫入(rename)、0600、O_CREAT|O_EXCL 防 symlink--issuer(優先序 flag > BEAR_ISSUER > 設定檔 > 預設)、--config、--json、-v、-h、--versionmix precommit(compile --warnings-as-errors + format + test)全綠未包含
/device_authorization等)完成後再接bear apps(P3)暫緩為甚麼PR頁面顯示There is no key available to sign this commit.?
感謝提問,這是 Gitea 的 commit 簽章提示,不是錯誤。說明如下:
原因
此 PR 唯一的 commit
8cc8c414沒有 GPG 簽章(驗證狀態為not_signed_commit),而我的 Gitea 帳號alex目前未設定任何 GPG 簽署金鑰,因此 Gitea 在 PR 頁面顯示「There is no key available to sign this commit」(找不到可用來簽署此 commit 的金鑰)。是否影響合併
不影響。此 repo 目前沒有啟用任何 branch protection(分支保護)要求「必須簽章提交」,所以這只是提示,不會阻擋審核或合併。
若要啟用 commit 簽章
user.signingkey+commit.gpgsign=true)。若組織希望 bear-cli 一律要求簽章提交,我可以協助設定 GPG 並補簽,再視需要請 repo 管理員開啟「Require signed commits」。需要我處理嗎?
請設定 GPG 並補簽
收到,我來設定 GPG 簽章並補簽這個 commit。步驟:① 產生 alex 帳號專用的 GPG 金鑰(UID alex@alterminal.com);② 把公鑰加入 Gitea 帳號(Settings → SSH/GPG Keys);③ 將 commit 的 committer e-mail 由 alex@localhost 改為 alex@alterminal.com(讓簽章能對上帳號信箱)並補簽;④ 強制推送更新 PR 分支。完成後再回報。
8cc8c41416to870011f8a7已完成 GPG 簽章設定與補簽,PR 現在顯示 verified。
做了什麼
alex <alex@alterminal.com>):8D839021FEE30FA6(指紋AB135F10783D5FC09C7770558D839021FEE30FA6)C6A623EE5633A1D88cc8c414改寫為870011f8,同時把 author/committer e-mail 由alex@localhost更正為alex@alterminal.com(與金鑰 UID、帳號信箱一致)。Gitea 驗證狀態為 verified(signer:alex / C6A623EE5633A1D8)。備註
~/.gnupg,未寫入任何 commit/PR。若組織有更嚴格要求可改為密碼保護+手動輸入。commit.gpgsign=true與user.signingkey,後續此倉庫的 commit 會自動簽章。Pull request closed