Jump to content

PR Guidelines: Difference between revisions

From Misfits Nuclear Wasteland
moved template to another page
clean up
Line 66: Line 66:
** The title by itself would be good, but for this example let's say the PR also secretly added the Khans as a faction. The title doesn't make it clear at all that it does such and it should probably be the main thing specified in the title. Doing this makes it come off like you're trying to sneak changes in.   
** The title by itself would be good, but for this example let's say the PR also secretly added the Khans as a faction. The title doesn't make it clear at all that it does such and it should probably be the main thing specified in the title. Doing this makes it come off like you're trying to sneak changes in.   


=== Type of PRs ===
=== Policy for each PR Type ===


* Open: For us this usually means the PR has yet to be reviewed or even looked at(if it lacks tags).  
====== Open: ======
* Closed: For one reason or another the PR was closed. This does not mean the idea or feature was denied(unless stated). People just often forget about their PRs even when a review is made and changes are requested. Everything is just more organized and cleaner if PRs are closed in cases where it just needs more work and review week is over. and
 
** it is extremely easy to make a new PR by the way and just continue off from closed PR
* For us this usually means the PR has yet to be reviewed or even looked at
* Drafts: For this server, drafts are good for WIP PRs that need to be on the board and have some sorta presence to prevent incompatabilities. Basically it's a big sign to show everyone and us that you're working in some large section of code. Of course this should be agreed on by us prior!!!!!!
* Should have tags by the time review week comes up.
** '''Random drafts will be closed'''
 
** Drafts should be for larger than normal changes that will cause conflicts. Especially if the PR itself is going to take a while to make
====== Closed: ======
** People should pay attention to drafts. If you make a PR that overwrites what a draft is doing your PR will be closed. Ask the writer of the draft if you can modify some section of code that'll affect them. Try collaborating with them even. 
 
* 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 ===
=== 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.
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.
==== 1. Sniff Test: Review if PR passes basic standards ====
## 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
 
## 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.
* This is a simple and fast check meant to filter out the majority of low quality PRs
## 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)
* Not a real review. Failing to pass will result in the PR being closed right away
# PR Scheduled: The PR is scheduled for review and has relevant tags put on it.
* 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 is usually a 2 week period at most. Do not expect your PR to be accepted until merge week.
* This basic check should be done for most PRs before review week(but can happen any time)
## 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.
* This is when tags are added too
## 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.
 
# Merge Week: Most PRs are reviewed and tested in bulk. The entire week is dedicated to this if needed.
==== 2. PR In-Wait: ====
## 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.
 
## Most PRs are processed at this point
* PR passed the sniff test but it is not review week yet
# 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
* At most this is a 2 week period
## 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.
* It is possible for a reviewer to look at this before merge week, but don't count on it
## 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.
 
## 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)
==== 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

Revision as of 20:22, 11 November 2026

Disclaimer!!!!

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

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!!!!!!!!!!
  • PR titles need to describe the PR's content
    • no jokes, be clear, and preferably brief
  • PRs need to be in understandable English
    • Doesn't need to be grammatically correct English.
    • We prefer clear and concise over grammar
  • PRs need to clearly summarize what they change
    • If the changes are basic and are just a list of simple changes, you can just specify in the summary to read the changelog
  • 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
  • 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.
    • Of course this is also on the extreme end of cases where it isn't practical for reviewers to help clean up everything so beginners shouldn't worry about this too much if they do not go overboard and code up 10000 lines of Yendere dev style code.
  • 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.
  • Make sure you pay attention to PR reviews. If a reviewer asks for changes then you are expected to do those changes else the PR will be closed

PR Titles

PR titles need to be descriptive.

  • No jokes, clear English, preferably brief
  • Good examples)
  • Refactor of NPC systems:
    • PR improves code of various NPC systems. Refactor describes how these are clean-ups and/or general improvement but does not add any new functionality
  • Melee Balance Overhaul:
    • PR is a mass change of weapon values. Can be to a majority of huge chunk of melee weapons via yaml or/and via C# to the melee related systems. We have tags that automatically apply if the changes are yaml or C#. Though feel free to specify in the title if you feel the need to,
  • Bad examples)
  • PR New:
    • Title doesn't describe anything about the PR's content. People do actually make PRs like this.
  • Add New Khan Loadout Items:
    • The title by itself would be good, but for this example let's say the PR also secretly added the Khans as a faction. The title doesn't make it clear at all that it does such and it should probably be the main thing specified in the title. Doing this makes it come off like you're trying to sneak changes in.

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