github-tools / github-tools/github
PR templates - support for inputs
- 主要語言
- JavaScript
- 星號
- 3.8k
- 分支
- 809
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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!
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
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.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github, javascript
- 領域
- developer-experience
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100