coder / coder/code-server

[Feat]: Web-based GPG pin entry for signing git commits

未關閉
#5,271 7 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
79.3k
分支
6.8k
平均合併
2 天 6 小時
30 天內合併 PR
41

描述

## What is your suggestion?
When signing git commits with GPG, where the GPG key exists on the server, display a prompt that allows for entry of the GPG pin.

## Why do you want this feature?
If you currently try to commit from the UI when using GPG signing, you get an error:
![image](https://user-images.githubusercontent.com/8848080/173771110-c5fd85df-f875-49d9-9b5d-8c967efdaf40.png)
![image](https://user-images.githubusercontent.com/8848080/173770079-9483009b-b003-4f39-a2bf-e3bb05da685f.png)

```
error: gpg failed to sign the data
fatal: failed to write commit object
```

...but if you use the terminal, it works fine:
```
git commit -m "My Commit Message"
```
![image](https://user-images.githubusercontent.com/8848080/173770228-b0f3fc5f-3463-4d6e-b5ec-6f4789068a9f.png)

This requires me to open the terminal every time I want to commit. I would prefer to use the nice UI.

## Are there any workarounds to get this functionality today?
Not that I know of. I could just be doing something entirely wrong.

## Are you interested in submitting a PR for this?
I wouldn't really know where to begin here, unfortunately, and lack the time at the moment to figure it out.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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