Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Use GitHub Issue forms as Issue templates #1576

Merged
merged 8 commits into from
Sep 2, 2021

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Sep 1, 2021

Description

Resolves #1452

Add GitHub Issue forms to provide better context and guide users. As the forms can also require information to be entered before the Issue can be created, they can also streamline input from users.

These Issue forms are heavily influenced / copied from Ansible's (thanks @webknjaz!).

options

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR
* Use GitHub Issue form Issue templates to provide more consistent context of requested information from users
   - c.f. 
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
   - Remove all previous GitHub Issue templates
   - These Issue forms are heavily influenced / copied from Ansible's https://github.com/ansible/ansible/
   - Intentionally add a second space after emojis to have them render better on macOS
* Add config.yml to also link users to GitHub Discussions, the pyhf tutorial, and the Code of Conduct

Co-authored-by: Sviatoslav Sydorenko <[email protected]>

@matthewfeickert matthewfeickert added docs Documentation related community Communication with users labels Sep 1, 2021
@matthewfeickert matthewfeickert self-assigned this Sep 1, 2021
@codecov
Copy link

codecov bot commented Sep 1, 2021

Codecov Report

Merging #1576 (209daad) into master (80a27ac) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1576   +/-   ##
=======================================
  Coverage   97.70%   97.70%           
=======================================
  Files          63       63           
  Lines        4050     4050           
  Branches      576      576           
=======================================
  Hits         3957     3957           
  Misses         54       54           
  Partials       39       39           
Flag Coverage Δ
contrib 25.43% <ø> (ø)
unittests 97.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80a27ac...209daad. Read the comment docs.

@matthewfeickert
Copy link
Member Author

matthewfeickert commented Sep 1, 2021

As there is no good way to preview these in a PR, I did all the writing on my fork https://github.com/matthewfeickert/pyhf. I'd invite everyone to go over to my fork's Issues to review the PR.

@alexander-held as you open some of the best Issues on pyhf if we can get your review on what parts of this are good and what parts might slow you down / be obnoxious that would be really helpful!

@kratsg @lukasheinrich Once this is in (I wanted to mention new Issues in the release email) I'll start up the release checklist to release v0.6.3. 👍

Copy link
Member

@alexander-held alexander-held left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The templates look very good to me. I have a few rather minor comments. Is there still the possibility to upload files (e.g. a workspace) in the new bug report form? I spontaneously would not know how to do it.

.github/ISSUE_TEMPLATE/config.yml Outdated Show resolved Hide resolved
Comment on lines 35 to 37
Paste verbatim output from `pyhf --version` below, under
the prompt line. Please don't wrap it with tripple backticks &mdash; your
whole input will be turned into a code snippet automatically.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am assuming that users with editable installs who checkout different versions of pyhf will generally understand the system enough so that this is not an issue, but in principle the output of pyhf --version may not match the actual version in use (this is for example the case for me right now).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-held You just saying that if you are locally installing pyhf and not using a supported release from PyPI then you might get something like

$ pyhf --version
pyhf, version 0.6.3.dev17

? Or do you mean something in addition to this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean something closely related, yes. I won't get the dev tags if I clone the repo, check out tag v0.6.2, pip install -e ., and then check out the master branch. pyhf --version will show pyhf, version 0.6.2 nevertheless, even though I am using a newer version. This is so minor though that it is probably not worth any changes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah gotcha yeah. 👍 I think this is probably okay, as you're like our ultimate power user and you know what you're doing here. I'm more assuming that people who are reporting bugs are installing directly from PyPI.

Though I'll mention here that when you report bugs in the future feel free to just give whatever information is the most relevant here (e.g. git commit hash) or something.


- type: textarea
attributes:
label: pyhf Version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would suggest moving this towards the end of the form, in my experience with existing issues the version seems to rarely matter a lot.

attributes:
label: OS / Environment
description: >-
Provide the name of your operating system and the output of `uname --all`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part seems like it would not matter for the large majority of existing issues. I think it does not hurt to have for completeness, but would suggest moving to the end of the fields. uname --all will not always work, for example on Mac OS I need uname -a.


**HINT:** You can paste [GitHub Gist](https://gist.github.com) links for larger files.
value: |
<!--- Paste your minimal failing Python example code between the quotes below -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe easier to use if the comment is above the cell, and the whole cell is python formatted? Not clear to me why this different style is used here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably to give people a chance to also add text, not just code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I assumed extra text could go into summary / expected results / actual results, but for more complicated setups the opportunity for more text seems useful.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could have two separate fields for code and text, of course. But then, you can never guess how many code blocks the reporter would need.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could have two separate fields for code and text, of course. But then, you can never guess how many code blocks the reporter would need.

Yeah. I think I may stick with doing the hint and then just adding an optional place for people to upload a workspace file. This way I don't have to have both an entry for CLI and for Python APIs.

@webknjaz
Copy link
Contributor

webknjaz commented Sep 1, 2021

Is there still the possibility to upload files (e.g. a workspace) in the new bug report form?

Every textarea field is a separate WYSIWYG, just like the ones where you type in comments. So people can attach files/pictures there as usual.

@matthewfeickert
Copy link
Member Author

Thanks for these comments! I think I've applied all of them now. 👍

@matthewfeickert matthewfeickert force-pushed the docs/update-issue-templates branch from 3013ce9 to 8ed2171 Compare September 2, 2021 12:32
.github/ISSUE_TEMPLATE/bug-report.yml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/config.yml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/documentation-report.yml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/feature-request.yml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/~release-checklist.md Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/bug-report.yml Show resolved Hide resolved
@matthewfeickert matthewfeickert force-pushed the docs/update-issue-templates branch from d4a83aa to 209daad Compare September 2, 2021 17:03
@matthewfeickert matthewfeickert merged commit 7bf6ed2 into master Sep 2, 2021
@matthewfeickert matthewfeickert deleted the docs/update-issue-templates branch September 2, 2021 18:23
matthewfeickert added a commit that referenced this pull request Sep 2, 2021
* Fix the links in the Issue forms to point to the same Issue type label as the form
* Amends PR #1576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Communication with users docs Documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use pip's Issue Template design to guide users towards the right forum
4 participants