Set-OPS-Public/promo/formation/contrib-01/slides/refus.html

11 lines
3.5 KiB
HTML
Raw Normal View History

<section id="refus" data-transition="fade" style="background:#131B36;color:#EEF2F8;font-family:'IBM Plex Sans', Arial, sans-serif;padding:128px 128px 160px;display:flex;flex-direction:column;gap:36px">
<div style="display:flex;flex-direction:column;gap:16px">
<p style="font-size:24px;letter-spacing:3px;text-transform:uppercase;color:#4FE3C1;font-weight:600">Ce que la machine refuse</p>
<h2 style="font-family:'Source Serif 4', Georgia, serif;font-size:68px;font-weight:400;line-height:1.1;color:#EEF2F8">Le hook refuse avant la revue.</h2>
</div>
<div style="display:flex;gap:32px;align-items:stretch"><div style="flex:1.5;display:flex;flex-direction:column;gap:2px;background:#0B1022;padding:30px 32px;border-radius:20px;border-top:6px solid #FF8A8A;font-family:'JetBrains Mono', 'Courier New', monospace;font-size:22px;line-height:1.45"><p style="font-family:'IBM Plex Sans', Arial, sans-serif;font-size:24px;letter-spacing:2px;text-transform:uppercase;color:#FF8A8A;font-weight:600">Un vrai refus, abrégé</p><p style="font-size:22px;color:#EEF2F8;white-space:pre">$ git commit -m &quot;courriel : essai&quot;</p><p style="font-size:22px;color:#FF8A8A;white-space:pre">Commit refuse — convention du depot (CONTRIBUTING.md) :</p><p style="font-size:22px;color:#8592AD;white-space:pre"> - titre non conventionnel : « courriel : essai »</p><p style="font-size:22px;color:#8592AD;white-space:pre"> - aucun `Signed-off-by: Nom &lt;courriel&gt;` (DCO)</p><p style="font-size:22px;color:#EEF2F8;white-space:pre"> — `git commit -s`</p></div><div style="flex:1;display:flex;flex-direction:column;gap:12px;background:#0B1022;padding:28px 30px;border-radius:20px;border-top:6px solid #56C2FF"><p style="font-size:30px;color:#EEF2F8;font-weight:600">Les gestes</p><p style="font-size:24px;line-height:1.4;color:#BCC7DA">Activer, une fois par copie :<br><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">make git-hooks</span><br><br>Relire toute la branche :<br><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">make commits-verifier</span><br><br>Corriger : <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">git commit --amend -s</span>, ou <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">git rebase -i main</span> (reword)</p></div></div>
<p style="font-size:30px;line-height:1.45;color:#BCC7DA;width:1550px">La CI rejoue la même vérification sur chaque commit d’une demande, et main est protégée : personne n’y pousse, le mainteneur compris.</p>
<p style="position:absolute;left:128px;bottom:64px;width:1400px;font-size:24px;color:#8592AD">Set-OPS · Formation · Module C1 — Contribuer à Set-OPS</p>
<p style="position:absolute;right:128px;bottom:64px;width:120px;text-align:right;font-size:24px;color:#8592AD">10</p>
<aside>Ce que la machine refuse. Activez une fois, dans votre copie, le hook du dépôt : make git-hooks. Il refuse un commit dont le titre n’est pas conventionnel, qui n’a pas de Signed-off-by, ou qui nomme un outil comme co-auteur, et il dit pourquoi ; voici un vrai refus. make commits-verifier relit toute votre branche d’un coup. Pour corriger le dernier commit, git commit --amend -s ; pour un plus ancien, un rebase interactif et l’action reword. La CI rejoue la même vérification sur chaque commit d’une demande, et la branche main est protégée : personne n’y pousse directement, le mainteneur compris.</aside>
</section>