Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ Ongoing development will be done in the `develop` branch with merges to `main` o
To contribute an improvement to this project, fork the repo, run `composer install`, make your changes to the code, run the unit tests and code style checks by running `composer check-all`, and if all is good, open a pull request to the `develop` branch.
Alternatively, if you have push access to this repo, create a feature branch prefixed by `feature/` and then open an intra-repo PR from that branch to `develop`.

### Words of Warning

#### Do Not Violate Copyright

Only submit a PR with your own original code. Do NOT submit a PR containing code which you have largely copied from an externally available sniff, unless you wrote said sniff yourself.
Open source does not mean that copyright does not apply.
Comment thread
dingo-d marked this conversation as resolved.
Outdated
Copyright infringements will not be tolerated and may result in a ban from the repository.

#### Do Not Submit AI Generated PRs

AI-generated (both fully and primarily) PRs are not welcome as they will be based on copyrighted code from others without accreditation and without considering the license of the original code, let alone obtaining permission for the use of the code or for re-licensing.

Aside from that, the experience is that AI-generated PRs will be incorrect 100% of the time and cost reviewers too much time.
Submitting a (largely) AI-generated PR will lead to you being banned from the repository.

### Licensing

By contributing code to this repository, you agree to license your code for use under the
[MIT license](https://github.com/WordPress/WordPress-Coding-Standards/blob/main/LICENSE).

# Considerations when writing sniffs

## Public properties
Expand Down
33 changes: 33 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Provide a general summary of your changes in the title above. -->

<!--
============================================================================================
Warning: AI-generated PRs are NOT welcome and will result in a ban from this repository.

Please read the CONTRIBUTING guide before submitting your pull request.

Also, please make sure your pull request passes all continuous integration checks.
PRs which are failing their CI checks will likely be ignored by the maintainers.

Small PRs using atomic, descriptive commits are hugely appreciated, as it will make
reviewing your changes easier for the maintainers.

============================================================================================
-->

# Description
<!--
What do you want to achieve with this PR? Why did you write this code? What problem does this PR solve?
Describe your changes in detail and, if relevant, explain which choices you have made and why.
Comment thread
jrfnl marked this conversation as resolved.
Outdated
-->


## Suggested changelog entry
<!--
Please provide a short description of the change for the changelog.
Comment thread
GaryJones marked this conversation as resolved.
-->


## Related issues/external references

Fixes #
Loading