alfred-github-workflow
alfred-github-workflow copied to clipboard
WIP: Show issue and pull request state in icon
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.
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?
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.
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.