github_flo 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6251efe01ffda78a085cd30b4fefa3ed5e283660
4
- data.tar.gz: 0560c787aaecff6a40152ba59f359faa7c8299e8
3
+ metadata.gz: 7e1ef0950428f9568a9af1d4731b41a95596c27d
4
+ data.tar.gz: 14a8bd211de1a649d2e6453b99cc73aa10f6f65e
5
5
  SHA512:
6
- metadata.gz: 102c0680a10a2c9d144bfad1ea379f5f6d4047e2d5b2f34e80d5f21e71856f552b51c369317801033c077af3aa00aad8216013c3b29dfd3bcb9d4556203f56f0
7
- data.tar.gz: 7433b2813b10bb63a02707dfac048a765fa9eec01591e1290ad24a435cc22898f4676c9899231aec93ab503ff92dd52a3d6f2d25d122e43cd59e6619d4bdc7a8
6
+ metadata.gz: 6263f07dc6fad01a1d9bd4d4283503f5e423fbd293e89d2897c8bda304527462989fb6eb4cc8b30019a71720ce27b020681b83409c8a1e81b5a126d525802fec
7
+ data.tar.gz: 16a2837208e9a4240eddd16115309f839e9efc9aa012d7bcfd285eff475635cc2c614acef4390ddda2af46be6953a0ed30972a773b75dc2e6ef7301f2a871de7
@@ -65,6 +65,26 @@ module Flo
65
65
  @client.issue(options[:repo], options[:number])
66
66
  end
67
67
 
68
+ # Creates a Github pull request
69
+ #
70
+ # @option opts [String] base ('master') The base branch for the pull request
71
+ # @option opts [String] head The head containing the new changes
72
+ # @option opts [String] Title The title for the pull request
73
+ # @option opts [String] Body The body of the pull request
74
+ #
75
+ # Remaining options will be passed to octokit. See octokit's documentation for updating issues
76
+ #
77
+ def create_pull_request(opts={})
78
+ repo = opts[:repo] || @repo
79
+ @client.create_pull_request(
80
+ repo,
81
+ opts.delete(:base),
82
+ opts.delete(:head),
83
+ opts.delete(:title),
84
+ opts.delete(:body)
85
+ )
86
+ OpenStruct.new(success?: true)
87
+ end
68
88
  end
69
89
  end
70
90
  end
@@ -4,5 +4,5 @@
4
4
  # For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
5
5
 
6
6
  module GithubFlo
7
- VERSION = "0.0.2"
7
+ VERSION = "0.0.3"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_flo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Powers