gitall 1.1.6 → 1.1.7
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/gitall/parsers/gitlab.rb +6 -6
- data/lib/gitall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9061a6a0094724956637663706fe3bd5059e539b5d3982e1f5627db49535d7b
|
|
4
|
+
data.tar.gz: 8af6959cdff60eb8683f80f1c2717c772df58f04963b9d4aea6cc44cb0ef1004
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8c1b42df42fcadd9ffa3cd2ae6b483e3879f92a7defa95c083f3751a2d1d59756e327653ac636057b5c66d4f650004e9314a0f92bfb2afce9f22f755a477142
|
|
7
|
+
data.tar.gz: 8558aaa6f7c739199cc9544c70c6c4264a1a86abd19aa5bb03aff8dff4d09ec7371898113134c55070ba644c11ef360ff499748075929ebb92918873f5bbc153
|
|
@@ -17,7 +17,7 @@ class GitLabParser
|
|
|
17
17
|
case ntype
|
|
18
18
|
when 'MergeRequest'
|
|
19
19
|
mr_note = j.object_attributes.note
|
|
20
|
-
mr_url =
|
|
20
|
+
mr_url = j.object_attributes.url
|
|
21
21
|
mr_title = j.merge_request.title
|
|
22
22
|
mr_id = j.merge_request.iid
|
|
23
23
|
mr_user = j.user.name
|
|
@@ -26,12 +26,12 @@ class GitLabParser
|
|
|
26
26
|
when 'Commit'
|
|
27
27
|
c_note = j.object_attributes.note
|
|
28
28
|
c_sha = j.commit.id[0...7]
|
|
29
|
-
c_url =
|
|
29
|
+
c_url = j.object_attributes.url
|
|
30
30
|
c_user = j.user.name
|
|
31
31
|
response << "[#{repo}] #{c_user} commented on commit (#{c_sha}) \u2014 #{c_note} <#{c_url}>"
|
|
32
32
|
when 'Issue'
|
|
33
33
|
i_id = j.issue.iid
|
|
34
|
-
i_url =
|
|
34
|
+
i_url = j.object_attributes.url
|
|
35
35
|
i_msg = j.object_attributes.note
|
|
36
36
|
i_title = j.issue.title
|
|
37
37
|
i_user = j.user.name
|
|
@@ -46,12 +46,12 @@ class GitLabParser
|
|
|
46
46
|
i_id = j.object_attributes.iid
|
|
47
47
|
i_title = j.object_attributes.title
|
|
48
48
|
i_action = j.object_attributes.action
|
|
49
|
-
i_url =
|
|
49
|
+
i_url = j.object_attributes.url
|
|
50
50
|
response << "[#{i_repo}] #{i_user}(#{i_un}) #{i_action} issue ##{i_id} - #{i_title} <#{i_url}>"
|
|
51
51
|
when 'merge_request'
|
|
52
52
|
mr_name = j.user.name
|
|
53
53
|
mr_user = j.user.username
|
|
54
|
-
mr_url =
|
|
54
|
+
mr_url = j.url
|
|
55
55
|
mr_spath = j.object_attributes.source.path_with_namespace
|
|
56
56
|
mr_sbranch = j.object_attributes.source_branch
|
|
57
57
|
mr_tpath = j.object_attributes.target.path_with_namespace
|
|
@@ -76,7 +76,7 @@ class GitLabParser
|
|
|
76
76
|
project = j.project.name
|
|
77
77
|
pusher = j.user_name
|
|
78
78
|
commit_count = j.total_commits_count
|
|
79
|
-
repo_url =
|
|
79
|
+
repo_url = j.project.web_url
|
|
80
80
|
response << "[#{owner}/#{project}] #{pusher} pushed #{commit_count} commit(s) [+#{added}/-#{removed}/±#{modified}] to [#{branch}] at <#{repo_url}>"
|
|
81
81
|
if commits.length > 3
|
|
82
82
|
coms = commits[0..2]
|
data/lib/gitall/version.rb
CHANGED