Replies: 1 comment 1 reply
-
Actually some of the things above are documented: https://github.com/aspirepress/.github/blob/093e3164439cc317482cc316c7f42f10f87a13ec/CONTRIBUTING.md |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a short online of things that should be done on each repository of AP (not optional - IMO)
main
branches. For each repo there should be a setting undersettings/rules/
, which allows setup new rules for each branch, such as require signed commits, avoid deletion or requiring a PR before committing (the two most crucial IMO). This should be at least set up on thedefault
branch which is usuallymain
WordPress
ruleset from WPCS. Usually, you should have a flow that goes likeany branch > pr to dev > merge to dev > pr to main > merge to main
and the GitHub workflow should kick in whenever push or pull request happen todevelop
, so things can be caught before releases (which is when develop goes to main, and tags are created). below I attached the workflow I use, it should work out of the box.WordPress
standard as the used sniff. Goes without saying that this will be perhaps a little annoying if someone never used it, since it will not only flag "serious" stuff, it will also flag things like using[]
overarray()
, etc. These can be disabled in a custom ruleset (see the well ripened one of ClassicPress here, but again, I do not recommend this for a row of reasons, starting with "there are reasons for each and every rule in the WPCS sniff")CONTRIBUTING
guideline (stored in aCONTRIBUTING.md
file) where it is clearly explained what is expected from a contributor in technical detailsFollowing a short list of things to do to get things "tested"
@testers
for example. You can also set actual GitHub Org members to be in special groups (such as testers) and communicate through that tool instead. However testers are usually not "tech savvy" so having a more "social approach" is better.zip -r exact-name-of-asset.zip exact-name-of-asset -x "*/__MACOSX" -x "*/.DS_Store" -x "*/._*"
. This command is run in the directory whereexact-name-of-asset
lives as a unzipped folder (remember to remove any dev-assets from it before such as git files, etc). The DS_Store is Mac related, and required, if you work on one (as it otherwise breaks WP Upload mech).This is a short online of things that should be done on each repository of AP (optional - but not optional IMO)
GH WorkFlow for WPCS:
Beta Was this translation helpful? Give feedback.
All reactions