clove/web
src/routes/automated/+page.svelte
<!-- src/routes/automated/+page.svelte
DASL-1.2 — (c) Clove Twilight
-->
<script lang="ts">
import Meta from '#lib/components/Meta.svelte';
import '#lib/styles/index.css';
import '#lib/styles/about.css';
</script>
<Meta
title="Automation"
description="How Clove's PR Bot, is-a-tracker, helps faer moderate pull requests on is-a-dev/register, and why every action still needs a human click."
/>
<section class="hero">
<div class="wrap">
<p class="eyebrow">Clove Twilight</p>
<h1>Automation</h1>
<div class="intro">
<p class="lede">
Some of the work I do is helped along by tools I've built. This page explains what they
do, and what they don't.
</p>
</div>
</div>
</section>
<section class="about">
<h1 class="sec">The PR Bot</h1>
<p class="text">
The PR Bot is
<a href="https://github.com/doughmination/isATracker">is-a-tracker</a>, a personal
moderation assistant for pull requests on
<a href="https://github.com/is-a-dev/register">is-a-dev/register</a>.
<br />
It watches new and updated pull requests, checks them against a couple of rules, and pings
me on Discord when one breaks a rule. It never acts on its own. Nothing happens to a pull request
until I read the alert and press a button.
</p>
<h1 class="sec">What It Looks For</h1>
<p class="text">
<strong>NS records from a first-time contributor.</strong>
is-a.dev doesn't grant nameserver records to people without an accepted registration. If the
author has no merged pull requests in the repository, and isn't a maintainer, the
bot flags it. If I press <em>Close PR</em>, it posts the policy comment and closes the
pull request.
<br />
<strong>A GitHub no-reply <code>owner.email</code>.</strong>
Addresses ending in <code>@users.noreply.github.com</code> aren't allowed. The bot only
reads the <code>owner.email</code> field in the JSON file, never your commit or profile
emails. If I press <em>Request Changes</em>, it leaves a review with an inline comment on
that line.
</p>
<h1 class="sec">Got a Comment From It?</h1>
<p class="text">
The comment came from my account, and I approved it myself. The wording is a
template, but the decision wasn't automatic.
<br />
If you think it got something wrong, drop me a message and I'll take a look. For an NS
record closure, you're welcome to open a new pull request with other record types,
such as <code>A</code>, <code>AAAA</code>, <code>CNAME</code>,
<code>MX</code> or <code>TXT</code>. See the
<a href="https://docs.is-a.dev/faq/#who-can-use-ns-records">is-a.dev docs</a> for more.
</p>
<h1 class="sec">How It Stays Safe</h1>
<p class="text">
Before every action, the bot checks the pull request again at its latest commit, so
a fix pushed after the alert is never punished.
<br />
Each alert can only be acted on once, so a double click never posts twice.
<br />
Writes to GitHub are never retried automatically, and every attempt is recorded in an audit
log.
<br />
It keeps part of the GitHub rate limit in reserve, so scanning never gets in the way of an action
I've approved.
</p>
</section>