Skip to content

How to Edit Rules (Tina)

Kaique "Kiki" Biancatti [SSW] edited this page Dec 29, 2025 · 10 revisions

Before you begin - establish the why

Before you start editing a rule, the first question to ask yourself is, why?

The rules exist to document solutions to recurring problems, if it's happened more than once, then it's probably worth making a rule.

Generally, every rule should document the reasons for adopting a specific solution, but not necessarily how to get there.

Editing a rule

Making the changes is sooo much better than sending an email in the format of change x to y. It's fast, allows us to look at previous changes and gives you credits on your GitHub stats!

Better again is using the newly added Netlify CMS interface to edit rules without the hassle of worrying about branches, forks and pull requests. All of this is done automatically behind the scenes, and you still get all the benefits to your stats!

Figure: Some good GitHub stats 😄

How to Edit Rules: Using TinaCMS

Using the TinaCMS interface to edit rules is easy! Simply follow these steps:

  1. 🔐 You'll need permissions first 🔐 - Send an email to SysAdmins requesting Contributor access to the SSW.Rules project in Tina.io using Outlook | New Email | Content Chooser | All Staff Single Use Email Templates | Induction Part 2 - SSW Rules Tina Access
  2. After access is granted, navigate to the rule you want to edit on SSW Rules Beta.
  3. Click the pencil icon to open the TinaCMS editor.
image

Figure: Click to edit

  1. Use the editor in the left column to edit the details of the rule. You can preview your changes in the right column as you make them.

Important: You may need to switch to the tina-migration-main-content branch

Note: The actual content of the rule is in the Body field.

image

Figure: TinaCMS interface for a rule

  1. Tip: If you have substantially improved a rule, feel free to add yourself to the acknowledgements section.

See How-to-Add-an-Acknowledgment.

  1. Click 'Save' to save your changes to the rule. You will be asked to create a branch for your changes for approval before they are added to SSW Rules.
image

Figure: Create branch and save

  1. Navigate to SSW.Rules.Content | Pull Requests and open your pull request. Add a title and fill out the description fields (As per Do you know how to write a good pull request?)

  2. Once everything looks good, scroll down and click "Ready for review"

image

Clone this wiki locally