Skip to content

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

Merged
merged 3 commits into from
Oct 17, 2018

Conversation

lilic
Copy link
Member

@lilic lilic commented Oct 10, 2018

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

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 10, 2018
Copy link
Member

@shawn-hurley shawn-hurley left a 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:
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor

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:

Copy link
Member

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?.


---

## Question
Copy link
Member

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?

Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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?

Copy link
Contributor

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.

Copy link
Contributor

@AlexNPavel AlexNPavel Oct 10, 2018

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.

Before making a PR, please read our contributing guidelines https://github.com/operator-framework/operator-sdk/blob/master/CONTRIBUTING.MD
--!>

Patch: Bug Fix?
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

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. :)

@lilic
Copy link
Member Author

lilic commented Oct 15, 2018

Any other suggestions @shawn-hurley @hasbro17 @joelanford @AlexNPavel. We can also adjust when this is merged and when we see how it looks like.

@shawn-hurley
Copy link
Member

LGTM

@hasbro17
Copy link
Contributor

One thing we could add to the PR template is the reminder to update the CHANGELOG accordingly.
https://github.com/operator-framework/operator-sdk/blob/master/CHANGELOG.md#unreleased

We haven't done a good job of keeping that up to date ourselves so this will be a good reminder.

@joelanford
Copy link
Member

LGTM

Copy link
Contributor

@hasbro17 hasbro17 left a 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

@lilic
Copy link
Member Author

lilic commented Oct 16, 2018

One thing we could add to the PR template is the reminder to update the CHANGELOG accordingly.

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.


* Kubernetes cluster kind:

* Are you writing your operator in ansible, go, or helm?
Copy link
Contributor

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.

@hasbro17
Copy link
Contributor

I personally think that should be done on release as a final PR before the release is cut

@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.
Updating the CHANGELOG along with the PR helps us keep it up to date.

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.

Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM after nit

@lilic
Copy link
Member Author

lilic commented Oct 17, 2018

Updating the CHANGELOG along with the PR helps us keep it up to date.

Agreed!

I noticed we already have that in the CONTRIBUTING doc https://github.com/operator-framework/operator-sdk/blob/master/CONTRIBUTING.MD#documentation, but lets add it to the PR template in the future if we find we forgot to do it often! :)

@lilic lilic force-pushed the lili/add-issue-pr-template branch from b3065ec to 248c61e Compare October 17, 2018 06:42
lilic added 3 commits October 17, 2018 08:50
These files are used as issue templates.
This file will be used when creating default issue.
@lilic lilic force-pushed the lili/add-issue-pr-template branch from 248c61e to f225b9b Compare October 17, 2018 06:51
@lilic lilic merged commit dcd51eb into operator-framework:master Oct 17, 2018
@lilic lilic deleted the lili/add-issue-pr-template branch October 17, 2018 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants