npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

trellogithubapi

v2.12.0

Published

![Website](https://img.shields.io/website?down_color=red&down_message=offline&label=status&up_color=green&up_message=online&url=http%3A%2F%2Fworkflow-webhooks.com%2Fapi%2Fstatus) ![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/Mindisgon

Downloads

18

Readme

Website GitHub tag (latest by date) Travis (.org) Trello GitHub issues

Trello/Github Webhooks API

Intro

The Trello/Github Webhooks API is a restful API designed to receive Github events from Github webhooks and comment on a corresponding Trello card so Trello Butler can better automate your workflow.

How it works

After this API receives a Github event from the webhook it looks at the headers, and the payload to determine what type of event has been received. The API then constructs a comment that gets posted to the corresponding Trello card. The API uses the git branch name as the mechanism for finding the corresponding Trello card, therefor the Trello card and its associated branch must be named exactly the same. Unfortunately the Github webhook events for comments on PR's (not reviews, those are different events) do not hold a value for the branch name like the other events do, instead if you want PR comments to be posted to your Trello cards you must also name the PR exactly the same as the Trello card you want the comments posted to.

The API will comment on the following Github events:

  • PR's being opened
  • PR's being closed
  • Reviews on PR's
  • Comments on PR's (see note above regarding comments)
  • PR's being merged

Other events will be supported in future releases.

Install

This API is a hosted solution, however to run your own server simply download the jar from the latest release then run:

java -jar trello-github-webhooks-api-**<version number>**.jar

Server will be running on port 8080

Usage

This API does not store or log personal data (ie. your Trello key and token) in any way:heavy_exclamation_mark:

When using this API keep in mind there are limits on the amount of Butler tasks you are allowed per month depending on your Trello account, see Trello docs for more details Butler Quotas

In order to use the API you must:

  1. Enable the Trello API on your account by following these Instructions
  2. Create a new webhook for your Github repository using the following settings:
    • Webhooks Config
    • Where TRELLO_KEY is your Trello API key and TRELLO_TOKEN is your Trello API app token
  3. Be sure to name your git branches exactly the same as the Trello cards you want to link together
    • If you want to post PR comments to your Trello cards your PR's must also be named exactly the same as the Trello cards you want to link them to
  4. Configure your Trello Butler automation rules to trigger on comments posted to cards from the API

Example Workflow

For this example our Trello board will have the following lists:

1. Backlog
2. To Do
3. In Progress
4. Code Review
5. Testing
6. Business Review
7. Done

Our cards will utilize PR's opened, closed, and submitted events (which are reviews on PR's, for this example we will not be using PR comments).

This example will achieve the following automation:

  1. When a PR is made, Trello card will be moved to Code Review list
  2. When an approval on the PR is submitted with the text "LGRTM", move the card to Testing list
  3. When PR is successfully merged, move the card to Business Review list

Your Trello automation rules will look similar to the following:

Butler Rules Example

Contributing

Contributions are very welcome. See the contribution guide to get started. See the Trello Board for issues new features.