github-tools / github-tools/github

PR templates - support for inputs

Aperta
#678 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3.8k
Fork
809
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

This is a request for a feature:
I'd like to have a possibility to specify a fields, that needs to be/or can be entered easily in a PR template.

For example, I want a developer to link a Jira issue in a PR it is related to (we have it in commit, ideally in each one, but it easier to have it in PR description).

So similarly to simple checkbox, I'd like to have easy way in "Preview" tab for PR authors to enter required inputs.

```markdown
Jira issue: {TODO}
```

Maybe a first version might be as simple as this: the text between `{}` will be replaced (so it will work first time only) on first edit, Maybe someone could extend this for edits.

Also I'd like to have an option to mark it mandatory, for example

```markdown
Jira issue: {*TODO}
```

might be a version for mandatory input, so only draft PR can be created if not filled in.

Thanks!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by locating the PR-template handling entry point in this JavaScript GitHub wrapper and determine whether template input behavior is exposed here or belongs to GitHub itself. Define how placeholder replacement, required fields, first edit, and later edits should work; completion would require an agreed design and tests for those behaviors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, javascript
Ambito
developer-experience
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.