Skip to content

Commit 7195051

Browse files
authored
Merge pull request #77 from codebtech/chore/contributing
chore: Add contributing.md
2 parents ab39430 + f435d36 commit 7195051

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

.github/workflows/js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- 'main-built'
66

77
jobs:
8-
lint-test:
8+
js-lint-test:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- 'main-built'
66

77
jobs:
8-
lint-test:
8+
php-lint-test:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111
strategy:

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @m0hanraj

CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Contributing to WP Feature Flags plugin
2+
3+
Code contributions, feedback, issue reporting and feature suggestions are welcome. Development MUST happen in `feature` branch that's branched off from `main`. All pull requests MUST be made against `main` branch.
4+
5+
## Setting up Locally
6+
7+
You can clone this repo and activate it like a normal WordPress plugin, but you'll need to install the developer dependencies in order to build the assets and to run the tests.
8+
9+
### Prerequisites
10+
11+
- [Composer](https://getcomposer.org/)
12+
- [Node](https://nodejs.org/)
13+
- [Yarn](https://yarnpkg.com/getting-started/install)
14+
- [Typescript](https://www.typescriptlang.org/)
15+
16+
### Setup
17+
18+
1. [PHP and JS install and build](https://github.com/codebtech/wp-feature-flags?tab=readme-ov-file#development-setup)
19+
2. `wp-env` is used for [local development](https://github.com/codebtech/wp-feature-flags?tab=readme-ov-file#development-setup)
20+
3. [Linting and formatting](https://github.com/codebtech/wp-feature-flags?tab=readme-ov-file#development-setup)
21+
4. [Automated testing guidelines](https://github.com/codebtech/wp-feature-flags?tab=readme-ov-file#development-setup)
22+
23+
### Ahead of raising PR
24+
25+
1. Make sure you run all linting and tests and everything should pass.
26+
2. Add tests for new changes
27+
28+
### Release and tagging
29+
30+
Once the PR is reviewed and approved the maintainers will perform the release process and issue the new release tag.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,7 @@ The WordPress unit and integration tests depends on `wp-env` setup. Ensure you r
109109
The E2E tests depends on `wp-env` setup. Ensure you run `wp-env start` before running the tests.
110110

111111
- Run `yarn test:e2e` to run all Playwright e2e tests.
112+
113+
## Contributing
114+
115+
Code contributions, feedback, issue reporting and feature suggestions are welcome. See [CONTRIBUTING.md](https://github.com/codebtech/wp-feature-flags/blob/main/CONTRIBUTING.md) for more details.

0 commit comments

Comments
 (0)