github-tools / github-tools/github
PR templates - support for inputs
- Ngôn ngữ chính
- JavaScript
- Star
- 3.8k
- Fork
- 809
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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!
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github, javascript
- Lĩnh vực
- developer-experience
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100