Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/packsaddle/ruby-cron_for_github
https://github.com/packsaddle/ruby-cron_for_github
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/packsaddle/ruby-cron_for_github
- Owner: packsaddle
- License: mit
- Created: 2015-03-01T14:02:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-01T15:44:39.000Z (almost 8 years ago)
- Last Synced: 2024-08-10T23:43:31.283Z (5 months ago)
- Language: Ruby
- Homepage: http://packsaddle.org
- Size: 41 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CronForGithub
[![Gem Version](http://img.shields.io/gem/v/cron_for_github.svg?style=flat)](http://badge.fury.io/rb/cron_for_github)
[![Build Status](http://img.shields.io/travis/packsaddle/ruby-cron_for_github/master.svg?style=flat)](https://travis-ci.org/packsaddle/ruby-cron_for_github)## Usage
**Cron for GitHub**, Kick GitHub by creating branch. This also wakes *web-hooks* up!
```
$ cron-for-github ping --slug=YOU/YOUR_REPO
```After few seconds, your repo has a new branch `cron_for_github/da0535a2-9523-42e3-bae2-a2e682b2f437`.
`da0535a2-9523-42e3-bae2-a2e682b2f437` is uuid.## Easy to use
[Cron for GitHub on Heroku](https://github.com/packsaddle/ruby-cron_for_github-app)
## Command
```
Commands:
cron-for-github clear --slug=SLUG # Delete cron branches
cron-for-github help [COMMAND] # Describe available commands or one specific command
cron-for-github ping --slug=SLUG # Kick cron
cron-for-github version # Show the CronForGithub versionUsage:
cron-for-github ping --slug=SLUGOptions:
[--debug], [--no-debug]
[--verbose], [--no-verbose]
--slug=SLUG
[--namespace=NAMESPACE]
# Default: cron_for_github
[--base=BASE]
# Default: masterKick cron
Usage:
cron-for-github clear --slug=SLUGOptions:
[--debug], [--no-debug]
[--verbose], [--no-verbose]
--slug=SLUG
[--namespace=NAMESPACE]
# Default: cron_for_githubDelete cron branches
```## Motivation
We solve this! :)
[Build periodically travis-ci/travis-ci](https://github.com/travis-ci/travis-ci/issues/582)## VS.
### [The Travis CI cron trigger](http://traviscron.pythonanywhere.com/)
Good service for Travis-CI.
The Travis CI cron trigger requires form submitting, and only for Travis-CI.### [Tachikoma.io](http://tachikoma.io)
Dependency Update as a Service.
Tachikoma.io is only dependency update, so problem specific SaaS.
If you NEVER want to maintenance your server (include Heroku), Tachikoma.io suits you.### [zapier](https://zapier.com/)/[ifttt](https://ifttt.com/)
We don't know how to achieve yet.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'cron_for_github'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install cron_for_github
## Requirement
Set `GITHUB_ACCESS_TOKEN=__your_access_token__` to your environment variable.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec cron_for_github` to use the code located in this directory, ignoring other installed copies of this gem.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
1. Fork it ( https://github.com/ruby-cron_for_github/cron_for_github/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request