github_repo_statistics 2.2.6 → 2.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59634e40931b882f4ee361ce7169a527319207e692e4107557456789b7059c7d
|
|
4
|
+
data.tar.gz: 5e70e25d137e0eb869c83750f946231d3d6222e5f8bf3aac1e22898035935e1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15904f86e2c96e74e1396c5470ad3ef1698800b110840cc3b8b2d0000914a09984225c92eb3297878b8e4a4ab608d4efa5e134b2f6357ae048606573131f5c17
|
|
7
|
+
data.tar.gz: e1cb2e8c6e491e0cc30b55abc67fb39a2ae0be11907b05efe7b92299699317c00db25116a56a2386cb7ab227e8cade36ac71f2e74c52d4b77d66ba597ea864d2
|
data/Gemfile.lock
CHANGED
|
@@ -20,7 +20,7 @@ class ForceMergeReport
|
|
|
20
20
|
pull_requests = client.list_issues(@repo, state: 'closed', since: DateTime.now - @duration_in_days)
|
|
21
21
|
|
|
22
22
|
# Sort PRs into monthly chunks
|
|
23
|
-
weekly_pull_requests = pull_requests.group_by { |pr| pr.closed_at.strftime('%Y-%
|
|
23
|
+
weekly_pull_requests = pull_requests.group_by { |pr| pr.closed_at.strftime('%Y-%W') }
|
|
24
24
|
|
|
25
25
|
# Initialize a hash to store monthly summaries
|
|
26
26
|
weekly_summaries = Hash.new { |hash, key| hash[key] = { total: 0, failed: 0, workflows: Hash.new(0) } }
|
|
@@ -49,6 +49,10 @@ class ForceMergeReport
|
|
|
49
49
|
# Filter checks without meeting the required status checks
|
|
50
50
|
failed_checks = all_checks.reject { |check| check.conclusion == 'success' || check.state == 'success' }
|
|
51
51
|
|
|
52
|
+
failed_checks.select! do |check|
|
|
53
|
+
['Mergeable: Size check', 'SonarQube Code Analysis', 'UI Tests'].include?(check.name)
|
|
54
|
+
end
|
|
55
|
+
|
|
52
56
|
# Update monthly summary
|
|
53
57
|
weekly_summaries[month][:total] += 1
|
|
54
58
|
weekly_summaries[month][:failed] += 1 unless failed_checks.empty?
|
|
@@ -28,7 +28,7 @@ class ReviewReport
|
|
|
28
28
|
pull_requests = client.list_issues(@repo, state: 'closed', since: DateTime.now - @duration_in_days)
|
|
29
29
|
|
|
30
30
|
# Group pull requests by week
|
|
31
|
-
pull_requests_by_week = pull_requests.group_by { |pr| pr[:closed_at].strftime('%Y-%
|
|
31
|
+
pull_requests_by_week = pull_requests.group_by { |pr| pr[:closed_at].strftime('%Y-%W') }
|
|
32
32
|
|
|
33
33
|
weeks = @duration_in_days / 7
|
|
34
34
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github_repo_statistics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Serghei Moret
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: date
|