Skip to content

Commit 4d3d805

Browse files
Merge pull request #63 from AnguHashBlog/main
docs(contributing.md): more updates
2 parents a6bc90b + 75b8799 commit 4d3d805

File tree

1 file changed

+91
-67
lines changed

1 file changed

+91
-67
lines changed

CONTRIBUTING.md

Lines changed: 91 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ First off, thanks for taking the time to contribute! ❤️
44

55
All types of contributions are encouraged and valued. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
66

7-
- [Code of Conduct](#code-of-conduct)
8-
- [Question or Problem?](#question-or-problem)
9-
- [Issues and Bugs](#found-a-bug)
10-
- [Feature Requests](#missing-a-feature)
11-
- [Submission Guidelines](#submission-guidelines)
12-
- [Coding Rules](#coding-rules)
13-
- [Commit Message Guidelines](#commit-message-guidelines)
7+
- [Code of Conduct](#code-of-conduct)
8+
- [Question or Problem?](#question-or-problem)
9+
- [Features vs Bugs](#features-vs-bugs)
10+
- [For all Issues](#for-all-issues)
11+
- [Submission Guidelines](#submission-guidelines)
12+
- [Coding Rules](#coding-rules)
13+
- [Commit Message Guidelines](#commit-message-guidelines)
1414

1515
And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
16-
- Star the project
17-
- Tweet about it
18-
- Refer this project in your project's readme
19-
- Mention the project at local meetups and tell your friends/colleagues
16+
17+
- Star the project
18+
- Tweet about it
19+
- Refer this project in your project's readme
20+
- Mention the project at local meetups and tell your friends/colleagues
2021

2122
## Code of Conduct
2223

@@ -25,33 +26,25 @@ This project and everyone participating in it is governed by the
2526
By participating, you are expected to uphold this code. Please report unacceptable behavior
2627
to [monacodelisa](https://github.com/monacodelisa).
2728

28-
2929
## Question or Problem?
3030

3131
Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.
32-
Instead, we recommend using Discussions to ask support-related questions.
33-
34-
## Found a Bug?
35-
36-
If you find a bug in the source code, you can help by [submitting an issue](#submitting-an-issue) to [AnguHashBlog](https://github.com/AnguHashBlog/angular-primeng/issues).
37-
Even better, you can [submit a Pull Request](#submitting-a-pull-request-pr) with a fix.
38-
32+
Instead, we recommend using Discussions to ask support-related questions.
3933

40-
## Missing a Feature?
41-
You can *request* a new feature by [submitting an issue](#submitting-an-issue) to our GitHub Repository.
42-
If you would like to *implement* a new feature, please consider the size of the change in order to determine the right steps to proceed:
34+
## Features vs Bugs
4335

44-
* For a **Major Feature**, first open an issue and outline your proposal so that it can be discussed.
45-
This process allows us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
36+
Not all issues are bug fixes! Please understand the difference between a Feature and a Bug when it comes to issue creation.
4637

47-
**Note**: Adding a new topic to the documentation, or significantly re-writing a topic, counts as a major feature.
38+
- **FEATURE** - when you are implementing something new that has not been worked on before
39+
- **BUG** - when you are correcting something that has been worked on before but is not functioning as intended
4840

49-
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submitting-a-pull-request-pr).
41+
## For all Issues
42+
### First open an issue and outline your proposal so that it can be discussed.
5043

44+
This process allows us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
5145

5246
## Submission Guidelines
5347

54-
5548
### Submitting an Issue
5649

5750
Before opening an issue, please check the tracker to see if a similar issue has been raised. Existing discussions may provide useful insights or workarounds.
@@ -60,26 +53,34 @@ To expedite bug fixes, a minimal reproduction of the issue is required. This con
6053

6154
Providing a minimal reproduction is crucial for saving time, increasing the chances of a quick resolution, and ensuring that focus is given to the correct issue.
6255

63-
You can file new issues by selecting from our [new issue templates](https://github.com/AnguHashBlog/angular-primeng/issues/new/choose) and filling out the issue template.
56+
**DO NOT** erase the provided issue template! It is intended for you to use, not to replace it with random text.
57+
58+
It is always a good practice to look up existing issues and ensure your new issue matches the established
59+
format. This helps maintain consistency and makes it easier for others to understand and collaborate on the
60+
issue
6461

62+
### 'Needs Triage' issue label
63+
64+
Every new issue is tagged with the "needs triage" label, signifying that it requires review and assessment by a core team member. This process ensures that issues are appropriately prioritized and assigned, fostering a collaborative environment where tasks are synchronized to prevent conflicts. While you focus on addressing an issue, it's important to recognize that others may be working on related tasks. Therefore, the "needs triage" label serves as a precautionary measure, indicating that the issue is not yet ready for immediate attention. The issue will be ready to work on, once the "needs triage" label is removed.
6565

6666
### Submitting a Pull Request (PR)
6767

6868
Before you submit your Pull Request (PR) consider the following guidelines:
6969

70-
1. Search [GitHub](https://github.com/AnguHashBlog/angular-primeng/pulls) for an open or closed PR that relates to your submission.
70+
1. Search [AhguHashBlog](https://github.com/AnguHashBlog) for an open or closed PR that relates to your submission.
7171
You don't want to duplicate existing efforts.
7272

7373
2. Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add.
7474
Discussing the design upfront helps to ensure that we're ready to accept your work.
7575

76-
3. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the `monacodelisa/angular-headles-hashnopde` repo.
76+
3. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the `AnguHashBlog` repo of your choice.
7777

7878
4. In your forked repository, make your changes in a new git branch:
7979

80-
```shell
81-
git checkout -b my-fix-branch develop
82-
```
80+
```shell
81+
git checkout -b my-fix-branch develop
82+
```
83+
8384
### The default branch is develop!
8485

8586
5. Create your patch, **including appropriate test cases**.
@@ -90,97 +91,119 @@ Before you submit your Pull Request (PR) consider the following guidelines:
9091

9192
8. Commit your changes using a descriptive commit message.
9293

93-
```shell
94-
git commit --all
95-
```
96-
Note: the optional commit `--all` command line option will automatically "add" and "rm" edited files.
94+
```shell
95+
git commit --all
96+
```
97+
98+
Note: the optional commit `--all` command line option will automatically "add" and "rm" edited files.
9799

98100
9. Push your branch to GitHub:
99101

100-
```shell
101-
git push origin my-fix-branch
102-
```
102+
```shell
103+
git push origin my-fix-branch
104+
```
105+
106+
10. In GitHub, send a pull request to `AnguHashBlog/angular:develop`.
103107

104-
10. In GitHub, send a pull request to `AnguHashBlog/angular-primeng:develop`.
108+
**DO NOT** erase the provided PR template! It is intended for you to use, not to replace it with random text.
109+
110+
It is always a good practice to look up already merged PRs and ensure your new PR matches the established format. This helps maintain consistency and makes it easier for others to understand and collaborate.
105111

106112
### Reviewing a Pull Request
107113

108114
I reserve the right not to accept pull requests from community members who haven't been good citizens of the community.
109115

110-
111116
#### After your pull request is merged
112117

113118
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
114119

115-
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
120+
- Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
116121

117-
```shell
118-
git push origin --delete my-fix-branch
119-
```
122+
```shell
123+
git push origin --delete my-fix-branch
124+
```
120125

121-
* Check out the develop branch:
126+
- Check out the develop branch:
122127

123-
```shell
124-
git checkout develop -f
125-
```
128+
```shell
129+
git checkout develop -f
130+
```
126131

127-
* Delete the local branch:
132+
- Delete the local branch:
128133

129-
```shell
130-
git branch -D my-fix-branch
131-
```
134+
```shell
135+
git branch -D my-fix-branch
136+
```
132137

133-
* Update your local `develop` with the latest upstream version:
134-
135-
```shell
136-
git pull --ff upstream develop
137-
```
138+
- Update your local `develop` with the latest upstream version:
138139

140+
```shell
141+
git pull --ff upstream develop
142+
```
139143

140144
## Coding Rules
145+
141146
To ensure consistency throughout the source code and the different app versions, keep these rules in mind as you are working:
142147

143148
### FILE STRUCTURE
149+
144150
#### Components
151+
145152
Store full components that can be used on their own, in the `components` folder, examples include:
153+
146154
- `header`, `footer`, `posts`, `series`, `post-details`, `layout`, `sidenav`
147155

148156
#### Partial Components
157+
149158
Place partial components like dialogs and other smaller reusable components, in the `partials` folder, examples:
159+
150160
- `follow-dialog`, `search-dialog`
151161

152162
### Interfaces
163+
153164
Keep interfaces in the `models` folder, examples:
165+
154166
- `blog-info.ts`, `post.ts`
155167
- Avoid duplicating existing interfaces.
156168

157169
#### Services
170+
158171
- Place services in the `services` folder, examples:
159172
- `blog.service.ts`, `theme.service.ts`
160173

161-
#### Pipes in the `pipes` folder
174+
#### Pipes in the `pipes` folder
175+
162176
#### Directives in the `directives` folder etc.
163177

164178
#### Page Folder Exclusion
179+
165180
- Omitting a pages folder due to the current absence of an extensive component count, that would justify its introduction.
166181

167182
For clarification on component categorization or any other building block, cross-reference with implementations in other app versions or seek guidance through communication.
168183

169-
170184
### NAMING CONVENTIONS
185+
171186
- For dialogs, ensure the inclusion of the term dialog in the name.
172187
- Maintain consistency with established naming conventions in other app versions.
173188
- Propose suggestions for improved and clearer naming in discussions or comments.
174189

175-
### STYLE GUIDE
190+
### STYLE GUIDE
191+
176192
#### The project utilizes SCSS. Copying and pasting CSS from other sources would be accepted only if it is formatted correctly to comply with SCSS conventions.
193+
177194
#### use relative measurements in the `scss` files:
195+
178196
- `rem`, `%`
179197
- `wh`, `vh`, `dvw` `dvh`
180198
- avoid using `px`
181199

182-
# INDENTATION & FORMATTING
183-
Maintain the project's indentation and formatting. Do not include formatting changes in your PRs, only include code that you have changed. It doesn't look like you have done more when you submit a PR with tons of indentation changes - we all see its just indentation and that makes it even more unpleasant to deal with.
200+
### MEDIA QUERIES
201+
202+
The placement for media queries is the standard placement - below all the other styles.
203+
204+
## INDENTATION & FORMATTING
205+
206+
Maintain the project's indentation and formatting. Do not include formatting changes in your PRs, only include code that you have changed. It doesn't look like you have done more when you submit a PR with tons of indentation changes - we all see its just indentation and that makes it even more unpleasant to deal with.
184207

185208
## Commit Message Guidelines
186209

@@ -234,15 +257,16 @@ build(pipeline): update dependencies and build scripts
234257
chore: prepare for version 1.0.0 release
235258
```
236259

237-
### Revert
260+
### Revert
238261

239262
```
240263
revert: revert changes from commit abc123
241264
```
242265

243-
## Mandatory Compliance with [Coding Rules](#coding-rules) and [Commit Message Guidelines](#commit-message-guidelines) for PR Merges
266+
### Mandatory Compliance with [Coding Rules](#coding-rules) and [Commit Message Guidelines](#commit-message-guidelines) for PR Merges
244267

245268
Kindly ensure that all pull requests strictly adhere to our Coding Rules and Commit Message Guidelines. Non-compliant PRs must be adjusted prior to acceptance.
246269

247270
## Reviewer Accountability
248-
Reviewers who approve PRs not in alignment with the [Coding Rules](#coding-rules) and [Commit Message Guidelines](#commit-message-guidelines) may face restrictions on their approval privileges.
271+
272+
Reviewers who approve PRs not in alignment with the [Coding Rules](#coding-rules) and [Commit Message Guidelines](#commit-message-guidelines) may face restrictions on their approval privileges.

0 commit comments

Comments
 (0)