Pro Yearly is on sale from $80 to $50! »

Unwatch GitHub repos

32ef4e3e388cbadc756a008cade3ee6a?s=47 Janos Gyerik
September 14, 2016

Unwatch GitHub repos

When you need to perform an operation on a large number of GitHub repositories, their REST API and some command line magic comes in handy. This short talk will demonstrate a technique to watch and un-watch GitHub repositories using ad-hoc scripting. The example should give a good idea how to perform other bulk operations too.

32ef4e3e388cbadc756a008cade3ee6a?s=128

Janos Gyerik

September 14, 2016
Tweet

Transcript

  1. WATCH OR UN-WATCH GITHUB REPOSITORIES USING GITHUB API + CURL

    + JQ + BASH https://speakerdeck.com/janosgyerik/unwatch-github-repos
  2. So I have this setting on GitHub…

  3. 2 days after joining SonarSource Org…

  4. How to un-watch many?

  5. How to un-watch many? click click click …

  6. click click click … click click click … click click

    click … click click click … click click click … click click click … click click cli click click cli click click cli click click cli click click cli click click cli click click click … click click click … click click click … click click click … click click click … click click click … How patient are you?
  7. Search on GitHub API for “watching” (or, well, how about

    just “w”…)
  8. https://developer.github.com/v3/activity/watching/#get-a-repository-subscription

  9. First attempt:

  10. Could be important?

  11. None
  12. Second attempt…

  13. Third attempt?

  14. Un-watch one

  15. Un-watch one

  16. List ‘em all

  17. Un-watch ‘em all

  18. None