coder / coder/code-server

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

Aperta
#5,271 7 commenti 3 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
79.3k
Fork
6.8k
Merge medio
2g 6h
PR unite (30g)
41

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.