DEV Community

10x learner
10x learner

Posted on • Originally published at 10xlearner.com on

2 1

Chocolatey and Gist

Hello ! I’m Xavier Jouvenot and in this small post, we are going to see how to link a gist to a chocolatey package maintainer repository.

Self promotion: You can find other articles on my website 😉

Introduction

I assume that if you click to see this post, you already know what [Chocolatey] and [Gist] are, but if this is not the case I encourage to go google about them.

In this post, we are going to focus on the Chocolatey Automatic Package Updater Module, aka AU, and how to link it to a Gist document so you can have a public report expliciting the state of all the packages that you are maintaining. 🙂

Setting it up

Appveyor report upload

Once you have created you own fork of the chocolatey-packages-template repository, let’s go in the .appveyor.yml file and look to the two following lines

gist_id:

gist_id_test:
Enter fullscreen mode Exit fullscreen mode

Those are the fields that are going to interest us.Indeed, by giving then the id of our Gist, it will link the result of your tests in appveyor to your Gist.

To identify the id of your Gist, all you have to do, is to create a new Gist, name it Update-AUPackages.md and take the id from the url of your gist.Know that your Gist url is form like https://gist.github.com/name/id so all you have to do is to get the last component of the url and paste it after each of the gist fields. 🙂

Link your report to your README

You can also create a link in your README.md file to your Gist report by adding a badge.To do so, you can copy-paste the following line at the top of you read me (after replacing <your/gist/url> by your actual gist report url):

[![Update Status](https://img.shields.io/badge/Update-Status-blue.svg)](<your/gist/url>)
Enter fullscreen mode Exit fullscreen mode

Moreover, if you want, you can go to img.shields.io to create your own custom badge 😉


Thank you all for reading this article,And until my next article, have a splendid day 😉

Interesting links

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

Jetbrains image

Is Your CI/CD Server a Prime Target for Attack?

57% of organizations have suffered from a security incident related to DevOps toolchain exposures. It makes sense—CI/CD servers have access to source code, a highly valuable asset. Is yours secure? Check out nine practical tips to protect your CI/CD.

Learn more

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay