Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Adds support file templates #18

Closed
wants to merge 7 commits into from
Closed

Conversation

weierophinney
Copy link
Member

Adds/proposes the following standard repository templates:

  • LICENSE.md, containing the license; replace {year} with the
    current year during creation.
  • docs/CODE_OF_CONDUCT.md. Formerly, this was CONDUCT.md, but GitHub
    added support for identifying CODE_OF_CONDUCT.md several months ago.
  • docs/CONTRIBUTING.md
  • docs/ISSUE_TEMPLATE.md. This then acts as an issue template for
    users submitting issues, and helps them determine whether they should
    report or not.
  • docs/PULL_REQUEST_TEMPLATE.md. This acts as a template for pull
    request submissions, guiding the user to answer questions we need when
    evaluating whether or not to merge.
  • docs/SUPPORT.md. This new file provides the ability to detail
    locations for different types of support.

GitHub allows a number of documents to be in either the root directory,
a hidden .github/ directory, or the docs/ directory. Pushing them
into the docs/ directory serves two purposes:

  • These files no longer litter the root directory.
  • Our manual sources are usually under a book/ subdirectory; if we
    change the top-level subdirectory from doc/ to docs/, then these
    are grouped appropriately, and still segregated.

Adds/proposes the following standard repository templates:

- `LICENSE.md`, containing the license; replace `{year}` with the
  current year during creation.
- `docs/CODE_OF_CONDUCT.md`. Formerly, this was `CONDUCT.md`, but GitHub
  added support for identifying `CODE_OF_CONDUCT.md` several months ago.
- `docs/CONTRIBUTING.md`
- `docs/ISSUE_TEMPLATE.md`. This then acts as an issue template for
  users submitting issues, and helps them determine whether they should
  report or not.
- `docs/PULL_REQUEST_TEMPLATE.md`. This acts as a template for pull
  request submissions, guiding the user to answer questions we need when
  evaluating whether or not to merge.
- `docs/SUPPORT.md`. This new file provides the ability to detail
  locations for different types of support.

GitHub allows a number of documents to be in either the root directory,
a hidden `.github/` directory, or the `docs/` directory. Pushing them
into the `docs/` directory serves two purposes:

- These files no longer litter the root directory.
- Our manual sources are usually under a `book/` subdirectory; if we
  change the top-level subdirectory from `doc/` to `docs/`, then these
  are grouped appropriately, and still segregated.
Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

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

I like it 👍

If you wish to contribute to this project, please be sure to
read/subscribe to the following resources:

- [Coding Standards](https://github.com/{org}/{repo})
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 have here link to coding standards repo?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes; this was an accident! I'll fix that momentarily.

- Are you creating a new feature?
- Why is the new feature needed? What purpose does it serve?
- How will users use the new feature?

Copy link
Member

Choose a reason for hiding this comment

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

  • Make sure you add only 1 new feature, multiple new features should be split in multiiple PR's.
  • Add tests for the new feature.

- Detail how the bug is invoked currently.
- Detail the original, incorrect behavior.
- Detail the new, expected behavior.

Copy link
Member

Choose a reason for hiding this comment

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

  • Add regression tests to pinpoint the bug and prevent it from happening again.

@@ -0,0 +1,17 @@
Provide a narrative description of what you are trying to accomplish:
Copy link
Member

Choose a reason for hiding this comment

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

Few things can be improved here:

  1. make everything a checkbox - makes it really easy for contributors, and we can later on parse it too, eventually
  2. add some text about the fact that they should check whether this goes to develop, master or a previous maintenance branch
  3. add a checkbox to make sure the tests pass
  4. add a checkbox to make sure they wrote documentation, if this introduces feature behavior
  5. add a checkbox to make sure the CHANGELOG.md was modified

@weierophinney
Copy link
Member Author

Made changes as suggested by @xtreamwayz and @Ocramius .

@@ -0,0 +1,11 @@
Provide a narrative description of what you are trying to accomplish.
Copy link
Member

Choose a reason for hiding this comment

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

Can we add something like this at the top:

swap zendframework/maintainers with zendframework/<project>

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@geerteltink
Copy link
Member

geerteltink commented Sep 25, 2017

Just mentioning here what I just saw: You can add hidden comments into the issue and pr templates. It might be handy for descriptions to explain things to the contributor but you don't want to add to each issue.

### Expected behavior

<!-- What do you think should have happened? -->

Example: https://raw.githubusercontent.com/electron/electron/master/.github/ISSUE_TEMPLATE.md

- For real-time questions, use our
[Slack](https://zendframework-slack.herokuapp.com)
- For detailed questions (e.g., those requiring examples) use our
[forums](https://discourse.zendframework.com/c/contributors)
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 the link here should depend on the package, and for expressive packages it should be:
https://discourse.zendframework.com/c/questions/expressive
and for other components:
https://discourse.zendframework.com/c/questions/components

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@weierophinney weierophinney deleted the feature/templates branch November 7, 2017 22:00
weierophinney added a commit that referenced this pull request Nov 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants