| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Pully is a ruby library for managing GitHub pull requests; purpose built for our continuous integration & deployment infrastructure at Fittr®.
require 'pully'
#Create a new pully object, each pully object targets (1) repository.
pully = Pully.new(user:"github_username", pass:"github_password", repo:"my_repository")
#Get a list of all open pull requests (An array of pull numbers)
open = pully.pull_requests
#Get a list of all open pull requests marked as pending or success
open_and_pending_or_success = pully.open_or_pending_pull_requests
#Create a new pull request to merge 'my_branch' into 'master' with the title 'My pull request' and the message 'Hey XXX...'
pull_number = pully.create_pull_request(from:"my_branch", to:"master", subject:"My pull request", message:"Hey XXXX, can you merge this for me?")
#Comment on that pull request
pully.write_comment_to_pull_request(pull_number, "Test Comment")
#Get all comments
comments = pully.comments_for_pull_request(pull_number)
#Get the SHA of the 'from' branch of a certain pull request
pully.sha_for_pull_request(pull_number)
#Set the status of a pull request to pending (Other options include 'error', 'failed', and 'success')
pully.set_pull_request_status(pull_number, "pending")
#Set the status of a pull request to ready
pully.set_pull_request_status(pull_number, "success")
#Merge the request (Will NOT use GitHub's pull request merge, will merge commits into history as-is)
pully.merge_pull_request(pull_number)If your repositories are not owner by you, i.e. they are owned by an organization or another user who has granted you permissions, you will need to pass the owner field for the other individual or organization.
#Create a new pully object, each pully object targets (1) repository in an organization.
pully = Pully.new(user:"github_username", pass:"github_password", repo:"my_repository", owner:"my_organization")Run sudo gem install pully
When you want to automate GitHub pull requests. Pully provides the necessary facilities for you to authenticate and control GitHub pull requests in any way you wish. Duplicate the functionality of many popular CI solutions.
Fittr is a SaaS company that focuses on providing personalized workouts and health information to individuals and corporations through phenomenal interfaces and algorithmic data-collection and processing.
pully is released under the MIT license. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |