
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ftl13.com/w/index.php?action=history&amp;feed=atom&amp;title=Guide_to_Changelogs</id>
	<title>Guide to Changelogs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ftl13.com/w/index.php?action=history&amp;feed=atom&amp;title=Guide_to_Changelogs"/>
	<link rel="alternate" type="text/html" href="https://ftl13.com/w/index.php?title=Guide_to_Changelogs&amp;action=history"/>
	<updated>2026-05-16T05:26:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://ftl13.com/w/index.php?title=Guide_to_Changelogs&amp;diff=999&amp;oldid=prev</id>
		<title>Monster860: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://ftl13.com/w/index.php?title=Guide_to_Changelogs&amp;diff=999&amp;oldid=prev"/>
		<updated>2016-07-24T19:25:11Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{note|This guide thanks to friends from [http://ss13.nexisonline.net/wiki/Guide_to_Changelogs /vg/].}}&lt;br /&gt;
&lt;br /&gt;
Changelogs are small YAML files that developers create to add their pull requests&amp;#039; changes to the master changelog.html file.  A python script run by a maintainer collects all the changes specified and generates the HTML necessary, merging changes by the same author during the same day.&lt;br /&gt;
&lt;br /&gt;
On the /tg/station Github changelogs can be automatically generated from special formatting in the body of a PR&amp;#039;s description.&lt;br /&gt;
&lt;br /&gt;
The idea is to reduce merge conflicts caused by two PRs trying to edit the same file.&lt;br /&gt;
&lt;br /&gt;
== Creating a Changelog == &lt;br /&gt;
&lt;br /&gt;
=== Committing a .yml file ===&lt;br /&gt;
PR changelogs are temporary and just get deleted after they&amp;#039;re merged into the master changelog.&lt;br /&gt;
&lt;br /&gt;
# Create &amp;lt;code&amp;gt;html/changelogs/&amp;#039;&amp;#039;USERNAME-BRANCHNAME&amp;#039;&amp;#039;.yml&amp;lt;/code&amp;gt;.&lt;br /&gt;
## Go to &amp;lt;code&amp;gt;/master/html/changelogs/&amp;lt;/code&amp;gt; on your branch.&lt;br /&gt;
## Create file &amp;lt;code&amp;gt;&amp;#039;&amp;#039;USERNAME-BRANCHNAME&amp;#039;&amp;#039;.yml&amp;lt;/code&amp;gt; in the folder, where &amp;#039;BRANCHNAME&amp;#039; the name of the branch on your fork and &amp;#039;USERNAME&amp;#039; is your github username.&lt;br /&gt;
##* Example: &amp;lt;code&amp;gt;Deantwo-BrainlessShooting.yml&amp;lt;/code&amp;gt;&lt;br /&gt;
##* File name is not super important but helps the maintainers know who made the file and which PR it is related to. Also prevents conflicts since two files won&amp;#039;t have the same name.&lt;br /&gt;
# Copy the contents of [https://github.com/tgstation/-tg-station/blob/master/html/changelogs/example.yml this].&lt;br /&gt;
# Fill it out.&lt;br /&gt;
#* Make sure to set delete-after to true.&lt;br /&gt;
#* Also ensure you update the author name so you get credited appropriately.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;PROOFREAD.&amp;#039;&amp;#039;&amp;#039; Changelog entries are final after they&amp;#039;re merged.&lt;br /&gt;
# Add it to git so it&amp;#039;s included with your PR.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;File content example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
    author: Deantwo&lt;br /&gt;
    &lt;br /&gt;
    delete-after: True&lt;br /&gt;
    &lt;br /&gt;
    changes: &lt;br /&gt;
      - rscadd: &amp;quot;Added laser rifles for everyone.&amp;quot;&lt;br /&gt;
      - rscdel: &amp;quot;Removed everyone&amp;#039;s brains.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Online auto-creation ===&lt;br /&gt;
By formatting text in the body of your PR description you can have a changelog .yml file automatically generated for you.&lt;br /&gt;
Declare the start of a changelog entry with :cl: and close it with /:cl:; anything in between these two tags will included, remember to use prefixes for each line. See below for a list of valid prefixes.&lt;br /&gt;
An author can be set after the :cl: tag, if omitted your Github username will be used by default.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Format example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
    :cl: Deantwo&lt;br /&gt;
    rscadd: Added laser rifles for everyone.&lt;br /&gt;
    rscdel: Removed everyone&amp;#039;s brains.&lt;br /&gt;
    /:cl:&lt;br /&gt;
&lt;br /&gt;
=== Updating the Changelog ===&lt;br /&gt;
&lt;br /&gt;
:&amp;#039;&amp;#039;Only maintainers need to do this.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* First, install python 2.7, pip, and PyYaml:&lt;br /&gt;
** After installing python and ensuring it and its Scripts/ folder is in PATH, download and run [https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py get-pip.py] with python.&lt;br /&gt;
** Once pip is installed run the following commands in your terminal&lt;br /&gt;
** &amp;lt;code&amp;gt;pip install PyYaml&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;pip install beautifulsoup4&amp;lt;/code&amp;gt;&lt;br /&gt;
* With /tg/station&amp;#039;s code, simply run makeChangelog.bat.&lt;br /&gt;
* On Linux or other codebases, run &amp;lt;code&amp;gt;python tools/ss13_genchangelog.py html/changelog.html html/changelogs&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Screwed up Changelog ==&lt;br /&gt;
If a changelog needs to be edited after merge, a maintainer will need to edit the html/changelogs/.all_changelog.yml file in order to fix the database. (This file is hidden on Linux and Mac OSX.)&lt;br /&gt;
&lt;br /&gt;
== Valid Prefixes ==&lt;br /&gt;
Any of these prefixes can be used when creating a changelog.&lt;br /&gt;
*[[File:Bug-minus.png]] bugfix&lt;br /&gt;
*[[File:Hard-hat-exclamation.png]] wip&lt;br /&gt;
*[[File:Wrench-screwdriver.png]] tweak&lt;br /&gt;
*[[File:Music-plus.png]] soundadd&lt;br /&gt;
*[[File:Music-minus.png]] sounddel&lt;br /&gt;
*[[File:Tick-circle.png]] rscadd&lt;br /&gt;
*[[File:Cross-circle.png]] rscdel&lt;br /&gt;
*[[File:Image-plus.png]] imageadd&lt;br /&gt;
*[[File:Image-minus.png]] imagedel&lt;br /&gt;
*[[File:Spell-check.png]] spellcheck&lt;br /&gt;
*[[File:Burn-exclamation.png]] experiment&lt;br /&gt;
&lt;br /&gt;
{{Contribution guides}}&lt;br /&gt;
[[Category:Guides]] [[Category:Game Resources]]&lt;/div&gt;</summary>
		<author><name>Monster860</name></author>
	</entry>
</feed>