Blogcop: A GitHub app that helps you manage your Jekyll blog

At OmbuLabs opens a new window we use Jekyll opens a new window to generate our blog opens a new window . If you are not familiar with it, here is a quick description from the Jekyll site:

“Jekyll is a simple, extendable, static site generator. You give it text written in your favorite markup language and it churns through layouts to create a static website. Throughout that process you can tweak how you want the site URLs to look, what data gets displayed in the layout, and more.”

Problem

Jekyll has been working great for us over the years, but one thing that was missing was a way to manage outdated articles. Basically, we wanted the ability to unpublish articles that have not been updated for a few months, so we can review and update them.

Solution

Since we didn’t find any existing tool that does such thing we decided to make our own.

Our blog is hosted on GitHub opens a new window so we thought it would be a good idea to have a GitHub app opens a new window that does the job. That way anyone can simply install the app in their repo and start using this feature.

Blogcop

Blogcop opens a new window is a GitHub bot that we built to solve the problem mentioned above.

Blogcop will:

  • Be triggered when you push a commit to master.
  • Look for articles that have not been updated in the last 3 months (by looking at their last commit date).
  • Create an Issue for every outdated article.

Blogcop Issue

  • Create a Pull Request to unpublish every outdated article.

Blogcop PR

Blogcop PR change

If you are interested you can check the GitHub app’s source code in: https://github.com/ombulabs/blogcop opens a new window . The bot is a simple Sinatra opens a new window app that was built using the github-app-template opens a new window . If you want to learn more about building GitHub apps I recommend you checking at the official documentation opens a new window .

Conclusion

If you’re currently using Jekyll on your blog or if you were looking for GitHub app examples I hope you find this article useful.

Let us know in the comments section if you have any feedback on this tool.