imjasonh / ideas

A place for me to file issues against myself for things I want to build when I'm bored
5 stars 0 forks source link

Gist license header adder #4

Closed imjasonh closed 9 years ago

imjasonh commented 10 years ago

Most people don't put licenses on their GitHub Gists (I know I don't), but they probably should. A simple app or script to ask for edit permission on a user's Gists, list all Gists, let the user select a license and which files to add it to, and make necessary API calls to add the license comment to files.

Could try to be smart and figure out which files need licenses (.py, .go, .java, not .txt), and skip Gists that already include a license header or LICENSE file. Also might want to try to be smart about how comments are formed ("# comment" vs "// comment").