+
Skip to content

Add review app support #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .buildpacks
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/nexmo_developer=https://github.com/heroku/heroku-buildpack-ruby.git
14 changes: 14 additions & 0 deletions .github/workflows/pull_request-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Review App
on:
pull_request_target:
types: [opened, reopened, synchronize, labeled, closed]
jobs:
create-review-app:
runs-on: ubuntu-latest
steps:
- name: Create Review App
uses: mheap/github-action-pr-heroku-review-app@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID }}
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'
ruby '2.5.8'
14 changes: 14 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
GEM
remote: https://rubygems.org/
specs:

PLATFORMS
ruby

DEPENDENCIES

RUBY VERSION
ruby 2.5.8p224

BUNDLED WITH
2.1.4
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: bundle exec nexmo-developer --docs=`pwd`
web: lib/nexmo_developer/bin/initiate server --docs /app/__repo
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,25 @@ Station provides a documentation platform ready to use with your custom document
The [documentation for Station](https://nexmo.github.io/station) covers detailed installation, setup and configuration instructions. Please refer to the documentation as the primary resource for getting started with Station.

* [Documentation](https://nexmo.github.io/station)
* [Troubleshooting](#troubleshooting)
* [Contributing](#contributing)
* [License](#license)

## Troubleshooting

<details>
<summary>
How do I add a database to a review application?
</summary>

In the Heroku review app that you'd like a database for, visit `More -> Run Console` then run the following command:

```bash
cd lib/nexmo_developer/ && bin/rails db:migrate
```
</details>


## Contributing

We :heart: contributions from everyone! It is a good idea to [talk to us](https://nexmo-community-invite.herokuapp.com/) first if you plan to add any new functionality. Otherwise, [bug reports](https://github.com/Nexmo/nexmo-developer/issues/), [bug fixes](https://github.com/Nexmo/nexmo-developer/pulls) and feedback on the library is always appreciated. Look at the [Contributor Guidelines](CONTRIBUTING.md) for more information and please follow the [GitHub Flow](https://guides.github.com/introduction/flow/index.html).
Expand Down
23 changes: 10 additions & 13 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"addons": [

],
"buildpacks": [
{
"url": "heroku/ruby"
}
{ "url": "https://github.com/Nexmo/heroku-buildpack-clone-repo.git" },
{ "url": "heroku/nodejs" },
{ "url": "https://github.com/negativetwelve/heroku-buildpack-subdir" },
{ "url": "heroku/ruby" }
],
"env": {
"DOCS_BASE_PATH": "`pwd`",
"OAS_PATH": "`pwd`"
"GIT_REPO_URL": { "required": true }
},
"stack": "heroku-18",
"formation": {
"web": {
"quantity": 1,
"size": "free"
}
},
"name": "api-specification",
"scripts": {
},
"stack": "heroku-18"
}
"addons": [
"heroku-postgresql:hobby-dev"
]
}
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载