Skip to content

Instantly share code, notes, and snippets.

View bdougie's full-sized avatar

Brian Douglas bdougie

View GitHub Profile
@bdougie
bdougie / README.md
Last active January 10, 2019 16:56 — forked from DEGoodmanWilson/README.md
Giphy and GitHub

Goals:

  1. Learn how to set up Probot to create a GitHub App boilerplate
  2. Learn what a GitHub Event is.
  3. Learn how to tell Probot to react to Events by calling external APIs

Let's begin with a warmup. Imagine that we want to greet new visitors to our open source project, by sending them a gif when they open a new issue.

Part 1: Hello World

Begin by making a sandbox repository, to keep everything nice and contained. https://github.com/new

=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt