capistrano-github-releases 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d7e653a473719e71f4373942f5b463da21eb321
4
- data.tar.gz: af378eb08781856c4181ed348b0f33985dce46fa
3
+ metadata.gz: 8e356ec88bb0975b9c916b1465215dfa1859902e
4
+ data.tar.gz: e059ed7cf99b252a6394662d044529f671ffeaa4
5
5
  SHA512:
6
- metadata.gz: dcaae591d25bd20a9304fbec86d30a824aff9c4522568d1e64f3a4fd477fbc40829f79401e6289703d7d32b10b8ad18d916b5c2879c6c888e0368ebe16392d1c
7
- data.tar.gz: ae15913ac53dd74575ed2c28db21e03fa5ba257661b593616acd170ed9284051edc56144496485f943644884067d4b1759cb50b03264050df2b2245a3c5c58f1
6
+ metadata.gz: ac473d8e89a47aede389e2b433c844402c0b7685aa7fae85b369f463e727a8ea9c120be99f07c0c2316d8111b26d575822673af7e61d8febb6d92fcec38c08ac
7
+ data.tar.gz: 79b7fe600ac15cbcf418363bd8e4dba8cbf84d64c681d2910a26558e5d7b8e2a783503f176e374875d3a40e792b3bfb3faf0bee183ad34bd2e316b79bbf2afd0
data/README.md CHANGED
@@ -8,7 +8,7 @@ $ bundle exec cap production github:releases:create # Auto creation by last pull
8
8
  $ bundle exec cap production github:releases:add_comment # Auto comment to last pull-request
9
9
  ```
10
10
 
11
- [![Gem Version](https://badge.fury.io/rb/capistrano-github-releases.png)][gem]
11
+ [![Gem version](https://img.shields.io/gem/v/capistrano-github-releases.svg?style=flat-square)][gem]
12
12
  [gem]: https://rubygems.org/gems/capistrano-github-releases
13
13
 
14
14
  Installation
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Github
3
3
  module Releases
4
- VERSION = '0.4.2'
4
+ VERSION = '0.5.0'
5
5
  end
6
6
  end
7
7
  end
@@ -155,6 +155,21 @@ namespace :github do
155
155
  end
156
156
  end
157
157
  end
158
+
159
+ desc 'Remove all labels of the pull request'
160
+ task remove_labels: :authentication do
161
+ run_locally do
162
+ begin
163
+ Octokit.remove_all_labels(
164
+ fetch(:github_repo),
165
+ fetch(:pull_request_id)
166
+ )
167
+ info "Labels of #{fetch(:github_repo)}/pull##{fetch(:pull_request_id)} was removed"
168
+ rescue => e
169
+ error e.message
170
+ end
171
+ end
172
+ end
158
173
  end
159
174
 
160
175
  namespace :git do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-github-releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2016-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.2.2
134
+ rubygems_version: 2.5.1
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: GitHub Releases tasks for Capistrano v3