alfred-github-workflow icon indicating copy to clipboard operation
alfred-github-workflow copied to clipboard

WIP: Show issue and pull request state in icon

Open ericboehs opened this issue 9 years ago • 3 comments

Sorry about the chained ternaries. I don't know PHP well enough to split it out into multilines. (Tried the if (true) { # true code } else { # false code } syntax.)

Please recommend a better syntax and I will update it.

ericboehs avatar Jun 19 '15 22:06 ericboehs

Hmm I forgot about the closed state on PRs. They can have 3 states: open, merged and closed but not merged.

Thought on how to handle the open/close/merged states?

ericboehs avatar Jun 19 '15 22:06 ericboehs

Thought on how to handle the open/close/merged states?

Hmm, it seems that the issues api does not give us this information. So we would have to request the pull request api, too.

gharlan avatar Jun 24 '15 20:06 gharlan

fyi: I create the icons with a script, which I've just added to the repo: https://github.com/gharlan/alfred-github-workflow/blob/master/bin/create_icons.php

So please use this script for creating new icons. The script requires Imagick and the octicons font.

gharlan avatar Jun 24 '15 20:06 gharlan