Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aapis/deploy_log
Get all Github pull requests for a specific timeframe, or search by title/branch name or week.
https://github.com/aapis/deploy_log
Last synced: 23 days ago
JSON representation
Get all Github pull requests for a specific timeframe, or search by title/branch name or week.
- Host: GitHub
- URL: https://github.com/aapis/deploy_log
- Owner: aapis
- License: mit
- Created: 2019-06-12T17:43:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T21:13:19.000Z (over 5 years ago)
- Last Synced: 2024-11-18T00:42:58.096Z (about 1 month ago)
- Language: Ruby
- Homepage: https://aapis.github.io/deploy_log/
- Size: 368 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# DeployLog
Get all Github pull requests for a specific timeframe, or search by title/branch name.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'deploy_log'
```And then execute:
> $ bundle
Or install it yourself as:
> $ gem install deploy_log## Usage
First, make sure your Github username and a [personal access token](https://github.com/settings/tokens) are setup as follows:
```bash
export GITHUB_USER="octocat"
export GITHUB_TOKEN="someRandomStringHere"
```Search in any valid date range.
```bash
$ deploy_log my/repo --start=2019-06-11 --end=2019-06-12
$ deploy_log my/repo -s 2019-06-11 -e 2019-06-12# My PR title (https://github.com/my/repo/pull/1)
# - Created by octocat
# - Branch: my_branch
# - Merged by octocat on 11/6/2019 @ 04:13:35pm
# - Changes: https://github.com/my/repo/pull/1.diff
#
# ============================================================
# 1 PR(s) merged from 2019-06-11 00:00:00 -0600 to 2019-06-12 00:00:00 -0600
# ============================================================
```Search by PR name.
```bash
$ deploy_log my/repo --title="My PR title"
$ deploy_log my/repo -t "My PR title"# My PR title (https://github.com/my/repo/pull/1)
# - Created by octocat
# - Branch: my_branch
# - Merged by octocat on 11/6/2019 @ 04:13:35pm
# - Changes: https://github.com/my/repo/pull/1.diff
#
# ============================================================
# 1 PR(s) matched
# ============================================================
```Find a PR by branch name.
```bash
$ deploy_log my/repo --branch="my_branch"
$ deploy_log my/repo -b "my_branch"# My PR title (https://github.com/my/repo/pull/1)
# - Created by octocat
# - Branch: my_branch
# - Merged by octocat on 11/6/2019 @ 04:13:35pm
# - Changes: https://github.com/my/repo/pull/1.diff
#
# ============================================================
# 1 PR(s) matched
# ============================================================
```Get all PRs merged during a specific week.
```bash
$ deploy_log my/repo --week="12"
$ deploy_log my/repo -w 12# Better Tests (https://github.com/aapis/deploy_log/pull/1)
# - Created by aapis
# - Branch: my_branch
# - Merged by aapis on 12/6/2019 @ 01:45:38pm
# - Changes: https://github.com/aapis/deploy_log/pull/1.diff
# -- aapis committed 'change file structure to support other providers in the future' at 12/6/2019 @ 01:32:25pm
# -- aapis committed 'improve tests' at 12/6/2019 @ 01:45:14pm
#
# ============================================================
# 1 PR(s) merged from 2019-06-09 00:00:00 -0600 to 2019-06-16 23:59:59 -0600
# ============================================================
```## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/deploy_log. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the DeployLog project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/deploy_log/blob/master/CODE_OF_CONDUCT.md).