ghedsh 1.1.28 → 1.1.29
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/README.md +5 -5
- data/lib/actions/help.rb +12 -8
- data/lib/actions/orgs.rb +69 -31
- data/lib/actions/repo.rb +66 -44
- data/lib/actions/system.rb +1 -1
- data/lib/interface.rb +25 -9
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cab8913900ed4610a1f804f2c229020ac93e2fc
|
4
|
+
data.tar.gz: d1278ce2803f79eda19a96cbfa7641844838b2e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 120f161ceb9f25cf456afee6136f350a3c739c5a74c437ece463964b92488050cc401ba413e4a25412a61bb84fc5145b6a3252ce14fd938556ff704c4cfe233f
|
7
|
+
data.tar.gz: f10b759370d2d7ef93374438e2c6273578901ad32850e2155748d66c0165a151e876db8c896e3009c8b2ca9fe3550d1c0f22b58a1f4b0f1f1968710afad046db
|
data/README.md
CHANGED
@@ -168,15 +168,15 @@ add_people_info <file>
|
|
168
168
|
```
|
169
169
|
Añade informacion extendida de los miembros de una organizacion mediante un archivo .csv.
|
170
170
|
|
171
|
-
Formato y campos de la informacion añadida:
|
171
|
+
Formato y campos de la informacion añadida: La primera linea del archivo .csv debera indicar el nombre de los campos que seran recogidos por el sistema.
|
172
172
|
|
173
|
-
> github, id, nombre, apellido, emails, organizaciones, urls
|
173
|
+
> "github", "id", "nombre", "apellido", "emails", "organizaciones", "urls"
|
174
174
|
|
175
|
-
Ejemplo del contenido del archivo .csv.
|
175
|
+
Ejemplo del contenido del archivo .csv. A partir de la primera linea de campos, cada nueva linea representara los datos de un alumno. Poniendo dobles comillas se podra añadir varios valores en un mismo campo.
|
176
176
|
|
177
|
-
> studentbeta,alu1342,Pedro,Garcia Perez,"alu1342@ull.edu.es, pedrogarciaperez@gmail.com","classroom-testing, SYTW1617","http://campusvirtual.ull.es/aluXXX, http://pegarpe.github.io"
|
177
|
+
> "studentbeta","alu1342","Pedro,Garcia Perez,""alu1342@ull.edu.es, pedrogarciaperez@gmail.com"",""classroom-testing, SYTW1617"",""http://campusvirtual.ull.es/aluXXX, http://pegarpe.github.io""
|
178
178
|
|
179
|
-
> studentalpha1,alu321,Paco,Gutierrez,"alu321@ull.edu.es
|
179
|
+
> "studentalpha1","alu321","Paco","Gutierrez","alu321@ull.edu.es","classroom-testing",","http://st.github.com"
|
180
180
|
|
181
181
|
|
182
182
|
```sh
|
data/lib/actions/help.rb
CHANGED
@@ -25,6 +25,8 @@ class HelpM
|
|
25
25
|
print "\n\tCOMMAND\t\t\tDESCRIPTION\n\n"
|
26
26
|
print "\trepos\t\t\tList the repositories of your organization\n"
|
27
27
|
print "\topen\t\t\tOpen the organization's url of github in your web browser.\n"
|
28
|
+
print "\t\t\t\tIf you have added the aditional .csv information with, you can open an specific github profile.\n"
|
29
|
+
print "\t\t\t\t->\topen [user]\n\n"
|
28
30
|
print "\tclone\t\t\tClone a repository or a list of repositories using a regular expresion\n"
|
29
31
|
print "\tset\t\t\tMove you to a specific repository\n"
|
30
32
|
print "\tpeople\t\t\tShow the members of an organization\n"
|
@@ -34,11 +36,13 @@ class HelpM
|
|
34
36
|
print "\t\t\t\tTo find a specific member extended info, you can give the github id as parameter.\n"
|
35
37
|
print "\t\t\t\t->\tpeople info [github id]\n\n"
|
36
38
|
print "\tteams\t\t\tTeams of a organization\n"
|
37
|
-
print "\
|
38
|
-
print "\t\t\t\t->\
|
39
|
+
print "\tnew_people_info\t\tGet extended information from a .csv file founded in the excecute path\n"
|
40
|
+
print "\t\t\t\t->\tnew_people_info [name of the file]\n\n"
|
39
41
|
print "\tassignments\t\tShow the list of assignments created\n"
|
40
42
|
print "\tnew_assignment\t\tCreate an Assignment in your organization\n"
|
41
43
|
print "\tgroups\t\t\tShow the list of groups with each team and user that it has\n"
|
44
|
+
print "\tgroup\t\t\tShow the information of an specific group\n"
|
45
|
+
print "\t\t\t\t->\tgroup [name of the group]\n\n"
|
42
46
|
print "\tnew_group\t\tCreate a new group. Expected the name and teams given one by one\n"
|
43
47
|
print "\t\t\t\t->\tnew_group [name of the group] [team1] [team2] [team3] ... \n\n"
|
44
48
|
print "\trm_group\t\tDelete a created group\n"
|
@@ -61,8 +65,8 @@ class HelpM
|
|
61
65
|
print "\tissues\t\t\tShow the list of issues from the repository\n"
|
62
66
|
print "\tissue\t\t\tShow the issue and its comments\n"
|
63
67
|
print "\t\t\t\t->\tissue [Id of the issue]\n\n"
|
64
|
-
print "\
|
65
|
-
print "\t\t\t\t->\
|
68
|
+
print "\tnew_issue_comment\tAdd a comment in a specific issue\n"
|
69
|
+
print "\t\t\t\t->\tnew_issue_comment [Id of the issue]\n\n"
|
66
70
|
print "\topen_issue\t\tOpen a closed issue\n"
|
67
71
|
print "\t\t\t\t->\topen_issue [Id of the issue]\n\n"
|
68
72
|
print "\tclose_issue\t\tClose an opened issue\n"
|
@@ -97,8 +101,8 @@ class HelpM
|
|
97
101
|
print "\tissues\t\t\tShow the list of issues from the repository\n"
|
98
102
|
print "\tissue\t\t\tShow the issue and its comments\n"
|
99
103
|
print "\t\t\t\t->\tissue [Id of the issue]\n\n"
|
100
|
-
print "\
|
101
|
-
print "\t\t\t\->\
|
104
|
+
print "\tnew_issue_comment\tAdd a comment in a specific issue\n"
|
105
|
+
print "\t\t\t\->\tnew_issue_comment [Id of the issue]\n\n"
|
102
106
|
print "\topen_issue\t\tOpen a closed issue\n"
|
103
107
|
print "\t\t\t\t->\topen_issue [Id of the issue]\n\n"
|
104
108
|
print "\tclose_issue\t\tClose an opened issue\n"
|
@@ -121,8 +125,8 @@ class HelpM
|
|
121
125
|
print "\tnew_issue\t\tCreates a new issue\n"
|
122
126
|
print "\tissues\t\t\tShow the list of issues from the repository\n"
|
123
127
|
print "\tissue\t\t\tShow the issue and its comments\n"
|
124
|
-
print "\
|
125
|
-
print "\t\t\t\t->\
|
128
|
+
print "\tnew_issue_comment\tAdd a comment in a specific issue\n"
|
129
|
+
print "\t\t\t\t->\tnew_issue_comment [Id of the issue]\n\n"
|
126
130
|
print "\t\t\t\t->\tissue [Id of the issue]\n\n"
|
127
131
|
print "\topen_issue\t\tOpen a closed issue\n"
|
128
132
|
print "\t\t\t\t->\topen_issue [Id of the issue]\n\n"
|
data/lib/actions/orgs.rb
CHANGED
@@ -6,6 +6,8 @@ require 'require_all'
|
|
6
6
|
require_rel '.'
|
7
7
|
require 'readline'
|
8
8
|
|
9
|
+
GITHUB_LIST=['githubid','idgithub','github_id','id_github','githubuser','github_user']
|
10
|
+
|
9
11
|
class Organizations
|
10
12
|
|
11
13
|
attr_accessor :orgslist
|
@@ -286,6 +288,8 @@ class Organizations
|
|
286
288
|
#Takes people info froma a csv file and gets into ghedsh people information
|
287
289
|
def add_people_info(client,config,file)
|
288
290
|
list=self.load_people()
|
291
|
+
csvoptions={:quote_char => "|",:headers=>true}
|
292
|
+
|
289
293
|
inpeople=list["orgs"].detect{|aux| aux["name"]==config["Org"]}
|
290
294
|
if inpeople==nil
|
291
295
|
list["orgs"].push({"name"=>config["Org"],"users"=>[]})
|
@@ -297,21 +301,28 @@ class Organizations
|
|
297
301
|
end
|
298
302
|
if File.exist?(file)
|
299
303
|
begin
|
300
|
-
mem = CSV.read(file
|
304
|
+
mem = CSV.read(file,csvoptions)
|
301
305
|
rescue
|
302
306
|
print "Invalid csv format."
|
303
307
|
end
|
308
|
+
fields=mem.headers
|
304
309
|
users=Hash.new;
|
305
310
|
users=[]
|
311
|
+
puts "\nFields found: "
|
312
|
+
puts fields
|
306
313
|
mem.each do |i|
|
307
314
|
aux=Hash.new
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
+
fields.each do |j|
|
316
|
+
if i[j]!=nil
|
317
|
+
if GITHUB_LIST.include?(j.gsub("\"", "").downcase)
|
318
|
+
aux["github"]=i[j].gsub("\"", "").strip
|
319
|
+
else
|
320
|
+
aux[j.gsub("\"", "").downcase]=i[j].gsub("\"", "").strip
|
321
|
+
end
|
322
|
+
else
|
323
|
+
aux[j.gsub("\"", "").downcase]=i[j]
|
324
|
+
end
|
325
|
+
end
|
315
326
|
users<< aux
|
316
327
|
end
|
317
328
|
|
@@ -326,12 +337,11 @@ class Organizations
|
|
326
337
|
else
|
327
338
|
puts "The information is different thant the original. Do you want to change it?"
|
328
339
|
puts "\n Github:\t#{here["github"]} -> #{i["github"]}"
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
puts " Urls:\t\t#{here["urls"]} -> #{i["urls"]}"
|
340
|
+
|
341
|
+
fields.each do |j|
|
342
|
+
puts " #{j} :\t\t#{here[j.gsub("\"", "").downcase]} -> #{i[j.gsub("\"", "").downcase]}"
|
343
|
+
end
|
344
|
+
|
335
345
|
puts "\nPress any key and enter to proceed, or only enter to skip: "
|
336
346
|
op=gets.chomp
|
337
347
|
if op!=""
|
@@ -356,36 +366,33 @@ class Organizations
|
|
356
366
|
def show_people_info(client,config,user)
|
357
367
|
list=self.load_people()
|
358
368
|
inpeople=list["orgs"].detect{|aux| aux["name"]==config["Org"]}
|
369
|
+
peopleinfolist=[]
|
370
|
+
|
359
371
|
if inpeople==nil
|
360
372
|
list["orgs"].push({"name"=>config["Org"],"users"=>[]})
|
361
373
|
Sys.new.save_people("#{ENV['HOME']}/.ghedsh",list)
|
362
374
|
puts "Extended information has not been added yet"
|
363
375
|
else
|
364
376
|
if user==nil
|
377
|
+
fields=list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"][0].keys
|
365
378
|
list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"].each do |i|
|
366
|
-
puts "\n#{i["github"]}"
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
puts " Emails:\t #{i["emails"]}"
|
372
|
-
puts " Organizations:\t #{i["orgs"]}"
|
373
|
-
puts " Urls:\t\t #{i["urls"]}"
|
374
|
-
puts
|
379
|
+
puts "\n\e[31m#{i["github"]}\e[0m"
|
380
|
+
fields.each do |j|
|
381
|
+
puts "#{j.capitalize}:\t #{i[j]}"
|
382
|
+
end
|
383
|
+
peopleinfolist<<i["github"]
|
375
384
|
end
|
385
|
+
return peopleinfolist
|
376
386
|
else
|
377
387
|
inuser=list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"].detect{|aux2| aux2["github"]==user}
|
378
388
|
if inuser==nil
|
379
389
|
puts "Not extended information has been added of that user."
|
380
390
|
else
|
381
|
-
|
382
|
-
puts "\n
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
puts " Emails:\t #{inuser["emails"]}"
|
387
|
-
puts " Organizations:\t #{inuser["orgs"]}"
|
388
|
-
puts " Urls:\t\t #{inuser["urls"]}"
|
391
|
+
fields=inuser.keys
|
392
|
+
puts "\n\e[31m#{inuser["github"]}\e[0m"
|
393
|
+
fields.each do |j|
|
394
|
+
puts "#{j.capitalize}:\t #{inuser[j]}"
|
395
|
+
end
|
389
396
|
puts
|
390
397
|
end
|
391
398
|
end
|
@@ -449,4 +456,35 @@ class Organizations
|
|
449
456
|
end
|
450
457
|
end
|
451
458
|
|
459
|
+
def open_user_url(client,config,user)
|
460
|
+
list=self.load_people()
|
461
|
+
inpeople=list["orgs"].detect{|aux| aux["name"]==config["Org"]}
|
462
|
+
found=0
|
463
|
+
if inpeople==nil
|
464
|
+
list["orgs"].push({"name"=>config["Org"],"users"=>[]})
|
465
|
+
Sys.new.save_people("#{ENV['HOME']}/.ghedsh",list)
|
466
|
+
puts "Extended information has not been added yet"
|
467
|
+
else
|
468
|
+
inuser=list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"].detect{|aux2| aux2["github"]==user}
|
469
|
+
if inuser==nil
|
470
|
+
puts "Not extended information has been added of that user."
|
471
|
+
else
|
472
|
+
inuser.each_value do |j|
|
473
|
+
if j.include?("github.com")
|
474
|
+
case
|
475
|
+
when RUBY_PLATFORM.downcase.include?("darwin")
|
476
|
+
system("open #{j}")
|
477
|
+
when RUBY_PLATFORM.downcase.include?("linux")
|
478
|
+
system("xdg-open #{j}")
|
479
|
+
end
|
480
|
+
found=1
|
481
|
+
end
|
482
|
+
end
|
483
|
+
if found==0
|
484
|
+
puts "No github web profile in the aditional information"
|
485
|
+
end
|
486
|
+
end
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
452
490
|
end
|
data/lib/actions/repo.rb
CHANGED
@@ -92,10 +92,10 @@ class Repositories
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def create_issue(client,config,scope,path)
|
95
|
-
|
96
|
-
while
|
97
|
-
puts "\nInsert Issue
|
98
|
-
|
95
|
+
title=""
|
96
|
+
while title==""
|
97
|
+
puts "\nInsert Issue title: "
|
98
|
+
title=gets.chomp
|
99
99
|
end
|
100
100
|
puts "Write the description in you editor, press enter when you finish "
|
101
101
|
|
@@ -105,7 +105,7 @@ class Repositories
|
|
105
105
|
editor=ENV["EDITOR"]
|
106
106
|
end
|
107
107
|
|
108
|
-
system("#{editor} #{path}/temp.txt
|
108
|
+
system("#{editor} #{path}/temp.txt")
|
109
109
|
gets
|
110
110
|
begin
|
111
111
|
desc=File.read("#{path}/temp.txt")
|
@@ -113,7 +113,7 @@ class Repositories
|
|
113
113
|
puts "Empty description"
|
114
114
|
end
|
115
115
|
puts "This issue is gonna be created"
|
116
|
-
puts "\ntitle: #{
|
116
|
+
puts "\ntitle: #{title}"
|
117
117
|
puts "\n--------------------------------------"
|
118
118
|
puts desc
|
119
119
|
puts "--------------------------------------"
|
@@ -123,12 +123,12 @@ class Repositories
|
|
123
123
|
case
|
124
124
|
when scope==USER_REPO
|
125
125
|
if config["Repo"].split("/").size == 1
|
126
|
-
client.create_issue(config["User"]+"/"+config["Repo"],
|
126
|
+
client.create_issue(config["User"]+"/"+config["Repo"],title,desc)
|
127
127
|
else
|
128
|
-
client.create_issue(config["Repo"],
|
128
|
+
client.create_issue(config["Repo"],title,desc)
|
129
129
|
end
|
130
130
|
when scope==ORGS_REPO || scope==TEAM_REPO
|
131
|
-
client.create_issue(config["Org"]+"/"+config["Repo"],
|
131
|
+
client.create_issue(config["Org"]+"/"+config["Repo"],title,desc)
|
132
132
|
end
|
133
133
|
puts "Issue correctly created"
|
134
134
|
else
|
@@ -208,7 +208,7 @@ class Repositories
|
|
208
208
|
puts " --------------------------------------"
|
209
209
|
puts " Author: #{i[:user][:login]}"
|
210
210
|
puts " ##{i[:number]} state: #{i[:state]}"
|
211
|
-
puts "
|
211
|
+
puts " title: #{i[:title]}"
|
212
212
|
puts " --------------------------------------"
|
213
213
|
puts "\n#{i[:body]}"
|
214
214
|
issfound=1
|
@@ -257,48 +257,70 @@ class Repositories
|
|
257
257
|
|
258
258
|
#add issue comment
|
259
259
|
def add_issue_cm(client,config,scope,id,path)
|
260
|
-
|
260
|
+
if self.issue_exist?(client,config,scope,id)
|
261
|
+
puts "Write the description in you editor, press enter when you finish "
|
261
262
|
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
263
|
+
if ENV["EDITOR"]==nil
|
264
|
+
editor="vi"
|
265
|
+
else
|
266
|
+
editor=ENV["EDITOR"]
|
267
|
+
end
|
268
|
+
system("#{editor} #{path}/temp.txt")
|
269
|
+
gets
|
270
|
+
begin
|
271
|
+
desc=File.read("#{path}/temp.txt")
|
272
|
+
rescue
|
273
|
+
puts "Empty description"
|
274
|
+
end
|
274
275
|
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
276
|
+
puts "This comment is gonna be created"
|
277
|
+
puts "\n--------------------------------------"
|
278
|
+
puts desc
|
279
|
+
puts "--------------------------------------"
|
280
|
+
puts "\nTo proceed press enter, or to discard press any key and enter"
|
281
|
+
an=gets.chomp
|
281
282
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
283
|
+
if an==""
|
284
|
+
begin
|
285
|
+
case
|
286
|
+
when scope==USER_REPO
|
287
|
+
if config["Repo"].split("/").size == 1
|
288
|
+
client.add_comment(config["User"]+"/"+config["Repo"],id,desc)
|
289
|
+
else
|
290
|
+
client.add_comment(config["Repo"],id,desc)
|
291
|
+
end
|
292
|
+
when scope==ORGS_REPO || scope==TEAM_REPO
|
293
|
+
client.add_comment(config["Org"]+"/"+config["Repo"],id,desc)
|
290
294
|
end
|
291
|
-
|
292
|
-
|
295
|
+
puts "Comment created"
|
296
|
+
rescue
|
297
|
+
puts "Issue not found"
|
293
298
|
end
|
294
|
-
|
295
|
-
|
296
|
-
puts "Issue not found"
|
299
|
+
else
|
300
|
+
puts "comment not created"
|
297
301
|
end
|
302
|
+
Sys.new().remove_temp("#{path}/temp.txt")
|
298
303
|
else
|
299
|
-
puts "
|
304
|
+
puts "Issue not found"
|
300
305
|
end
|
301
|
-
|
306
|
+
end
|
307
|
+
|
308
|
+
def issue_exist?(client,config,scope,id)
|
309
|
+
begin
|
310
|
+
case
|
311
|
+
when scope==USER_REPO
|
312
|
+
if config["Repo"].split("/").size == 1
|
313
|
+
client.issue(config["User"]+"/"+config["Repo"],id)
|
314
|
+
else
|
315
|
+
client.issue(config["Repo"],id)
|
316
|
+
end
|
317
|
+
when scope==ORGS_REPO || scope==TEAM_REPO
|
318
|
+
client.issue(config["Org"]+"/"+config["Repo"],id)
|
319
|
+
end
|
320
|
+
rescue
|
321
|
+
return false
|
322
|
+
end
|
323
|
+
return true
|
302
324
|
end
|
303
325
|
|
304
326
|
#Show repositories and return a list of them
|
data/lib/actions/system.rb
CHANGED
@@ -11,7 +11,7 @@ class Sys
|
|
11
11
|
attr_reader :memory
|
12
12
|
LIST = ['repos', 'exit', 'orgs','help', 'people','teams', 'cd ', 'cd repo ','commits','forks', 'add_team_member ','new_team ','rm_team ','new_repository ','new_assignment ','clone ', 'issues',
|
13
13
|
'version', 'cat ', 'groups', 'files', 'assignments','new_issue ', 'open_issue', 'new_','open_', 'close_issue', 'new_group ', 'rm_group', 'rm_', 'do ', 'info','make','add_repo',
|
14
|
-
'add_group','rm_repository ', '
|
14
|
+
'add_group','rm_repository ', 'new_people_info ', 'private ', 'people info ', 'new_issue_comment '].sort
|
15
15
|
|
16
16
|
def initialize()
|
17
17
|
@memory=[]
|
data/lib/interface.rb
CHANGED
@@ -35,7 +35,7 @@ class Interface
|
|
35
35
|
|
36
36
|
options=@sysbh.parse
|
37
37
|
|
38
|
-
trap("SIGINT") { throw :ctrl_c
|
38
|
+
trap("SIGINT") { throw :ctrl_c}
|
39
39
|
catch :ctrl_c do
|
40
40
|
begin
|
41
41
|
if options[:user]==nil && options[:token]==nil && options[:path]!=nil
|
@@ -466,8 +466,12 @@ class Interface
|
|
466
466
|
while ex != 0
|
467
467
|
|
468
468
|
if opscript.empty?
|
469
|
-
|
470
|
-
|
469
|
+
begin
|
470
|
+
op=Readline.readline(self.prompt,true).strip
|
471
|
+
opcd=op.split
|
472
|
+
rescue
|
473
|
+
op="exit";opcd="exit"
|
474
|
+
end
|
471
475
|
else
|
472
476
|
op=opscript[0]
|
473
477
|
opcd=op.split
|
@@ -496,6 +500,12 @@ class Interface
|
|
496
500
|
when op == "groups"
|
497
501
|
if @deep==ORGS
|
498
502
|
t.list_groups(@client,@config)
|
503
|
+
@sysbh.add_history_str(2,t.get_groupslist(@config))
|
504
|
+
end
|
505
|
+
when op.include?("group") && opcd[0]=="group"
|
506
|
+
if opcd.size==2
|
507
|
+
puts "Teams in group #{opcd[1]} :"
|
508
|
+
puts t.get_single_group(@config,opcd[1])
|
499
509
|
end
|
500
510
|
when op == "info"
|
501
511
|
if @deep==ASSIG then o.show_assig_info(@config,@assig_path) end
|
@@ -514,10 +524,16 @@ class Interface
|
|
514
524
|
if @deep==ASSIG
|
515
525
|
o.make_assig(@client,@config,@assig_path)
|
516
526
|
end
|
517
|
-
when op =="open"
|
527
|
+
when op.include?("open") && opcd[0]=="open"
|
518
528
|
if @deep==USER_REPO || @deep==TEAM_REPO || @deep==ORGS_REPO then r.open_repository(@client,@config,@deep) end
|
519
529
|
if @deep==USER then u.open_user(@client) end
|
520
|
-
if @deep==ORGS
|
530
|
+
if @deep==ORGS
|
531
|
+
if opcd.size==1
|
532
|
+
o.open_org(@client,@config)
|
533
|
+
else
|
534
|
+
o.open_user_url(@client,@config,opcd[1])
|
535
|
+
end
|
536
|
+
end
|
521
537
|
if @deep==TEAM then t.open_team_repos(@config) end
|
522
538
|
end
|
523
539
|
|
@@ -589,7 +605,7 @@ class Interface
|
|
589
605
|
r.create_issue(@client,@config,@deep,config_path)
|
590
606
|
end
|
591
607
|
end
|
592
|
-
if opcd[0]=="
|
608
|
+
if opcd[0]=="new_issue_comment" and opcd.size==2
|
593
609
|
if @deep==ORGS_REPO || @deep==USER_REPO || @deep==TEAM_REPO
|
594
610
|
r.add_issue_cm(@client,@config,@deep,opcd[1],config_path)
|
595
611
|
end
|
@@ -649,12 +665,12 @@ class Interface
|
|
649
665
|
t.new_group(@client,@config,opcd[1],opcd[2..opcd.size-1])
|
650
666
|
end
|
651
667
|
end
|
652
|
-
if opcd[0]=="
|
668
|
+
if opcd[0]=="new_people_info" and opcd.size==2 and @deep==ORGS then o.add_people_info(@client,@config,opcd[1]) end
|
653
669
|
if opcd[0]=="people" and opcd[1]=="info"
|
654
670
|
if opcd.size==2
|
655
|
-
|
671
|
+
@sysbh.add_history_str(2,o.show_people_info(@client,@config,nil))
|
656
672
|
else
|
657
|
-
|
673
|
+
o.show_people_info(@client,@config,opcd[2])
|
658
674
|
end
|
659
675
|
end
|
660
676
|
if opcd[0]=="clone"
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghedsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Clemente
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|