Jump to content

PR Guidelines: Difference between revisions

From Misfits Nuclear Wasteland
Line 28: Line 28:


=== How PRs are Reviewed ===
=== How PRs are Reviewed ===
This is just an honest high level overview of how PRs are going to be reviewed to help set expectations. Obviously doesn't cover each and every type of PR like hot fixes or every situation.
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.


# "Sniff Test": We review if the PR passes basic standards. If it doesn't, then it is closed and denied instantly as a low quality PR.  
# "Sniff Test": We review if the PR passes basic standards. If it doesn't, then it is closed and denied instantly as a low quality PR.  

Revision as of 04:30, 11 November 2026


Disclaimer!!!!

https://docs.spacestation14.com/en/general-development/setup/howdoicode.html

This is a high level guide on how to make quality 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
  • 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

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.

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": We review if the PR passes basic standards. If it doesn't, then it is closed and denied instantly as a low quality PR.
    1. Examples) Random balance changes made via yaml | PRs that barely or fail to describe their changes | PRs that seek to port or add features that were unasked for and haven't been discussed about earlier | Bug fixes that fail to describe the bug or the fix | Anything coded with AI
    2. This helps filter out the majority of slop. If we were to treat every PR as honest and examine them seriously then there wouldn't be time to do anything but review PRs. We're a tiny dev team we can't do that.
    3. If a specific user makes enough of these then they'll be banned from the repo(for like a month I dunno WIP talk to brady)
  2. PR Scheduled: The PR is scheduled for review and has relevant tags put on it.
    1. This is usually a 2 week period at most. Do not expect your PR to be accepted until merge week.
    2. However a dev could still review it if they so happen to feel like it. This may result in the PR being merged, especially if that dev had merge rights or a dev with merge rights is able to verify the review. That is assuming no issues or found or no changes are requested.
    3. Keep in mind this week is where we take the time make our own PRs and improvements to the server. We need time for that too, so reviewing PRs is not gonna be a top priority.
  3. Merge Week: Most PRs are reviewed and tested in bulk. The entire week is dedicated to this if needed.
    1. If a PR is rejected on merge week YOU DO NOT need to wait another 2 weeks. We take the whole week to review and help with your PR. Of course that is dependent on you being active and available for the week.
    2. Most PRs are processed at this point
  4. Reviewed PR needs changes/rework but review week is over: PR will need to wait for next review week so repeat from steps 2-3
    1. We're not robots, so missing the train doesn't mean the PR is forever rejected or missed its chance. We might also make exceptions and may review it even when merge week is over.
    2. Though at the same time we are not robots. We cannot dedicate all of our time to reviewing PRs. So please respect our time and we'll try to respect yours.
    3. PRs at most shouldn't last more than 2 weeks of review after constant iteration and changes. In such cases the PR can just be closed either rejected or it just needs way more time in the oven before being PR'd again(it happens. Software is volatile and unpredictable)

Template Guide

About the PR

Use this as a simple summary of content changes. Keep this to the point. Also if the change doesn't affect gameplay, it shouldn't be a focus or included here. Think of this like an "elevator pitch".

This should NOT delve into "technical" detail, especially if it does not directly affect gameplay. If your PR is mostly just "technical" changes(refactoring, performance, ect...) then this is allowed to be very brief. In such cases, a lot of the PR should be focused in the "technical details" section.

Why / Balance

Summary of why the change is needed. Remember, when contributing anything it should be made considering everybody. Also remember that for especially large and in-depth changes/overhauls, much of the justification should have had been known and had way before the PR (like in the discord with us the developers). In such cases you should link any relevant documentation(ie... google docs) and just have a summary of the greater justification in the PR itself.

For technical focused PRs this section can be used to better organize the overall PR or just left out if you prefer to organize the technical explanation that way.

Technical Details

My favorite. A rundown of the technical changes made and the process took in doing so if relevant. For most things done in yaml, then this can be very short if not omitted outright. The same applies for anything that just adds/changes sprites and other such visuals.Really you want this filled out when making C# changes.

This should represent your basic understanding of what you did/added/improved. If you cannot figure out what you coded or why you coded it(for the most part), then you probably didn't code something of value or didn't code it yourself. That is unfortunately just a normal thing with this generation using AI.

To further explain, you should justify/explain your changes. Usually the "journey" you took in doing can also be relevant(like what research you did, books read, videos watched, examples looked at ect...). If the code was changed just for clean-up, then say that. If the code was changed because it was wrong or inaccurate, say that.

Of course you do not need to explain every bit of code, but try explaining the broad strokes and anything weird that may not come off as self evident. We are all learning, so it is ok to miss things or just to not know why certain things work. If you especially don't know why something works or why some hack is needed, please say so(this is not an invite to code something and not know what 100% of it does). The PR is going to be reviewed and anything that is missed by the technical section will be questioned, but do not think that'll deduct anything if you're an honest PRer.

Media

Not a hard requirement for most PRs. I would recommend this for PRs that introduce new mechanics and advanced features. Why? To help guide testing and clear up any misunderstanding. I especially recommend this if it is just too inconvenient to describe a feature in writing. Some features are also best shown visually, like maybe network latency(debug visual enabled), animations, new abilities, ect...