PR Guidelines: Difference between revisions
Johnkieser. (talk | contribs) mNo edit summary |
Johnkieser. (talk | contribs) |
||
| Line 72: | Line 72: | ||
=== Basic Policies === | === Basic Policies === | ||
We trust these are true by the time the PR is submitted. We are trusting contributors on this. Not following any of these can result in a repo ban. | We trust these are true by the time the PR is submitted. We are trusting contributors on this. Not following any of these can result in a repo ban. These policies are "Basic" not only to mean that they are simple and so cannot cover every single case, but also basic in the foundational sense. None of them should be broken if you want your PR to be taken seriously, because every PR is expected to follow these policies. | ||
====== Your PR must be ready to be reviewed when it is uploaded ====== | ====== Your PR must be ready to be reviewed when it is uploaded ====== | ||
Revision as of 23:33, 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 AND SUMMARY
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.
Join the Discord and talk to us before making any PR: https://discord.gg/Rys9TyeaEy
The majority of brainstorming and figuring out what to PR is expected to be done in the discord!!!!
Everything you contribute is for this community!!!!
So you need to be ok with sharing your ideas and taking criticism from that same community!!!!
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!!!!!!!!!!
- Open PRs should not have Linter errors by the time they're reviewed
- We will just close the PR if it has linter errors on review week
- 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
Basic Policies
We trust these are true by the time the PR is submitted. We are trusting contributors on this. Not following any of these can result in a repo ban. These policies are "Basic" not only to mean that they are simple and so cannot cover every single case, but also basic in the foundational sense. None of them should be broken if you want your PR to be taken seriously, because every PR is expected to follow these policies.
Your PR must be ready to be reviewed when it is uploaded
This INCLUDES NOT HAVING ANY LINTER ERRORS BY REVIEW WEEK!! It might also be randomly closed before review week. Just don't have linter errors by the time a reviewer looks at the code. Of course this also covers your code being able to be built and ran.
DO NOT use AI to write the majority of your code
Consider if all you do is prompt AI, then you're not really needed for anything. It is recommended NOT to use AI for design, writing more than a page of code, or giving some analysis(like comments). I, the writer, am personally against any AI use but unfortunately it is something I need to tolerate. I've been told it has uses in areas like creating tests, gathering data, and doing things you could have also done with a script.
DO NOT USE AI TO WRITE THE PR
Do not use AI to write the PR template for you. Don't be that lazy.
DO NOT USE AI FOR ART!!
If you do not agree with this, nobody is forcing you to contribute. Trying to push any AI Art will result in a ban from the repo.
CREDIT ANY ARTISTS INCLUDING YOURSELF!!!
Credit artists and yourself in the changelog, in the PR summary, and importantly in the json for rsi files.
Your PR must have been tested!!!
If it is obvious that your PRs have not been tested, then that will result in a temporary repo ban.
Your PR must have been tested IN DEBUG MODE!!!
For this server you must test your changes in Debug mode. A lot of clean-up has been done and so a lot of debug errors and crashes should not happen anymore and get in the way of testing. Though do let us know of any debug errors that are outdated or are false positives.
No new errors should have been introduced!!!
Error doesn't just mean bugs. There shouldn't be new errors being logged in the console. Your feature could be fully functional but still give out errors. It is usually an indication that you're using some implementation incorrectly. It may not cause errors right now or even weeks later, but it will over time and when people forgot about what caused it in the first place.
KEEP IN MIND! The error could also indicate a deeper issue with existing systems that your code luckily discovered. In that case be sure to report it as a bug and file an Issue in the GitHub. It could also be some deprecated debug code. Still be sure to tell us that so it can be investigated and removed if it is deprecated.
Further PR Guidelines
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-Waiting:
- 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
Special Considerations
There are certain notable but common cases where PRs can just bypass these guidelines.
Hotfixes
These are fixes meant to very quickly patch some bug that has some critical affect on gameplay or/and the server. These range from things that cause server crashes to extreme in-game exploits and other such issues. These will usually be made by the top developers and merged pretty fast. Though there will be cases where we can't figure out an issue right away and someone else PRs a fix that we will quickly merge. We will of course test the fix and analyze it thoroughly since we usually will want to understand the issue in the first place.
Typo Fixes/ Obvious Fixes
We make mistakes and sometimes that mistake is some typo somewhere in the code. We might have also clearly forgot to change some values in the yaml. It happens and is pretty simple to fix.
Engineer PRs and up
At the time of writing, this is the title given to the maintainers of our server. They are trusted members and work on a different pace. Their PRs are just naturally more trusted. Though also keep in mind, certain ranks above Engineers have merge rights and it is common practice in many servers for whoever has merge rights to just self-merge.