1
0
mirror of synced 2025-12-25 02:17:36 -05:00

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:
Laura Coursen
2023-02-27 09:26:00 -06:00
committed by GitHub
parent 3ea0fb05d5
commit ab6d8b7654
91 changed files with 126 additions and 145 deletions

View File

@@ -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.
![A new ngrok URL](/assets/images/webhook_sample_url.png)
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