Skip to content
Draft
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ It has two main functions:

The system was originally implemented for the collaborative manifesto project at https://openpolitics.org.uk/manifesto. The canonical instance of this app for that project is https://votebot.openpolitics.org.uk

## Development

### Dependencies

- [Ruby](https://www.ruby-lang.org/en/documentation/installation/) - check the required version in [Gemfile](./Gemfile)
- Others tbc

### Create and setup the database

Run the following commands to create and setup the database.

```
bundle exec rake db:create
bundle exec rake db:setup
```

## Usage

... to be written ...
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/octokit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def create_label_if_missing(label:, colour:, description:)
Octokit.add_label(ENV.fetch("GITHUB_REPO"), label, colour, description: description)
end

unless Rails.env.test?
unless Rails.env.test? || Rails.env.development?
# Configure GitHub webhook automatically
begin
webhook_url = "#{ENV.fetch("SITE_URL")}/webhook"
Expand Down