Skip to content

Commit e572804

Browse files
author
ADMSK\AVROGAL1
committed
docs: updates on workflows
Added information on documentation
1 parent cb5a674 commit e572804

File tree

5 files changed

+80
-12
lines changed

5 files changed

+80
-12
lines changed

.github/CONTRIBUTING.md

Lines changed: 76 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,99 @@
1-
# How to contribute to GitHub Slug Action
1+
# Contribution Guidelines
22

3-
## Did you find a bug
3+
## Issues/pull requests
4+
5+
### When you find a bug
46

57
* **Do not open up a GitHub issue if the bug is a security vulnerability**, and instead to refer to our [security policy][1].
68

79
* **Ensure the bug was not already reported** by searching on GitHub under [Issues][2].
810

911
* If you're unable to find an open issue addressing the problem, [open a 'Bug' issue][4].
10-
Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.
12+
Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample**, or an **executable test case** demonstrating the expected behavior that is not occurring.
1113

12-
## Did you write a patch that fixes a bug
14+
### When you write a patch that fixes a bug
1315

1416
* Open a new GitHub pull request with the patch.
1517

1618
* Ensure the PR description clearly describes the problem and solution.
1719
Include the relevant issue number if applicable.
1820

19-
## Do you intend to add a new feature or change an existing one
21+
### When you intend to add a new feature or change an existing one
2022

2123
* Suggest your change by [opening a 'Feature request' issue][5] and start writing code.
2224

23-
## Do you have questions about the source code
25+
### When you want to work on an existing issue
26+
27+
**Note:** Please write a quick comment in the corresponding issue and ask if the feature is still relevant and that you want to jump into the implementation.
28+
29+
Check out our [help wanted](https://github.com/AlexRogalskiy/github-action-json-fields/labels/help%20wanted) or [good first issue](https://github.com/AlexRogalskiy/github-action-json-fields/labels/good%20first%20issue) labels to find issues we want to move forward on with your help.
30+
31+
We will do our best to respond/review/merge your PR according to priority. We hope that you stay engaged with us during this period to insure QA. Please note that the PR will be closed if there hasn't been any activity for a long time (~ 30 days) to keep us focused and keep the repo clean.
32+
33+
### Reviewing Pull Requests
34+
35+
Another really useful way to contribute to project is to review other peoples Pull Requests. Having feedback from multiple people is really helpful and reduces the overall time to make a final decision about the Pull Request.
36+
37+
### Writing / improving documentation
38+
39+
Our documentation lives on GitHub in the [docs](docs) directory. Do you see a typo or other ways to improve it? Feel free to edit it and submit a Pull Request!
40+
41+
### Providing support
42+
43+
The easiest thing you can do to help us move forward and make an impact on our progress is to simply provide support to other people having difficulties with their projects.
44+
45+
You can do that by replying to [issues on Github](https://github.com/AlexRogalskiy/github-action-json-fields/issues).
46+
47+
### When you have questions about the source code
2448

2549
* [open an issue][3] with your question.
2650

27-
Thanks!
51+
## Code Style
52+
53+
We aim for clean, consistent code style. We're using ESlint to check for codestyle issues using the eslint/recommended preset.
54+
55+
### Run lint style rules
56+
57+
```
58+
npm run lint:all
59+
```
60+
61+
### Run format style rules
62+
63+
```
64+
npm run format:all
65+
```
66+
67+
### Verifying linting style
68+
69+
```
70+
npm run check:all
71+
```
72+
73+
To help reduce the effort of creating contributions with this style, an [.editorconfig file](http://editorconfig.org/) is provided that your editor may use to override any conflicting global defaults and automate a subset of the style settings.
74+
75+
## Testing
76+
77+
We aim for a (near) 100% test coverage, so make sure your tests cover as much of your code as possible.
78+
79+
### Test coverage
80+
81+
During development, you can easily check coverage by running `npm test`, then opening the `index.html` file inside the `coverage` directory.
82+
83+
Please follow these Testing guidelines when writing your unit tests:
84+
85+
- Include a top-level `describe('ClassName')` block, with the name of the class you are testing
86+
- Inside that top-level `describe()` block, create another `describe('#methodOne()')` block for each class method you might create or modify
87+
- For each method, include an `it('should do something')` test case for each logical edge case in your changes
88+
- As you write tests, check the code coverage and make sure all lines of code are covered. If not, just add more test cases until everything is covered
89+
- For reference and inspiration, please check our `tests` directory
90+
91+
## Code of Conduct
92+
93+
Finally, to make sure you have a pleasant experience while being in our welcoming community, please read our [code of conduct](CODE_OF_CONDUCT.md). It outlines our core values and believes and will make working together a happier experience.
94+
95+
The :zap: [GitHub Team](https://github.com/AlexRogalskiy) Team
96+
2897

2998
[1]: https://github.com/AlexRogalskiy/github-action-json-fields/security/policy
3099
[2]: https://github.com/AlexRogalskiy/github-action-json-fields/issues

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [0.0.0-dev](https://github.com/AlexRogalskiy/github-action-json-fields/compare/v2.0.1...v0.0.0-dev) (2021-04-11)
1+
# [0.0.0-dev](https://github.com/AlexRogalskiy/github-action-json-fields/compare/v2.0.1...v0.0.0-dev) (2021-04-15)
22

33

44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# *Json fields*
22

3-
> GitHub Action to process JSON file by provided fields
3+
> GitHub Action to filter JSON files by provided fields and operation mode (unique/duplicate)
44
55
[![GitHub marketplace](https://img.shields.io/badge/marketplacegithub-json--fields-blue?logo=github)](https://github.com/marketplace/actions/json-fields)
66

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Json Fields'
2-
description: 'Process JSON file by provided fields and operation mode (unique/duplicate)'
2+
description: 'Automatically filters JSON files by provided fields and operation mode (unique/duplicate)'
33
author: 'AlexRogalskiy'
44

55
inputs:

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "github-action-json-fields",
33
"version": "0.0.0-dev",
4-
"description": "Automatically filter JSON files by provided fields (unique/duplicate mode supported)",
4+
"description": "Automatically filters JSON files by provided fields and operation mode (unique/duplicate)",
55
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
76
"license": "GPL-3.0",
87
"private": true,
98
"scripts": {

0 commit comments

Comments
 (0)