Adding a contributing doc - #3414
Conversation
|
I would prefer the pull request template have some of the info from the issue template as sometimes folks just go straight to the PR. I also think it's a bit harder to keep the two in sync. I think Spark's template is pretty good |
|
@rdblue I realized that since this is in the root directory it's outside of the ignore path for all of the github workflows |
|
|
||
| ## Pull Request Process | ||
|
|
||
| Pull requests are the preferred mechanism for contributing to Iceberg. PRs will be automatically labeled based on the content by our github-actions labeling bot. Although it is not required, if the PR is related to an issue, it's helpful to prefix your PR title with the issue number surrounded by brackets, for example `[1234] <PR title>`. Another common practice is to prefix the PR title with `[WIP]` if it's a PR that you opened for visibility and may not necessarily be ready for review or merging. |
There was a problem hiding this comment.
Actually, we don't use issue references or WIP like this. A WIP PR should be marked as a draft. And for related issues, the description should state "Closes #1234" instead of using brackets in the description. That will automatically close the issue, and takes less of the limited summary space.
We also find it helpful if people include a prefix like "Build:", "Docs:", "Spark:", "Flink:", "Core:", "API:", etc. to give reviewers context.
There was a problem hiding this comment.
Updated this to:
Although it is not required, if the PR is related to an issue, it's
helpful to prefix your PR title with the issue number surrounded by brackets, for exampleCloses #1234 <PR title>.
With this format of issue reference in the PR title, the issue will be automatically closed when the PR is merged.
It's also helpful to include additional prefixes that help provide context to PR reviewers, such asBuild:,Docs:,
Spark:,Flink:,Core:,API:. Another thing to keep in mind is that if it's a PR that you've opened for
visibility and may not necessarily be ready for review or merging, be sure to convert the PR to a draft.
There was a problem hiding this comment.
We actually don't want people putting the issue in the title. That makes issue lists harder to read. Instead, the "Closes #1234" should be in the issue description.
|
|
||
| Pull requests are the preferred mechanism for contributing to Iceberg. PRs will be automatically labeled based on the content by our github-actions labeling bot. Although it is not required, if the PR is related to an issue, it's helpful to prefix your PR title with the issue number surrounded by brackets, for example `[1234] <PR title>`. Another common practice is to prefix the PR title with `[WIP]` if it's a PR that you opened for visibility and may not necessarily be ready for review or merging. | ||
|
|
||
| ## Styling |
|
|
||
| ## Styling | ||
|
|
||
| For Java styling, check out the section [Setting up IDE and Code Style](https://iceberg.apache.org/community/#setting-up-ide-and-code-style) from the documentation site. For Python, please use the tox command `tox -e format` to apply autoformatting to the project. |
There was a problem hiding this comment.
This is a good start. Once this is committed, I'll add some style guidelines that we follow as well.
|
|
||
| For Java styling, check out the section [Setting up IDE and Code Style](https://iceberg.apache.org/community/#setting-up-ide-and-code-style) from the documentation site. For Python, please use the tox command `tox -e format` to apply autoformatting to the project. | ||
|
|
||
| ## Building the Project Locally |
There was a problem hiding this comment.
Might want to move this above Style, since the style section is probably going to get a lot longer.
|
|
||
| If you are thinking of contributing but first would like to discuss the change you wish to make, we welcome you to | ||
| head over to the [Community](https://iceberg.apache.org/community/) page on the official Iceberg documentation site | ||
| to find a number of ways to connect with the community, including slack and our mailing lists. Of course, always feel |
There was a problem hiding this comment.
I would just add hyperlinks for "slack" and "mailing lists" to just make this a little easier
|
|
||
| Pull requests are the preferred mechanism for contributing to Iceberg. PRs will be automatically labeled based on | ||
| the content by our github-actions labeling bot. Although it is not required, if the PR is related to an issue, it's | ||
| helpful to prefix your PR title with the issue number surrounded by brackets, for example `Closes #1234 <PR title>`. |
There was a problem hiding this comment.
I thought you add this part in a comment? If not I"ll do this from now on :) I'm used to our prs just being
Component: Issue Title
RussellSpitzer
left a comment
There was a problem hiding this comment.
Added a few suggestions, but I think this is a great start. I think we should get these drafts up and online ASAP and do fine tuning later.
|
As Russell suggests, I'm going to merge this to get it out there. We can fine-tune it later. |
I noticed that the community profile (displayed on the Insights tab) is not all nice and green so I thought we could tackle these items (read more here: About community profiles for public repositories). This PR adds a simple contributing guideline doc, everyone please chime in with things that should be added/removed! :)
As for the Issue template and PR template, I'd like to suggest some variation of these templates created by Steven Mao: https://github.com/stevemao/github-issue-templates
Simple Issues template:
Expected Behavior
Actual Behavior (please include stacktrace if possible)
Steps to Reproduce the Problem
Specifications
Simple Pull Request template:
Fixes #
Proposed Changes
As for the last item, a repo admin should be able to enable reported content from the settings page. Here's more info from the github docs: https://docs.github.com/en/communities/moderating-comments-and-conversations/managing-reported-content-in-your-organizations-repository