This is an automated email from the ASF dual-hosted git repository.

fenbox pushed a commit to branch build-community
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git


The following commit(s) were added to refs/heads/build-community by this push:
     new 2c809877 docs: separate PR page, add CODE OF CONDUCT, Licensing and CLA
2c809877 is described below

commit 2c80987776886e4257a4c7b502803e44c6dd7e35
Author: fen <[email protected]>
AuthorDate: Thu Nov 16 13:23:24 2023 +0800

    docs: separate PR page, add CODE OF CONDUCT, Licensing and CLA
---
 community/contributing/contributing.md | 48 ++++++-----------------
 community/contributing/pull-request.md | 72 ++++++++++++++++++++++++++++++++++
 sidebarsCommunity.js                   |  1 +
 3 files changed, 85 insertions(+), 36 deletions(-)

diff --git a/community/contributing/contributing.md 
b/community/contributing/contributing.md
index b6c0a9a7..0066cfd1 100644
--- a/community/contributing/contributing.md
+++ b/community/contributing/contributing.md
@@ -6,46 +6,22 @@ slug: /contributing
 
 > Thanks for your interest in contributing to Answer!
 
-## How to Contribute
+## Code of Conduct
 
-> You can contribute directly to the github repo by submitting your PR.
+Answer has adopted a Code of Conduct that we expect project participants to 
adhere to. Please read the [full 
text](https://www.apache.org/foundation/policies/conduct.html) so that you can 
understand what actions will and will not be tolerated.
 
-## Creating an Issue
+## Get Innolved
 
-- Feel free to ask your questions if you have any.
-
-## Creating a Pull Request
-
-- We appreciate you taking the time to contribute! Before submitting a pull 
request, we ask that you please create an issue that explains the bug or 
feature request and let us know that you plan on creating a pull request for 
it. If an issue already exists, please comment on that issue letting us know 
you would like to submit a pull request for it. This helps us to keep track of 
the pull request and make sure there isn't duplicated effort.
-
-## Commit Message Guidelines
-
-```
-<type>(<scope>): <subject>
-```
+There are many ways to contribute to Answer, and many of them do not involve 
writing any code. Here's a few ideas to get started:
 
-### type
+- Simply start using Answer. Go through the [Getting 
Started](/docs/installation) guide. Does everything work as expected? If not, 
we're always looking for improvements. Let us know by [opening an issue](#).
+- Look through the [open 
issues](https://github.com/apache/incubator-answer/issues). Provide 
workarounds, ask for clarification, or suggest labels. Help [triage issues](#).
+- If you find an issue you would like to fix, [open a pull request](#). Issues 
tagged as [Good first 
issue](https://github.com/apache/incubator-answer/labels/good%20first%20issue) 
are a good place to get started.
+- Read through the [Answer docs](/docs). If you find anything that is 
confusing or can be improved, you can click "Edit this page" at the bottom of 
most docs, which takes you to the GitHub interface to make and propose changes.
+- Take a look at the [features 
requested](https://github.com/apache/incubator-answer/labels/enhancement) by 
others in the community and consider opening a pull request if you see 
something you want to work on.
 
-- feat: A new feature
-- fix: A bug fix
-- docs: Documentation only changes
-- style: Changes that do not affect the meaning of the code (white-space, 
formatting, missing semi-colons, etc)
-- refactor: A code change that neither fixes a bug nor adds a feature
-- perf: A code change that improves performance
-- test: Adding missing tests
-- chore: Changes to the build process or auxiliary tools and libraries such as 
documentation generation
+Contributions are very welcome. If you think you need help planning your 
contribution, please ping us on Twitter at 
[@answerdev](https://twitter.com/answerdev) and let us know you are looking for 
a bit of help.
 
-### scope
+### Creating an Issue
 
-The scope can be anything specifying place of the commit change.
-
-### subject
-
-The subject contains a succinct description of the change:
-
-- use the imperative, present tense: "change" not "changed" nor "changes"
-- do not capitalize first letter
-- do not place a period . at the end
-- entire length of the commit message must not go over 50 characters
-- describe what the commit does, not what issue it relates to or fixes
-- be brief, yet descriptive - we should have a good understanding of what the 
commit does by reading the subject
+- Feel free to ask your questions if you have any.
diff --git a/community/contributing/pull-request.md 
b/community/contributing/pull-request.md
new file mode 100644
index 00000000..59853c63
--- /dev/null
+++ b/community/contributing/pull-request.md
@@ -0,0 +1,72 @@
+---
+slug: /pull-request
+---
+
+# Pull Request
+
+We appreciate you taking the time to contribute! Before submitting a pull 
request, we ask that you please create an issue that explains the bug or 
feature request and let us know that you plan on creating a pull request for 
it. If an issue already exists, please comment on that issue letting us know 
you would like to submit a pull request for it. This helps us to keep track of 
the pull request and make sure there isn't duplicated effort.
+
+## Semantic Commit Messages
+
+Following the format below when committing message can make you a better 
programmer.
+
+```txt
+<type>(<scope>): <subject>
+```
+
+- `type`
+
+  - `feat`: A new feature.
+  - `fix`: A bug fix.
+  - `docs`: Documentation only changes.
+  - `style`: Changes that do not affect the meaning of the code (white-space, 
formatting, missing semi-colons, etc).
+  - `refactor`: A code change that neither fixes a bug nor adds a feature.
+  - `perf`: A code change that improves performance.
+  - `test`: Adding missing tests.
+  - `chore`: Changes to the build process or auxiliary tools and libraries 
such as documentation generation.
+
+- `scope`
+
+  - The scope can be anything specifying place of the commit change.
+
+- `subject`
+  - The subject contains a succinct description of the change.
+  - Use the imperative, present tense: "change" not "changed" nor "changes".
+  - Do not capitalize first letter.
+  - Do not place a period `.` at the end.
+  - Entire length of the commit message must not go over 50 characters.
+  - Describe what the commit does, not what issue it relates to or fixes.
+  - Be brief, yet descriptive - we should have a good understanding of what 
the commit does by reading the subject.
+
+## Licensing
+
+By contributing to Answer, you agree that your contributions will be licensed 
under its Apache-2.0 license. Copy and paste this to the top of your new 
file(s):
+
+```go
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ ```
+
+## Contributor License Agreement (CLA)
+
+Apache CLA short for Apache Contributor License Agreement, the purpose of this 
agreement is to clearly define the terms under which intellectual property has 
been contributed to the ASF and thereby allow us to defend the project should 
there be a legal dispute regarding the software at some future time. A signed 
ICLA is required to be on file before an individual is given commit rights to 
any ASF project.
+
+For larger contributions, contributed by a single original author, we might 
ask you to submit an [Individual Contributor License Agreement 
(ICLA)](https://www.apache.org/licenses/contributor-agreements.html) form. The 
copyright on your code will still belong to you, but the ICLA helps protect the 
users of Apache Answer. All project Committers have also signed this form.
+
+If you have already signed an Apache ICLA, no need to send an email. As you 
have already submitted an ICLA under your public name, no need to resubmit it. 
If you have never signed an ICLA, please indicate this in your email, and PMC 
can apply for this account directly.
diff --git a/sidebarsCommunity.js b/sidebarsCommunity.js
index 80f1ce4a..8454d9f8 100644
--- a/sidebarsCommunity.js
+++ b/sidebarsCommunity.js
@@ -20,6 +20,7 @@ module.exports = {
             'contributing/frontend',
           ],
         },
+        'contributing/pull-request',
       ],
     },
     {

Reply via email to