Name: github_create_issues
Owner: Stanford University Digital Library
Description: Ruby library to push a list of issues to a github repository
Created: 2017-02-15 22:59:43.0
Updated: 2017-12-20 02:54:25.0
Pushed: 2017-02-17 20:37:25.0
Homepage: null
Size: 5
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a ruby module to create and maintain a list of issues for a git repo. It's meant for a use case where we are using issues for general internal ticketing, and it would be useful to let some of our automated processes be able to create tickets from actionable data.
It's a fairly simple wrapper around the Octokit gem. Given an OAuth token, a repository, a label, a list of issue titles, and the text for those issues, it seeks to create the given issues. If issues with those titles already exist and are open, then we add a comment that the given issue is ongoing.
An example of how we use it is that we have a script that each week sends a list of servers that haven't checked in to puppet lately. We can use this to instead create an issue for each server for someone to handle, and keep noting in the comments if it's not been dealt with on future runs.
The label will be created if it does not exist, and is used to limit the scope of the library to only things with that label. If you have multiple programs using this library to handle issues, then it's probably best to give each a unique label.