Documentation
¶
Overview ¶
Package privgate is the door against publishing a person's own file system in text sent to GitHub: ghissue and ghpr both pass every body and title through it, so that they cannot diverge in what they consider a disclosure.
Index ¶
Constants ¶
const WaiverFlag = "--allow-private-path"
WaiverFlag is the name of the flag that overrides the gate, quoted in its own refusal so that the reader does not have to look it up.
Variables ¶
This section is empty.
Functions ¶
func Body ¶
Body refuses a body that names a person's own file system.
⛔ The waiver takes a REASON and has no default. A boolean waiver is one keystroke and gets passed by reflex; a reason has to be written, and writing it is the moment to notice there is nothing to write. And it STAMPS: the reason is appended to the published text, where the recipient reads it too, so a waiver is a statement made in public and not a switch flicked in private.
func Title ¶
Title refuses a title that names a person's own file system, and NO waiver covers it.
⛔ The asymmetry is deliberate. A title is one line — it cannot carry the stamp that makes a waiver public — and it is the most-read text a forge has: it appears in every listing, every search result, every notification mail and every cross-reference, none of which an edit reaches. So a disclosure in a title is rewritten, not excused.
Types ¶
This section is empty.