lita-github 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita-github/version.rb +1 -1
- data/lib/lita/handlers/github_org.rb +3 -9
- 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: 79341fcbd4811440622b59fc41dfdbdae83fef9e
|
4
|
+
data.tar.gz: fa8c96cd9beae1e9d7eb1abd185e62326842308b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7323e5f79d9a6bf40e98798f8320842a49a0ed0bd8f5eba9451931b2e523e8d0acc75ea9e589f52a91e9dff9ef40055816a7b06a3eb3a64713fce278d880019
|
7
|
+
data.tar.gz: 50127e2b5c22d23163e0d68afad2df49c49fbab2144e0f8d10153bfbf22cbcda5bf6c20f2118c23ca9ad88c17b81e936cbc82d021d65d10f07e4c8339d463cc8
|
data/lib/lita-github/version.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# @author Tim Heckman <tim@pagerduty.com>
|
22
22
|
module LitaGithub
|
23
23
|
# lita-github version
|
24
|
-
VERSION = '0.0.
|
24
|
+
VERSION = '0.0.16'
|
25
25
|
|
26
26
|
# lita-github version split amongst different revisions
|
27
27
|
MAJOR_VERSION, MINOR_VERSION, REVISION = VERSION.split('.').map(&:to_i)
|
@@ -71,9 +71,7 @@ module Lita
|
|
71
71
|
# rubocop:disable Metrics/LineLength
|
72
72
|
route(
|
73
73
|
/#{LitaGithub::R::A_REG}org\s+?user\s+?add(?<org>\s+?[a-zA-Z0-9_\-]+)?(?<team>\s?[a-zA-Z0-9_\-]+)\s+?(?<username>[a-zA-Z0-9_\-]+)/,
|
74
|
-
:org_user_add,
|
75
|
-
command: true,
|
76
|
-
# confirmation: { allow_self: false },
|
74
|
+
:org_user_add, command: true, confirmation: { allow_self: false },
|
77
75
|
help: {
|
78
76
|
'gh org user add PagerDuty everyone theckman' => 'add the user theckman to the PagerDuty/everyone team -- this requires confirmation from another user. NOTE: This will add the member to the organization if they are not already!!',
|
79
77
|
'gh org user add PagerDuty 42 theckman' => "same as above, except with the team's ID instead of the slug"
|
@@ -82,9 +80,7 @@ module Lita
|
|
82
80
|
|
83
81
|
route(
|
84
82
|
/#{LitaGithub::R::A_REG}org\s+?user\s+?rm(?<org>\s+?[a-zA-Z0-9_\-]+)?(?<team>\s?[a-zA-Z0-9_\-]+)\s+?(?<username>[a-zA-Z0-9_\-]+)/,
|
85
|
-
:org_user_rm,
|
86
|
-
comamnd: true,
|
87
|
-
# confirmation: { allow_self: false },
|
83
|
+
:org_user_rm, comamnd: true, confirmation: { allow_self: false },
|
88
84
|
help: {
|
89
85
|
'gh org team rm PagerDuty everyone theckman' => 'remove the user theckman from the PagerDuty/everyone team, if this is their last team will remove them from the org. Requires confirmation from another user.',
|
90
86
|
'gh org team rm PagerDuty 42 theckman' => "same as above, except with the team's ID instead of the slug"
|
@@ -94,9 +90,7 @@ module Lita
|
|
94
90
|
|
95
91
|
route(
|
96
92
|
/#{LitaGithub::R::A_REG}org\s+?eject(?<org>\s+?[a-zA-Z0-9_\-]+)?(?<username>\s+?[a-zA-Z0-9_\-]+)/,
|
97
|
-
:org_eject_user,
|
98
|
-
command: true,
|
99
|
-
# confirmation: { allow_self: false },
|
93
|
+
:org_eject_user, command: true, confirmation: { allow_self: false },
|
100
94
|
help: {
|
101
95
|
'gh org eject PagerDuty theckman' => 'forcibly removes the user from all groups in the organization -- ' \
|
102
96
|
'this is meant for someone leaving the organization. Requires ' \
|