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 +4 -4
- data/lib/flo/provider/github_flo.rb +20 -0
- data/lib/github_flo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e1ef0950428f9568a9af1d4731b41a95596c27d
|
4
|
+
data.tar.gz: 14a8bd211de1a649d2e6453b99cc73aa10f6f65e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/github_flo/version.rb
CHANGED