Skip to content

Commit 28071b9

Browse files
authored
docs: Add contribution and code of conduct guidelines (#17)
1 parent 6e2bfc7 commit 28071b9

File tree

3 files changed

+204
-0
lines changed

3 files changed

+204
-0
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,5 @@ eccounting_backend_api/media/
287287
media/
288288

289289
todo.txt
290+
291+
bin

Diff for: CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

Diff for: CONTRIBUTING.md

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributing to BiT-Forum
2+
3+
Thank you for considering contributing to BiT-Forum! Your contributions are essential for the improvement and success of this project. Please note that this project is currently open for contributions exclusively from students of the BiT (Bahir Dar Institute of Technology). This document outlines the process for contributing and the guidelines to follow.
4+
5+
## Table of Contents
6+
7+
1. [Code of Conduct](#code-of-conduct)
8+
2. [How to Contribute](#how-to-contribute)
9+
- [Submitting an Issue](#submit-issue)
10+
- [Issues and Bugs](#reporting-bugs)
11+
- [Feature Requests](#suggesting-features)
12+
3. [Getting Started](#getting-started)
13+
4. [Making Changes](#making-changes)
14+
- [Commit Message Guidelines](#commit-message-guidelines)
15+
- [Submit Your Changes](#submitting-changes)
16+
5. [Community](#community)
17+
18+
## <a name="code-of-conduct"></a> Code of Conduct
19+
20+
This project adheres to the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [our email](mailto:[email protected]).
21+
22+
## <a name="how-to-contribute"></a> How to Contribute
23+
24+
### <a name="submit-issue"></a> Submitting an Issue
25+
26+
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.
27+
28+
### <a name="reporting-bugs"></a> Found a Bug?
29+
30+
If you find a bug, please report it by [opening an issue](https://github.com/gdscbahirdar/forum-backend/issues/new). Include as much detail as possible to help us diagnose and fix the issue quickly. Details might include:
31+
32+
- Steps to reproduce the bug
33+
- Expected behavior
34+
- Actual behavior
35+
- Screenshots or logs, if applicable
36+
37+
### <a name="suggesting-features"></a> Missing a Feature?
38+
39+
You can _request_ a new feature by [submitting an issue](https://github.com/gdscbahirdar/forum-backend/issues/new) to our GitHub
40+
Repository. If you would like to _implement_ a new feature, please submit an issue with
41+
a proposal for your work first, to be sure that we can use it.
42+
Please consider what kind of change it is:
43+
44+
- For a **Major Feature**, first open an issue and outline your proposal so that it can be
45+
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
46+
and help you to craft the change so that it is successfully accepted into the project. For your issue name, please prefix your proposal with `[discussion]`, for example "[discussion]: your feature idea".
47+
- **Small Features** can be crafted and directly [submitted as a Pull Request](#submitting-changes).
48+
49+
## <a name="getting-started"></a> Getting Started
50+
51+
1. **Fork the Repository**
52+
53+
- Start by forking the repository to your GitHub account.
54+
55+
2. **Clone the Forked Repository**
56+
57+
- Clone the repository to your local machine to start making changes.
58+
59+
3. **Set Up Your Environment**
60+
- Make sure you have the necessary environment set up to start contributing. This might include software, libraries, or other tools specific to this project.
61+
62+
## <a name="making-changes"></a> Making Changes
63+
64+
1. **Create a New Branch**
65+
66+
- For each new feature or fix, create a new branch from `master`. Use a name that reflects your changes, for example: `feat/add-login` or `fix/remove-bug`.
67+
68+
2. **Make Your Changes**
69+
70+
- Implement your feature or fix. Make sure to keep your changes as focused as possible. If you find multiple, unrelated issues, consider making separate branches and pull requests for each.
71+
72+
3. **Follow the Code Style**
73+
74+
- Run `pre-commit install` to create a git hook to fix your styles before you commit.
75+
76+
Alternatively, manually check your code with:
77+
78+
```
79+
ruff check --fix
80+
```
81+
82+
4. **Update Documentation**
83+
- If your changes require it, make sure to add docstrings, comments to your code.
84+
85+
### <a name="commit-message-guidelines"></a> Commit Message Guidelines
86+
87+
To maintain a clear and consistent history, please follow these commit message guidelines:
88+
89+
1. **Use the Imperative Mood**: Write your commit message as if you are giving a command or instruction. For example, "Fix bug causing crash on startup" rather than "Fixed bug" or "Fixes bug."
90+
91+
2. **Keep it Short and Descriptive**: Aim for a concise yet descriptive commit message. The first line should be a summary (50 characters or less), followed by a blank line and then a more detailed explanation if necessary.
92+
93+
3. **Use Prefixes for Clarity**: Start your commit message with a relevant prefix:
94+
95+
- `feat:` for new features
96+
- `fix:` for bug fixes
97+
- `chore:` for updating tasks etc; no production code change
98+
- `docs:` for changes to documentation
99+
- `style:` for formatting, white-space, etc. (does not affect code logic)
100+
- `refactor:` for code changes that neither fixes a bug nor adds a feature
101+
102+
4. **Reference Issues and Pull Requests**: If your commit addresses specific issues or pull requests, include the reference (e.g., `#123`) at the end of the commit message.
103+
104+
### Submitting Your Changes
105+
106+
1. **Pull From `master`**
107+
108+
- Before submitting your pull request, pull from the `master` branch to get the latest changes. Resolve any conflicts that arise.
109+
110+
2. **Commit Your Changes**
111+
112+
- Write clear, concise commit messages that follow any project-specific guidelines.
113+
114+
3. **Push to Your Fork**
115+
116+
- Push your changes to your fork on GitHub.
117+
118+
4. **Open a Pull Request**
119+
120+
- Go to the original repository, and you'll see a prompt to open a pull request. Put as much information as possible about your changes.
121+
122+
5. **Code Review**
123+
124+
- Once your pull request is opened, maintainers will review your changes. Be open to feedback and ready to make adjustments.
125+
126+
After your pull request has been merged, you might want to pull the changes from the original repository to your fork to keep it up to date.
127+
128+
Thank you for contributing to our project! Your efforts make a significant difference.

0 commit comments

Comments
 (0)