github-tools / github-tools/github

PR templates - support for inputs

Offen
#678 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
3.8k
Forks
809
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github, javascript
Bereich
developer-experience
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.