<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Hani</title>
    <description>The latest articles on Forem by Hani (@thehanimo).</description>
    <link>https://forem.com/thehanimo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F167963%2Fea20a1b4-67b7-4591-8242-8eea7490b2aa.jpeg</url>
      <title>Forem: Hani</title>
      <link>https://forem.com/thehanimo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/thehanimo"/>
    <language>en</language>
    <item>
      <title>Check if PR titles follow contribution guidelines</title>
      <dc:creator>Hani</dc:creator>
      <pubDate>Fri, 14 Aug 2020 18:25:21 +0000</pubDate>
      <link>https://forem.com/thehanimo/check-if-pr-titles-follow-contribution-guidelines-42o4</link>
      <guid>https://forem.com/thehanimo/check-if-pr-titles-follow-contribution-guidelines-42o4</guid>
      <description>&lt;h3&gt;
  
  
  My Workflow
&lt;/h3&gt;

&lt;p&gt;Contribution guidelines of popular projects often include a recommended title styling like this one from &lt;a href="https://github.com/facebook/docusaurus" rel="noopener noreferrer"&gt;facebook/docusaurus&lt;/a&gt;:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

feat: allow overriding of webpack config
^--^  ^------------^
|     |
|     +-&amp;gt; Summary in present tense.
|
+-------&amp;gt; Type: chore, docs, feat, fix, refactor, style, or test.


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/marketplace/actions/pr-title-checker" rel="noopener noreferrer"&gt;PR Title Checker&lt;/a&gt; helps maintainers organise their projects better by tagging titles that do not conform to such guidelines. No, it doesn't check if the summary is in present tense 😅. At least not yet! &lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;Pull Request Titles can be checked for certain prefixes (or even regexps, or both!) and tagged automatically if they fail to comply. This usually prompts the author themselves to fix it so that when a maintainer wakes up from their hard-fought night's sleep, they don't have to be faced with weirdly named pull requests even after they had it all perfectly laid out in the Contribution guidelines. Oh and btw, this little Github action can also show you if the author has &lt;em&gt;reaaaaally&lt;/em&gt; read the Contribution Guidelines ;)&lt;/p&gt;
&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;Maintainer Must-Haves (or Wacky Wildcards for Maintainers perhaps? 🤔)&lt;/p&gt;
&lt;h3&gt;
  
  
  Yaml File or Link to Code
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/thehanimo" rel="noopener noreferrer"&gt;
        thehanimo
      &lt;/a&gt; / &lt;a href="https://github.com/thehanimo/pr-title-checker" rel="noopener noreferrer"&gt;
        pr-title-checker
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      An action to automatically check if pull request titles conform to Contribution Guidelines
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Pull Request Title Checker&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;This action checks if PR titles conform to the Contribution Guidelines ☑️ &lt;br&gt;&lt;br&gt;
Consistent title names help maintainers organise their projects better 📚 &lt;br&gt;&lt;br&gt;
Shows if the author has &lt;em&gt;reaaaaally&lt;/em&gt; read the Contribution Guidelines :P&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Create a config file &lt;code&gt;.github/pr-title-checker-config.json&lt;/code&gt; like this one below:&lt;/p&gt;
&lt;div class="highlight highlight-source-json notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;{
  &lt;span class="pl-ent"&gt;"LABEL"&lt;/span&gt;: {
    &lt;span class="pl-ent"&gt;"name"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;title needs formatting&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
    &lt;span class="pl-ent"&gt;"color"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;EEEEEE&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;
  },
  &lt;span class="pl-ent"&gt;"CHECKS"&lt;/span&gt;: {
    &lt;span class="pl-ent"&gt;"prefixes"&lt;/span&gt;: [&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;fix: &lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;, &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;feat: &lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;],
    &lt;span class="pl-ent"&gt;"regexp"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;docs&lt;span class="pl-cce"&gt;\\&lt;/span&gt;(v[0-9]&lt;span class="pl-cce"&gt;\\&lt;/span&gt;): &lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
    &lt;span class="pl-ent"&gt;"regexpFlags"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;i&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
    &lt;span class="pl-ent"&gt;"ignoreLabels"&lt;/span&gt; : [&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;dont-check-PRs-with-this-label&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;, &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;meta&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;]
  },
  &lt;span class="pl-ent"&gt;"MESSAGES"&lt;/span&gt;: {
    &lt;span class="pl-ent"&gt;"success"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;All OK&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
    &lt;span class="pl-ent"&gt;"failure"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;Failing CI test&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
    &lt;span class="pl-ent"&gt;"notice"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;
  }
}&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;You can pass in one of &lt;code&gt;prefixes&lt;/code&gt; or &lt;code&gt;regexp&lt;/code&gt; or even both based on your use case. &lt;code&gt;regexpFlags&lt;/code&gt; and…&lt;/p&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/thehanimo/pr-title-checker" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;This was my first shot at building a Github action (and a DEV post!). Since it's just released, not many projects use it yet! (You can help change that &lt;a href="https://github.com/marketplace/actions/pr-title-checker" rel="noopener noreferrer"&gt;here&lt;/a&gt; 🙂)&lt;/p&gt;

&lt;p&gt;Would love to hear your thoughts below! 💭&lt;/p&gt;

</description>
      <category>actionshackathon</category>
      <category>github</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
