{"action":"created","issue":{"url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/issues/2","repository_url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps","labels_url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/issues/2/comments","events_url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/issues/2/events","html_url":"https://github.com/Lisa-Vanderschuit/getting-started-github-apps/pull/2","id":373062677,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MDg2NDU3","number":2,"title":"WIP Trigger the app","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-23T15:30:14Z","updated_at":"2018-10-23T16:35:27Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/pulls/2","html_url":"https://github.com/Lisa-Vanderschuit/getting-started-github-apps/pull/2","diff_url":"https://github.com/Lisa-Vanderschuit/getting-started-github-apps/pull/2.diff","patch_url":"https://github.com/Lisa-Vanderschuit/getting-started-github-apps/pull/2.patch"},"body":"## Triggering GitHub Apps\n\nActions that a person or tool takes on GitHub can be used to trigger events. Creating an issue, making a commit, or leaving a comment, to name a few, are logged on GitHub. If GitHub doesn't use it, it can still be useful to other applications.\n\nWhen you install an app, you give the app permission to receive some of this data from GitHub. That data allows the apps to react in ways that are useful to you. You can also allow the app to send information back, or change information completely.\n\nIt's important to mention that GitHub Apps are not people. You can't interact with them by doing things like using an @mention, or assigning them to review your work. On the other hand, they can do things that humans can't - like crunch big data, piece together networks of information and find bugs or errors that people wouldn't.\n\n## App components\n\nAn app is like a home security system. It's equipped to watch your house at all times, but only notifies you for specific criteria.\tWhen you install a home security system, you need to worry about a few components:\n\n- **Electricity** to have the power to run continuously. You don't want failure when you aren't watching.\n- **Standard behaviors** to detect things like movement, noise, and doors opening. You don't want to have to program it to understand these actions -- you want to select how it responds to them.\n- A **location** that will be watched.\n- A **notification delivery service** -- either to your phone, a dedicated security service, or both.\n\nJust like a home security system, a GitHub App only watches for specific actions, and then responds in predetermined ways.\n\n## Step 2: Trigger the WIP app\n\n**WIP** is a common abbreviation to mean **work in progress**.\n\nThe app you've just installed is concerned with one action: changing the title of a pull request. Let's test it out and see what the result is by updating the title of this pull request.\n\n### :keyboard: Activity: Test the app by editing the pull request title\n\n1. To the right of the pull request title, click the **Edit** button\n1. Add `WIP` to the beginning of the title\n1. Click **Save**\n\n<hr>\n<h3 align=\"center\">After changing the title, look for my response in this pull request</h3>\n"},"comment":{"url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/issues/comments/432323511","html_url":"https://github.com/Lisa-Vanderschuit/getting-started-github-apps/pull/2#issuecomment-432323511","issue_url":"https://api.github.com/repos/Lisa-Vanderschuit/getting-started-github-apps/issues/2","id":432323511,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjMyMzUxMQ==","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-10-23T16:35:27Z","updated_at":"2018-10-23T16:35:27Z","author_association":"NONE","body":"Nice work adding smee.io!\n\n## WIP on the surface\nWhen you added \"WIP\" to the title of this pull request, something changed. Do you see that the pull request's status is \"pending\" with a yellow dot? This is to block merging while the title includes \"WIP\".\n\nLet's breakdown how WIP works:\n\n1. The app listens specifically for a change to a pull request title\n2. When a pull request title changes, the app searches for the key-word, **\"WIP\"**\n3. If the search finds \"WIP\", the app sends a request to GitHub's API to block merging in that pull request\n\n## Step 4: Watching for webhooks\n\nLet's use this next activity to find out what's happening behind the scenes.\n\n### :keyboard: Activity: Remove WIP from pull request title\nWhen you made this pull request a work in progress, I took it as a cue to add some good content to this repository! Now that we've got some real work, let's remove the WIP label so that we can merge.\n\n1. To the right of the pull request title, click the **Edit** button\n1. Remove `WIP` from the title\n1. Click **Save**\n\n<hr>\n<h3 align=\"center\">Look for my response in a comment on this pull request</h3>\n"}}
{"actor":{"display_login":"github-learning-lab"}}