Make images accessible in the /images root directory (#35016)
Co-authored-by: Sarah Edwards <skedwards88@github.com> Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
This commit is contained in:
@@ -64,15 +64,11 @@ end
|
||||
Start this server up. By default, Sinatra starts on port `4567`, so you'll want
|
||||
to configure `ngrok` to start listening for that, too.
|
||||
|
||||
In order for this server to work, we'll need to set a repository up with a webhook.
|
||||
The webhook should be configured to fire whenever a Pull Request is created, or merged.
|
||||
Go ahead and create a repository you're comfortable playing around in. Might we
|
||||
suggest [@octocat's Spoon/Knife repository](https://github.com/octocat/Spoon-Knife)?
|
||||
After that, you'll create a new webhook in your repository, feeding it the URL
|
||||
that `ngrok` gave you, and choosing `application/x-www-form-urlencoded` as the
|
||||
content type:
|
||||
In order for this server to work, we'll need to set a repository up with a webhook. The webhook should be configured to fire whenever a pull request is created, or merged.
|
||||
|
||||

|
||||
Go ahead and create a repository you're comfortable playing around in. Might we suggest [@octocat's Spoon/Knife repository](https://github.com/octocat/Spoon-Knife)?
|
||||
|
||||
After that, you'll create a new webhook in your repository, feeding it the URL that `ngrok` gave you, and choosing `application/x-www-form-urlencoded` as the content type.
|
||||
|
||||
Click **Update webhook**. You should see a body response of `Well, it worked!`.
|
||||
Great! Click on **Let me select individual events**, and select the following:
|
||||
@@ -161,7 +157,7 @@ def process_pull_request(pull_request)
|
||||
@client.create_status(pull_request['base']['repo']['full_name'], pull_request['head']['sha'], 'success')
|
||||
puts "Pull request processed!"
|
||||
end
|
||||
```
|
||||
```
|
||||
|
||||
## Conclusion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user