<?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>DEV Community: Cian Gallagher</title>
    <description>The latest articles on DEV Community by Cian Gallagher (@cian911).</description>
    <link>https://dev.to/cian911</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%2F721024%2Fbe559376-1391-497a-aca4-3a8d00beb0e8.png</url>
      <title>DEV Community: Cian Gallagher</title>
      <link>https://dev.to/cian911</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cian911"/>
    <language>en</language>
    <item>
      <title>Switchboard - Simplify file organisation on your machine/s.</title>
      <dc:creator>Cian Gallagher</dc:creator>
      <pubDate>Thu, 06 Jan 2022 00:03:34 +0000</pubDate>
      <link>https://dev.to/cian911/switchboard-simplify-file-organisation-on-your-machines-35f5</link>
      <guid>https://dev.to/cian911/switchboard-simplify-file-organisation-on-your-machines-35f5</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0uifvbqv258c1g2gexfc.png" class="article-body-image-wrapper"&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-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0uifvbqv258c1g2gexfc.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&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/Cian911" rel="noopener noreferrer"&gt;
        Cian911
      &lt;/a&gt; / &lt;a href="https://github.com/Cian911/switchboard" rel="noopener noreferrer"&gt;
        switchboard
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Automated file organisation and routing for all your machines. 📂
    &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;Switchboard&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/Cian911/switchboard/workflows/Release/badge.svg"&gt;&lt;img src="https://github.com/Cian911/switchboard/workflows/Release/badge.svg" alt="GitHub Actions Status"&gt;&lt;/a&gt; &lt;a rel="noopener noreferrer" href="https://github.com/Cian911/switchboard/workflows/Test%20Suite/badge.svg"&gt;&lt;img src="https://github.com/Cian911/switchboard/workflows/Test%20Suite/badge.svg" alt="GitHub Actions Status"&gt;&lt;/a&gt;  &lt;a href="https://goreportcard.com/report/github.com/cian911/switchboard" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/ce6038acbbddeedbeedcbfb0922f1d0c5ea61a5b0f2a5489797b917adbde2584/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f6369616e3931312f737769746368626f617264" alt="Go Report Card"&gt;&lt;/a&gt; &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4dd7ab46c618217e6740dcbb45da59c36baf174fe6d8b9a0249a594181d96804/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f636f6c6f723d73756363657373266c6162656c3d446f776e6c6f6164732671756572793d636f756e742675726c3d68747470733a2f2f6769746875622e636f6d2f4369616e3931312f737769746368626f6172642f626c6f622f6d61737465722f636f756e742e6a736f6e3f7261773d54727565266c6f676f3d686f6d6562726577"&gt;&lt;img src="https://camo.githubusercontent.com/4dd7ab46c618217e6740dcbb45da59c36baf174fe6d8b9a0249a594181d96804/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f636f6c6f723d73756363657373266c6162656c3d446f776e6c6f6164732671756572793d636f756e742675726c3d68747470733a2f2f6769746875622e636f6d2f4369616e3931312f737769746368626f6172642f626c6f622f6d61737465722f636f756e742e6a736f6e3f7261773d54727565266c6f676f3d686f6d6562726577" alt="Homebrew Downloads"&gt;&lt;/a&gt; &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/918b99650a31d68dcedeb027ab316a8da35b9ea5815796fd8fc14bfc29ff0e32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4369616e3931312f737769746368626f6172642f746f74616c2e737667"&gt;&lt;img src="https://camo.githubusercontent.com/918b99650a31d68dcedeb027ab316a8da35b9ea5815796fd8fc14bfc29ff0e32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4369616e3931312f737769746368626f6172642f746f74616c2e737667" alt="Downloads"&gt;&lt;/a&gt; &lt;a href="https://github.com/Cian911/switchboard" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/97873812fa9978e424f4521cb2b3b49c9c771dfb7d03f51d98f4c201304aa10f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f676f2d6d6f642f676f2d76657273696f6e2f4369616e3931312f737769746368626f6172642e737667" alt="GitHub go.mod Go version of a Go module"&gt;&lt;/a&gt; &lt;a href="https://pkg.go.dev/github.com/cian911/switchboard" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/38d3a4a042b196a18998b0b4f6ab2b10a3a5428b47d96dcd51a6af884f23d4e1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f676f646f632d7265666572656e63652d626c75652e737667" alt="GoDoc reference example"&gt;&lt;/a&gt; &lt;a href="https://GitHub.com/Cian911/switchboard/starazers/" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/27566b33135e73b36ee74537013514701eea40c38cee52690fc391fd9e799aa0/68747470733a2f2f62616467656e2e6e65742f6769746875622f73746172732f4369616e3931312f737769746368626f617264" alt="GitHub stars"&gt;&lt;/a&gt; &lt;a href="https://GitHub.com/Cian911/switchboard/network/" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/37d6d1d12971bc8619901db96a265fe7e2f79ceafcb68eef858832eaa04285ba/68747470733a2f2f62616467656e2e6e65742f6769746875622f666f726b732f4369616e3931312f737769746368626f6172642f" alt="GitHub forks"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/Cian911/switchboardexamples/logo.png"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2FCian911%2Fswitchboardexamples%2Flogo.png" alt="Gomerge logo"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Description&lt;/h3&gt;
&lt;/div&gt;

&lt;p&gt;Do you ever get annoyed that your Downloads folder gets cluttered with all types of files? Do you wish you could automatically organise them into seperate, organised folders? Switchboard is a tool to help simplfy file organization on your machine/s.&lt;/p&gt;

&lt;p&gt;Switchboard works by monitoring a directory you provide (or list of directories), and uses file system notifications to move a matched file to the appropriate destination directory of your choosing.&lt;/p&gt;

&lt;p&gt;See the video below as example. Here, I give switchboard a path to watch, a destination where I want matched files to move to, and the file extension of the type of files I want to move.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Pro&lt;/h3&gt;
&lt;/div&gt;

&lt;p&gt;As of version &lt;code&gt;v1.0.0&lt;/code&gt; we have released a pro version which has a ton more features and functionality. Head over to &lt;a href="https://goswitchboard.io/pro" rel="nofollow noopener noreferrer"&gt;https://goswitchboard.io/pro&lt;/a&gt; for more info.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Switchboard Pro&lt;/strong&gt; gives you extra features and support over the free open-source version.&lt;/p&gt;

&lt;p&gt;Purchasing a…&lt;/p&gt;
&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Cian911/switchboard" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;Do you ever get annoyed that your Downloads folder gets cluttered with all types of files? Do you wish you could automatically organise them into separate, organised folders? Switchboard is a tool to help simplify file organisation on your machine/s. &lt;/p&gt;

&lt;p&gt;Switchboard works by monitoring a directory you provide (or list of directories), and uses file system notifications to move a matched file to the appropriate destination directory of your choosing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Motivation
&lt;/h3&gt;

&lt;p&gt;I built switchboard out of a frustration with the sporadic mess of files strewn throughout my local machine and network file servers. I thought what best way to try and fix this problem then build something, in Go no less :)&lt;/p&gt;

&lt;p&gt;Switchboard is new, so I'd love to get it into peoples hands to be used. I'd also love to here any suggestions or improvements you'd like to see - please head over to &lt;a href="https://github.com/Cian911/switchboard/discussions" rel="noopener noreferrer"&gt;Github Discussions&lt;/a&gt; to have a chat!&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;p&gt;See the video below as example. Here, I give switchboard a path to watch, a destination where I want matched files to move to, and the file extension of the type of files I want to move.&lt;/p&gt;

&lt;p&gt;You can also visit &lt;a href="https://goswitchboard.io/" rel="noopener noreferrer"&gt;https://goswitchboard.io/&lt;/a&gt; for all your documentation needs, news, and updates!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://asciinema.org/a/cWSUfcUCU4Wd5rQEs5Detf7gn" rel="noopener noreferrer"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fasciinema.org%2Fa%2FcWSUfcUCU4Wd5rQEs5Detf7gn.svg" alt="asciicast"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;p&gt;You can install switchboard pre-compiled binary in a number of ways.&lt;/p&gt;

&lt;h5&gt;
  
  
  Homebrew
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew tap Cian911/switchboard
brew &lt;span class="nb"&gt;install &lt;/span&gt;switchboard

// Check everything is working as it should be
switchboard &lt;span class="nt"&gt;-h&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Go Install
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go &lt;span class="nb"&gt;install &lt;/span&gt;github.com/Cian911/switchboard@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Manually
&lt;/h5&gt;

&lt;p&gt;You can download the pre-compiled binary for your specific OS type from the &lt;a href="https://github.com/Cian911/switchboard/releases" rel="noopener noreferrer"&gt;OSS releases page&lt;/a&gt;. You will need to copy these and extract the binary, then move it to you local bin directory. See the example below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wget https://github.com/Cian911/switchboard/releases/download/&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;VERSION&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PACKAGE_NAME&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;sudo tar&lt;/span&gt; &lt;span class="nt"&gt;-xvf&lt;/span&gt; &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PACKAGE_NAME&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt; &lt;span class="nt"&gt;-C&lt;/span&gt; /usr/local/bin/
&lt;span class="nb"&gt;sudo chmod&lt;/span&gt; +x /usr/local/bin/switchboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Quick Start
&lt;/h3&gt;

&lt;p&gt;Using switchboard is pretty easy. Below lists the set of commands and flags you can pass in.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Run the switchboard application passing &lt;span class="k"&gt;in &lt;/span&gt;the path, destination, and file &lt;span class="nb"&gt;type &lt;/span&gt;you&lt;span class="s1"&gt;'d like to watch for.

Usage:
   watch [flags]

Flags:
      --config string        Pass an optional config file containing multiple paths to watch.
  -d, --destination string   Path you want files to be relocated.
  -e, --ext string           File type you want to watch for.
  -h, --help                 help for watch
  -p, --path string          Path you want to watch.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To get started quickly, you can run the following command, passing in the path, destination, and file extenstion you want to watch for. See the example below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;switchboard watch &lt;span class="nt"&gt;-p&lt;/span&gt; /home/user/Downloads &lt;span class="nt"&gt;-d&lt;/span&gt; /home/user/Movies &lt;span class="nt"&gt;-e&lt;/span&gt; .mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>programming</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>go</category>
    </item>
    <item>
      <title>Bulk merge &amp; Approve Github Pull Requests with the Gomerge github action!</title>
      <dc:creator>Cian Gallagher</dc:creator>
      <pubDate>Fri, 26 Nov 2021 13:56:11 +0000</pubDate>
      <link>https://dev.to/cian911/bulk-merge-approve-github-pull-requests-with-the-gomerge-github-action-1omh</link>
      <guid>https://dev.to/cian911/bulk-merge-approve-github-pull-requests-with-the-gomerge-github-action-1omh</guid>
      <description>&lt;h3&gt;
  
  
  My Workflow
&lt;/h3&gt;

&lt;p&gt;Are you an open source maintainer? Do you get dozens of contributions from your community every week? Are you someone who would like to automate everything?&lt;/p&gt;

&lt;p&gt;Late last year, I created the &lt;a href="https://github.com/Cian911/gomerge" rel="noopener noreferrer"&gt;Gomerge CLI tool&lt;/a&gt;. Gomerge is a tool which allows you to quickly bulk merge and approve several pull requests from your terminal.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhveymntj234wj35gd4e6.png" class="article-body-image-wrapper"&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-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhveymntj234wj35gd4e6.png" alt="Gomerge Maschot Cover"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the github actions hackathon on the horizon, I thought I would take the opportunity and containerize Gomerge into it's own custom Github Action, with some new features to boot!&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/Cian911/gomerge-action" rel="noopener noreferrer"&gt;gomerge github action&lt;/a&gt; is now available on the &lt;a href="https://github.com/marketplace/actions/gomerge-action" rel="noopener noreferrer"&gt;github marketplace&lt;/a&gt;. You can also view the action directly on the github repository.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz5xxl76d6t5yqcgomcvi.png" class="article-body-image-wrapper"&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-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz5xxl76d6t5yqcgomcvi.png" alt="Gomerge Action in Action"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;Maintainer Must-Haves&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/Cian911" rel="noopener noreferrer"&gt;
        Cian911
      &lt;/a&gt; / &lt;a href="https://github.com/Cian911/gomerge-action" rel="noopener noreferrer"&gt;
        gomerge-action
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Github action utilising the Gomerge CLI tool to bulk merge and approve pull requests. 
    &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;h3 class="heading-element"&gt;gomerge-action&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;Github action which utilizes the &lt;a href="https://github.com/Cian911/gomerge" rel="noopener noreferrer"&gt;Gomerge CLI tool&lt;/a&gt;, also created by myself, to bulk merge and approve github pull requests.&lt;/p&gt;
&lt;p&gt;Behind the scenes, Gomerge will determine the mergeability of a pull request by checking the following attributes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CI Status&lt;/strong&gt; (success, pending, failure)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mergeable State&lt;/strong&gt; (clean, blocked, dirty)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pull Request State&lt;/strong&gt; (open, draft, closed)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If any of these metrics are not in a valid state, the pull request will not be approved/merged.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h5 class="heading-element"&gt;Usage &amp;amp; Examples&lt;/h5&gt;
&lt;/div&gt;
&lt;p&gt;Below outlines a list of possible use cases if you wanted to automated your repositories approval/merge workflow.&lt;/p&gt;
&lt;p&gt;You can also specify a list of labels in the following format &lt;code&gt;label1,label2...&lt;/code&gt; and pass that as option like so:&lt;/p&gt;
&lt;div class="highlight highlight-source-yaml notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-ent"&gt;with&lt;/span&gt;:
  &lt;span class="pl-ent"&gt;labels&lt;/span&gt;: &lt;span class="pl-s"&gt;label1,label2&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;This will filter all Pull Requests that only have the associated labels.&lt;/p&gt;

&lt;p&gt;Run action once a day at midnight to approve all valid Pull Requests.&lt;/p&gt;
&lt;div class="highlight highlight-source-yaml notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-ent"&gt;on&lt;/span&gt;
  &lt;span class="pl-ent"&gt;schedule&lt;/span&gt;:
    - &lt;span class="pl-ent"&gt;cron&lt;/span&gt;: &lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Cian911/gomerge-action" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Github action which utilizes the Gomerge CLI tool, also created by myself, to bulk merge and approve github pull requests.&lt;/p&gt;

&lt;p&gt;Behind the scenes, Gomerge will determine the mergeability of a pull request by checking the following attributes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CI Status (success, pending, failure)&lt;/li&gt;
&lt;li&gt;Mergeable State (clean, blocked, dirty)&lt;/li&gt;
&lt;li&gt;Pull Request State (open, draft, closed)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of these metrics are not in a valid state, the pull request will not be approved/merged.&lt;/p&gt;

&lt;p&gt;Below I've outlined an example which will run the action at midnight every night and approve only valid pull requests.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;schedule&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;cron&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*'&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;approve-prs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Approve valid PRs&lt;/span&gt; 
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Approve valid workflows&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Cian911/gomerge-action@master&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;repository&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.repository }}&lt;/span&gt;
          &lt;span class="na"&gt;github_token&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.GITHUB_TOKEN }}&lt;/span&gt;
          &lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;
          &lt;span class="na"&gt;approve&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;For more information and examples, please visit the &lt;a href="https://github.com/Cian911/gomerge-action" rel="noopener noreferrer"&gt;gomerge-action github page&lt;/a&gt; for a full list. You can also visit my test repo, &lt;a href="https://github.com/Cian911/gomerge-test" rel="noopener noreferrer"&gt;gomerge-test&lt;/a&gt; which contains a working example of the action.&lt;/p&gt;

&lt;p&gt;Thank you for reading! &lt;/p&gt;

</description>
      <category>actionshackathon21</category>
      <category>github</category>
      <category>go</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
