-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add Issue and PR templates to the project #591
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
Add Issue and PR templates to the project #591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just a couple of ideas.
|
||
|
||
**Environment** | ||
* operator-sdk version: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to have two version here (maybe?) 1. is the binary's version and 2. the version from Gopkg.Toml.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gopkg.toml exists only for go
type operators, right? Might need to clarify that that version only applies to go
operators.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There could also be a potential mismatch of the version from the operator-sdk binary and the base image for the ansible operator that a user is using? Don't know how to capture that though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shawn-hurley The ansible-operator logs should show the version of the vendored sdk.
INFO[0000] Go Version: go1.10.3
INFO[0000] Go OS/Arch: linux/amd64
INFO[0000] operator-sdk Version: 0.0.6+git
INFO[0000] Starting to serve on 127.0.0.1:8888
We could ask them to check the Gopkg.toml for a Go type operator. And the logs of their operator for an ansible type operator to check the version of the sdk. Assuming they can run the operator.
insert output of `kubectl version` here | ||
|
||
* Kubernetes cluster kind: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add a field about using ansible/go/helm. Don't have a good idea on wording though. Maybe Are you writing your operator in ansible, go, or helm?
.
.github/ISSUE_TEMPLATE/Question.md
Outdated
|
||
--- | ||
|
||
## Question |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to understand the context of the question.
something like Are you asking about community best practices, how to implement a specific feature, or about general context and help around the operator-sdk
?
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that could make it easier for us when we're quickly looking through recent issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shawn-hurley where were you thinking of putting the above text? As a comment or as a section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking it would be a section similar to the Operator-SDK Version:
above. I think we may want to put this before the Question header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shawn-hurley Done, let me know if this is what you had in mind?
@@ -0,0 +1,5 @@ | |||
<!-- | |||
Before making a PR, please read our contributing guidelines https://github.com/operator-framework/operator-sdk/blob/master/CONTRIBUTING.MD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we ask submitters to make sure their branches are rebased to the latest revision of the destination branch before submitting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say yes. Especially given that we vendor the contributor's branch as the source in our e2e test.
If their branch is significantly behind the master there can be conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would be useful considering that the tests tend to fail a lot if they are not recently rebased simply due to the way we have to handle some of our tests due to dep.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
Before making a PR, please read our contributing guidelines https://github.com/operator-framework/operator-sdk/blob/master/CONTRIBUTING.MD | ||
--!> | ||
|
||
Patch: Bug Fix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this show up as is, in the PR template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was more like a suggestion, no clue what to add here TBH. Any ideas? If none will just leave the commented out section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What we put in here probably depends on whether we require an open issue for a PR. My reading of the CONTRIBUTING.MD file leads me to believe we don't.
If that's true, we'll probably want to borrow some from the bug fix and feature request templates to ask the submitter to provide details about what the PR changes and the motivation for those changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joelanford good idea, added some more information. Feel free to suggest some more things, no clue if this makes sense currently or how it will look. :)
Any other suggestions @shawn-hurley @hasbro17 @joelanford @AlexNPavel. We can also adjust when this is merged and when we see how it looks like. |
LGTM |
One thing we could add to the PR template is the reminder to update the CHANGELOG accordingly. We haven't done a good job of keeping that up to date ourselves so this will be a good reminder. |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hold off on merging until the refactor branch is merged into the master.
https://github.com/operator-framework/operator-sdk/tree/refactor/rebase-master-add-AO-commands
I personally think that should be done on release as a final PR before the release is cut. Not sure our external contributors would want to keep that updated. |
.github/ISSUE_TEMPLATE/Bug_report.md
Outdated
|
||
* Kubernetes cluster kind: | ||
|
||
* Are you writing your operator in ansible, go, or helm? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we don't have helm yet. So probably remove helm.
@lilic That's kind of what I wanted to remedy. It's easy to forget changes made at the time of cutting a release when you have to go through the commit/PR history to decide what changes (added/updated/removed) are of note. Although I agree that external contributors might not always know what should go in the CHANGELOG. I wanted it more of a reminder for us. But it's not a big issue, we can leave it out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after nit
Agreed! I noticed we already have that in the |
b3065ec
to
248c61e
Compare
These files are used as issue templates.
This file will be used when creating default issue.
248c61e
to
f225b9b
Compare
As per the suggestion in the issue #585 I opened, we went with using the
.github
directory to store all the issue and PR templates. Inspired by https://github.com/babel/babel.Suggestions are very welcome, especially for the PR template.
Closes #585