gotsha 0.2.7 → 0.2.9
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/.gotsha/hooks/pre-push +1 -3
- data/CHANGELOG.md +9 -0
- data/README.md +2 -2
- data/lib/gotsha/templates/git_hooks/pre-push +1 -3
- data/lib/gotsha/templates/github_action_example.yml +3 -1
- data/lib/gotsha/version.rb +1 -1
- data/web/index.html +14 -8
- 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: 75f5972d5843df96d271b5991679b69fbe8684d35433e7134d247cbdb6b5dcef
|
4
|
+
data.tar.gz: c1af3ac09dc8cf1498da4662d59489e54c703aa6b87a77bf2be45a2a87f57fa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2acc7f6017de1a52b97d641f21f59777564e2c9e69ceb8a8734f64203b1b0adb403231501e27c5d9a2a8f4e6e6cd71168af260aca9ce153bf2254e88016b986
|
7
|
+
data.tar.gz: eca5075f3bc54971bf47ce44322938f5acc719818f93d50ccb4c87f644823f388bb66fecc40077fed77b1e73bdacaa37123657d2129275c750b48b5dc94914c4
|
data/.gotsha/hooks/pre-push
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
set -euo pipefail
|
3
3
|
|
4
|
-
grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml ||
|
5
|
-
|
6
|
-
exe/gotsha status || exe/gotsha test
|
4
|
+
grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml && (exe/gotsha status || exe/gotsha test)
|
7
5
|
exe/gotsha push
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [0.2.9] - 2025-10-15
|
2
|
+
|
3
|
+
- Add some commented out GT Action code to quickly show how to disable for PR drafts
|
4
|
+
|
5
|
+
## [0.2.8] - 2025-10-15
|
6
|
+
|
7
|
+
- Fix pre-push hook (push every time, even when disabled)
|
8
|
+
- Use `gotsha fetch` in GH Action
|
9
|
+
|
1
10
|
## [0.2.7] - 2025-10-14
|
2
11
|
|
3
12
|
- Ensure notes fetching always works by using `--force`
|
data/README.md
CHANGED
@@ -5,9 +5,9 @@ Pushing untested commits? Gotsha!
|
|
5
5
|
```bash
|
6
6
|
gem install gotsha # or add `gem "gotsha"` to you Gemfile
|
7
7
|
|
8
|
-
gotsha
|
8
|
+
gotsha init
|
9
|
+
gotsha configure # this will open the config file; it's short and very important, so please, read it :-)
|
9
10
|
```
|
10
|
-
Then just follow the prompts — Gotsha will guide you through the setup. It won't take more than 3 minutes!
|
11
11
|
|
12
12
|
If you got stuck somewhere, you can always use `gotsha help`.
|
13
13
|
|
@@ -2,6 +2,8 @@ name: Gotsha
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
5
|
+
# Uncomment line below to run Gotsha only when asking for review (ie. do not run when PR is draft)
|
6
|
+
# types: [ready_for_review]
|
5
7
|
|
6
8
|
jobs:
|
7
9
|
verify:
|
@@ -20,7 +22,7 @@ jobs:
|
|
20
22
|
run: gem install gotsha
|
21
23
|
|
22
24
|
- name: Fetch Gotsha notes
|
23
|
-
run:
|
25
|
+
run: GOTSHA_CI=1 gotsha fetch
|
24
26
|
|
25
27
|
- name: Show tests output
|
26
28
|
run: GOTSHA_CI=1 gotsha show
|
data/lib/gotsha/version.rb
CHANGED
data/web/index.html
CHANGED
@@ -61,6 +61,14 @@
|
|
61
61
|
.card{
|
62
62
|
border:1px solid var(--border);border-radius:14px;padding:16px;background:#0b111b75
|
63
63
|
}
|
64
|
+
pre {
|
65
|
+
overflow-x: auto;
|
66
|
+
white-space: pre; /* don't wrap */
|
67
|
+
font-size: 14px;
|
68
|
+
padding: 12px;
|
69
|
+
border-radius: 8px;
|
70
|
+
background: #0b111b;
|
71
|
+
}
|
64
72
|
.card h3{margin:0 0 6px 0;font-size:18px}
|
65
73
|
.foot{margin-top:24px;color:var(--muted);font-size:13px}
|
66
74
|
/* subtle animations */
|
@@ -106,17 +114,15 @@
|
|
106
114
|
|
107
115
|
<section class="card" id="install" aria-labelledby="install-title">
|
108
116
|
<h2 id="install-title">Install</h3>
|
109
|
-
<
|
117
|
+
<o>Gotsha is distrubuted as a Ruby gem, so you need to
|
110
118
|
have <strong>Ruby</strong> working in your system. Apart from that, the only
|
111
119
|
other dependency is <strong>Git</strong>.</p>
|
112
|
-
|
113
|
-
gem install gotsha
|
114
|
-
|
115
|
-
|
116
|
-
gem 'gotsha'
|
120
|
+
<p>Set it up by following commands:</p>
|
121
|
+
<pre><code style="font-weight: lighter;">gem install gotsha <span style="color: gray;"># or add `gem "gotsha"` to you Gemfile</span>
|
122
|
+
gotsha init
|
123
|
+
gotsha configure <span style="color: gray;"># this will open the config file; it's short and very important, so please, read it :-)</span>
|
117
124
|
</code></pre>
|
118
|
-
<p>
|
119
|
-
<p>If you got stuck somewhere, you can always use <code>gotsha help</code>.</p>
|
125
|
+
<p>Gotsha will guide you through the setup — it won't take more than 3 minutes. If you still got stuck somewhere, you can always use <code>gotsha help</code>.</p>
|
120
126
|
</section>
|
121
127
|
|
122
128
|
<section class="card">
|