PR Guidelines: Difference between revisions
Johnkieser. (talk | contribs) clean up |
Johnkieser. (talk | contribs) Links |
||
| Line 22: | Line 22: | ||
** Visual changes should be summarized. Do not go into specifics. ie sprite overhaul of all drink sprites(nukacola, vim ect...) just write "Most cola sprites changed..." | ** Visual changes should be summarized. Do not go into specifics. ie sprite overhaul of all drink sprites(nukacola, vim ect...) just write "Most cola sprites changed..." | ||
** DONT FORGET TO CREDIT SPRITERS IN THE CHANGELOG | ** DONT FORGET TO CREDIT SPRITERS IN THE CHANGELOG | ||
== Before You PR == | |||
=== Verify If Your PR is needed or even wanted === | |||
Before you spend the time on anything, make sure to talk to us and get basic permission. If you haven't already, you should also join the discord. This the main way of talking to us and is pretty useful for knowing the state of development. Chances are you might discover there are already plans or code made on the thing you wanted to contribute. | |||
Maybe something you plan on contributing so happens to align with some long term idea we haven't had time to work on yet. In that case, we can tell you everything we do know about the idea, limits, expectations, ect... This would usually be things specified in the design document. This does not mean everything you do is strictly bound to whatever we planned and wrote down in the design doc. In-fact, they are just rough plans and just meant to organize the various mechanics and balance. At the very least the design doc gives you the context you are working under. How it preforms in execution or even what it eventually becomes is largely up to whoever is coding it. Software is volatile and things are expected to go wrong and need to change. | |||
=== Relevant Resources === | |||
Guideline for beginners to help avoid common pitfalls: [https://wiki.misfitsystems.net/index.php?title=Code_Guidelines&veaction=edit Code Guideline] | |||
Guideline that goes into more depth on the PR template: [https://wiki.misfitsystems.net/index.php/PR_Template_Guide PR Template Guideline] | |||
== Main PR Guidelines == | == Main PR Guidelines == | ||
| Line 33: | Line 47: | ||
** See X about this process WIP!!!!!!!!!! | ** See X about this process WIP!!!!!!!!!! | ||
* | * Titles need to describe the PR's content | ||
** no jokes, be clear, and preferably brief | ** no jokes, be clear, and preferably brief | ||
* | ** Do not be misleading | ||
** | * PR content cannot be misleading | ||
** Summary cannot lie or mislead what is actually coded | |||
* Understandable English | |||
** We prefer clear and concise over grammar | ** We prefer clear and concise over grammar | ||
* | ** Correct grammar is not required | ||
* | |||
* Keep PRs cohesive: PRs should be split up by topic/area of change and be focused | * Keep PRs cohesive: PRs should be split up by topic/area of change and be focused | ||
** Do not have one PR make multiple unrelated changes | ** Do not have one PR make multiple unrelated changes | ||
| Line 46: | Line 61: | ||
* C#, yaml, and otherwise needs to have a basic level of quality and maintainability | * C#, yaml, and otherwise needs to have a basic level of quality and maintainability | ||
** I understand not everyone has the time to volunteer and contribute even basic code, but if you're just adding hard to follow code that we don't think you are going to refactor to be maintainable in the future, then your PR will be denied. | ** I understand not everyone has the time to volunteer and contribute even basic code, but if you're just adding hard to follow code that we don't think you are going to refactor to be maintainable in the future, then your PR will be denied. | ||
* Technical part of PRs(if relevant) should demonstrate a level of understanding on the changes made | * Technical part of PRs(if relevant) should demonstrate a level of understanding on the changes made | ||
** if you can't explain your own code or explain why you made the majority of decisions, then I am going to assume AI wrote it. | ** if you can't explain your own code or explain why you made the majority of decisions, then I am going to assume AI wrote it. | ||
* | * Pay attention and follow requestes from reviewers!! | ||
** Else your PR will be closed due to inactivity | |||
* | |||
* PR | |||
=== Policy for each PR Type === | === Policy for each PR Type === | ||
Revision as of 20:57, 11 November 2026
Disclaimer!!!!
Use the below link for anything about learning to code, using Github, and general code conventions
https://docs.spacestation14.com/en/general-development/setup/howdoicode.html
This is a high level guide on how to make PRs for our server that will be accepted and merged.
Main Differences From Wizden PR guidelines
(Going off the PR guidelines page linked earlier. Sorry if some of these are outdated but they're still listed and will confuse people)
Quick rundown for anyone already familiar with Wizden PRs. More so for more experienced people that just need a quick summary of how our guidelines differ.
- We are generally more informal in tone for anything non-technical
- You do not need to make a gameplay design doc for massive gameplay changes
- This is something that should be shared, discussed over, and iterated on way before you PR'd anything if the PR's scope justifies is
- You do not need to submit a video to prove you tested something for small to moderate changes
- We of course expect that you tested your PRs but we'll take you on your word.
- If you're caught obviously lying about this(obvious bugs linked to your PR show up in-game) then you'll be banned from the repo
- Changelogs: Small changes under 5 lines do not need to be divided up by Map: Admin: ect...
- Needs to be in clear, understandable English, but doesn't need to be grammatically correct
- Value conciseness over grammar. If you can write the message in fewer words with less effort, then do that and try not to worry about grammar
- Visual changes should be summarized. Do not go into specifics. ie sprite overhaul of all drink sprites(nukacola, vim ect...) just write "Most cola sprites changed..."
- DONT FORGET TO CREDIT SPRITERS IN THE CHANGELOG
Before You PR
Verify If Your PR is needed or even wanted
Before you spend the time on anything, make sure to talk to us and get basic permission. If you haven't already, you should also join the discord. This the main way of talking to us and is pretty useful for knowing the state of development. Chances are you might discover there are already plans or code made on the thing you wanted to contribute.
Maybe something you plan on contributing so happens to align with some long term idea we haven't had time to work on yet. In that case, we can tell you everything we do know about the idea, limits, expectations, ect... This would usually be things specified in the design document. This does not mean everything you do is strictly bound to whatever we planned and wrote down in the design doc. In-fact, they are just rough plans and just meant to organize the various mechanics and balance. At the very least the design doc gives you the context you are working under. How it preforms in execution or even what it eventually becomes is largely up to whoever is coding it. Software is volatile and things are expected to go wrong and need to change.
Relevant Resources
Guideline for beginners to help avoid common pitfalls: Code Guideline
Guideline that goes into more depth on the PR template: PR Template Guideline
Main PR Guidelines
These are the general PR guidelines for this server. Read this if this is your first PR , if you're new, or you just want more specifics. Also these are just guides. I expect these to cover the majority of PRs that are made, but it can never capture how every PR should be made. In practice that means you need a really good reason not to follow these guides and/or be really experienced and knowledgeable. So basically be an adult.
Basic Guidelines
PR needs to follow these basic rules to be accepted.
- PRs often need to be accepted/discussed first before being PR'd in the first place
- this basically applies for almost every type of PR
- See X about this process WIP!!!!!!!!!!
- Titles need to describe the PR's content
- no jokes, be clear, and preferably brief
- Do not be misleading
- PR content cannot be misleading
- Summary cannot lie or mislead what is actually coded
- Understandable English
- We prefer clear and concise over grammar
- Correct grammar is not required
- Keep PRs cohesive: PRs should be split up by topic/area of change and be focused
- Do not have one PR make multiple unrelated changes
- ie... PR adding new NPCs should not also have balance changes for player armor and weapons
- Do not have one PR make multiple unrelated changes
- PRs need to follow the template as specified
- C#, yaml, and otherwise needs to have a basic level of quality and maintainability
- I understand not everyone has the time to volunteer and contribute even basic code, but if you're just adding hard to follow code that we don't think you are going to refactor to be maintainable in the future, then your PR will be denied.
- Technical part of PRs(if relevant) should demonstrate a level of understanding on the changes made
- if you can't explain your own code or explain why you made the majority of decisions, then I am going to assume AI wrote it.
- Pay attention and follow requestes from reviewers!!
- Else your PR will be closed due to inactivity
Policy for each PR Type
Open:
- For us this usually means the PR has yet to be reviewed or even looked at
- Should have tags by the time review week comes up.
Closed:
- DOESN'T MEAN THE CONTENT OF THE PR IS DENIED
- PRs can be closed for multiple reasons
- PR can just be inactive or it needs a larger rework
- Unless told otherwise, you are free to try again and make a new PR from where we left off
- In-fact this can be normal depending on the complexity of the PR
- Used to tidy up the PR board and organize everything
Draft:
- Used for WIP PRs that need to warn/show that they're actively working on a large portion of the code.
- Done to help prevent conflicts, especially from smaller PRs
- If your PR conflicts with an active draft then it'll be closed
- Contributors that wish to change code under a draft should get in contact with the draft owner
- Collaborating with the drafter is a encouraged. Teamwork and all
- Random drafts will be closed
- To create a draft you need contact the devs and get permission
How PRs are Reviewed
This is just an honest high level overview of how PRs are going to be reviewed to help set expectations. Each general process is listed in order. Obviously doesn't cover each and every type of PR like hot fixes or every situation.
1. Sniff Test: Review if PR passes basic standards
- This is a simple and fast check meant to filter out the majority of low quality PRs
- Not a real review. Failing to pass will result in the PR being closed right away
- If a given user makes enough of these PRs in a row they'll be banned from the repo for some time i dunno wip brady
- This basic check should be done for most PRs before review week(but can happen any time)
- This is when tags are added too
2. PR In-Wait:
- PR passed the sniff test but it is not review week yet
- At most this is a 2 week period
- It is possible for a reviewer to look at this before merge week, but don't count on it
3. Merge/Review Week
- This is when most PRs are processed
- The entire week is spent to review/test PRs
- So how fast your PR gets merged can depend on how soon you respond to changes requested by reviewers
4. PR reviewed but not accepted
- PR was reviewed but was not merged by the end of review week
- Needed to do a bunch of changes and couldn't quite be accepted yet
- Maybe there's an influx of PRs and the PR was missed
- This doesn't mean you missed your chance forever
- At worse you just wait for 2 weeks
- We MAY accommodate a few extra days to review and get your PR merged
- If this happens enough you will be told to change the scope of the PR
- PR could just be closed if it clearly needs more time in the oven
- PR may actually be turned to a draft