You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+91-67Lines changed: 91 additions & 67 deletions
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,20 @@ First off, thanks for taking the time to contribute! ❤️
4
4
5
5
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. 🎉
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
20
21
21
22
## Code of Conduct
22
23
@@ -25,33 +26,25 @@ This project and everyone participating in it is governed by the
25
26
By participating, you are expected to uphold this code. Please report unacceptable behavior
26
27
to [monacodelisa](https://github.com/monacodelisa).
27
28
28
-
29
29
## Question or Problem?
30
30
31
31
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.
39
33
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
43
35
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.
46
37
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
48
40
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.
50
43
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.
51
45
52
46
## Submission Guidelines
53
47
54
-
55
48
### Submitting an Issue
56
49
57
50
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
60
53
61
54
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.
62
55
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
64
61
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.
65
65
66
66
### Submitting a Pull Request (PR)
67
67
68
68
Before you submit your Pull Request (PR) consider the following guidelines:
69
69
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.
71
71
You don't want to duplicate existing efforts.
72
72
73
73
2. Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add.
74
74
Discussing the design upfront helps to ensure that we're ready to accept your work.
75
75
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.
77
77
78
78
4. In your forked repository, make your changes in a new git branch:
79
79
80
-
```shell
81
-
git checkout -b my-fix-branch develop
82
-
```
80
+
```shell
81
+
git checkout -b my-fix-branch develop
82
+
```
83
+
83
84
### The default branch is develop!
84
85
85
86
5. Create your patch, **including appropriate test cases**.
@@ -90,97 +91,119 @@ Before you submit your Pull Request (PR) consider the following guidelines:
90
91
91
92
8. Commit your changes using a descriptive commit message.
92
93
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.
97
99
98
100
9. Push your branch to GitHub:
99
101
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`.
103
107
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.
105
111
106
112
### Reviewing a Pull Request
107
113
108
114
I reserve the right not to accept pull requests from community members who haven't been good citizens of the community.
109
115
110
-
111
116
#### After your pull request is merged
112
117
113
118
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
114
119
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:
116
121
117
-
```shell
118
-
git push origin --delete my-fix-branch
119
-
```
122
+
```shell
123
+
git push origin --delete my-fix-branch
124
+
```
120
125
121
-
* Check out the develop branch:
126
+
- Check out the develop branch:
122
127
123
-
```shell
124
-
git checkout develop -f
125
-
```
128
+
```shell
129
+
git checkout develop -f
130
+
```
126
131
127
-
* Delete the local branch:
132
+
- Delete the local branch:
128
133
129
-
```shell
130
-
git branch -D my-fix-branch
131
-
```
134
+
```shell
135
+
git branch -D my-fix-branch
136
+
```
132
137
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:
138
139
140
+
```shell
141
+
git pull --ff upstream develop
142
+
```
139
143
140
144
## Coding Rules
145
+
141
146
To ensure consistency throughout the source code and the different app versions, keep these rules in mind as you are working:
142
147
143
148
### FILE STRUCTURE
149
+
144
150
#### Components
151
+
145
152
Store full components that can be used on their own, in the `components` folder, examples include:
Place partial components like dialogs and other smaller reusable components, in the `partials` folder, examples:
159
+
150
160
-`follow-dialog`, `search-dialog`
151
161
152
162
### Interfaces
163
+
153
164
Keep interfaces in the `models` folder, examples:
165
+
154
166
-`blog-info.ts`, `post.ts`
155
167
- Avoid duplicating existing interfaces.
156
168
157
169
#### Services
170
+
158
171
- Place services in the `services` folder, examples:
159
172
-`blog.service.ts`, `theme.service.ts`
160
173
161
-
#### Pipes in the `pipes` folder
174
+
#### Pipes in the `pipes` folder
175
+
162
176
#### Directives in the `directives` folder etc.
163
177
164
178
#### Page Folder Exclusion
179
+
165
180
- Omitting a pages folder due to the current absence of an extensive component count, that would justify its introduction.
166
181
167
182
For clarification on component categorization or any other building block, cross-reference with implementations in other app versions or seek guidance through communication.
168
183
169
-
170
184
### NAMING CONVENTIONS
185
+
171
186
- For dialogs, ensure the inclusion of the term dialog in the name.
172
187
- Maintain consistency with established naming conventions in other app versions.
173
188
- Propose suggestions for improved and clearer naming in discussions or comments.
174
189
175
-
### STYLE GUIDE
190
+
### STYLE GUIDE
191
+
176
192
#### 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
+
177
194
#### use relative measurements in the `scss` files:
195
+
178
196
-`rem`, `%`
179
197
-`wh`, `vh`, `dvw``dvh`
180
198
- avoid using `px`
181
199
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.
184
207
185
208
## Commit Message Guidelines
186
209
@@ -234,15 +257,16 @@ build(pipeline): update dependencies and build scripts
234
257
chore: prepare for version 1.0.0 release
235
258
```
236
259
237
-
### Revert
260
+
### Revert
238
261
239
262
```
240
263
revert: revert changes from commit abc123
241
264
```
242
265
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
244
267
245
268
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.
246
269
247
270
## 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