git-markdown 0.2.1 → 0.3.0
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/CHANGELOG.md +22 -0
- data/README.md +44 -12
- data/UPGRADE.md +4 -1
- data/lib/git/markdown/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 172e6b2a862c275377ab3b381c6d6fd7496be5a5c2ddc1991078bf4efbb1d4d1
|
|
4
|
+
data.tar.gz: ef5d3662ba88f33464d469f3706bfefa76030fd81987ca468009ebeca1af21fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c0654a4c46623b667a3e43cb1171f0db5412b8686cd43678af7f13442b2dea846b34da4511caf822e37eff990a8565122c4aa9e53f9161683c350e523563199
|
|
7
|
+
data.tar.gz: dfb4863bda9623794d2e44bffd7dd3faed55590d13ea66c500ef0a62cbff3a8068739fbdb176e77962333362315dddc28a1f70d11a67396fac70d0b43df9dd1e
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.0] - 2026-11-08
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- keep checks local and adopt Gemkit 0.3.1
|
|
14
|
+
|
|
15
|
+
- keep checks local and adopt Gemkit 0.3.1 ([#17](https://github.com/ethos-link/git-markdown/pull/17))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
- make Ethos Link the canonical documentation home
|
|
23
|
+
|
|
24
|
+
- keep audited technical guidance alongside the code
|
|
25
|
+
|
|
26
|
+
- add canonical documentation and branded social preview ([#18](https://github.com/ethos-link/git-markdown/pull/18))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
8
30
|
## [0.2.1] - 2026-11-05
|
|
9
31
|
|
|
10
32
|
|
data/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# git-markdown
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/git-markdown)
|
|
4
|
-
[](https://github.com/ethos-link/git-markdown/actions/workflows/commitlint.yml)
|
|
5
5
|
|
|
6
6
|
Convert GitHub pull requests into a single Markdown file you can review locally. Useful for offline or local AI review workflows with tools like [opencode](https://opencode.ai), GitHub Copilot CLI, and your own scripts.
|
|
7
7
|
|
|
8
|
+
## Documentation
|
|
9
|
+
|
|
10
|
+
This README and the linked repository guides describe the checked-out code.
|
|
11
|
+
The [Ethos Link project page](https://www.ethos-link.com/opensource/git-markdown)
|
|
12
|
+
provides the canonical public project guide, overview and resources.
|
|
13
|
+
|
|
8
14
|
## Features
|
|
9
15
|
|
|
10
16
|
- Reuse existing GitHub credentials.
|
|
@@ -12,6 +18,12 @@ Convert GitHub pull requests into a single Markdown file you can review locally.
|
|
|
12
18
|
- Filter threads by status and write to a file or stdout.
|
|
13
19
|
- Use GitHub Enterprise and local credential storage with restricted permissions.
|
|
14
20
|
|
|
21
|
+
## Requirements
|
|
22
|
+
|
|
23
|
+
- Ruby 4.0+
|
|
24
|
+
- Git (for remote detection)
|
|
25
|
+
- GitHub credentials with access to the requested repository; classic tokens need `repo` scope for private repositories
|
|
26
|
+
|
|
15
27
|
## Install
|
|
16
28
|
|
|
17
29
|
```bash
|
|
@@ -40,7 +52,10 @@ Or specify the repo:
|
|
|
40
52
|
git-markdown pr owner/repo#123
|
|
41
53
|
```
|
|
42
54
|
|
|
43
|
-
It saves `PR-{number}-{title}.md` in the current directory by default.
|
|
55
|
+
It saves `PR-{number}-{title-slug}.md` in the current directory by default.
|
|
56
|
+
For a PR titled "Fix timeout handling", the filename is
|
|
57
|
+
`PR-123-fix-timeout-handling.md`. The title slug is lowercased and replaces
|
|
58
|
+
non-alphanumeric sequences with hyphens.
|
|
44
59
|
|
|
45
60
|
## Usage
|
|
46
61
|
|
|
@@ -54,7 +69,8 @@ git-markdown pr owner/repo#123
|
|
|
54
69
|
# Output to stdout (useful for piping)
|
|
55
70
|
git-markdown pr 123 --stdout | pbcopy # macOS; on Linux use `xclip`/`wl-copy` or redirect to a file
|
|
56
71
|
|
|
57
|
-
# Save to
|
|
72
|
+
# Save to an existing directory
|
|
73
|
+
mkdir -p reviews
|
|
58
74
|
git-markdown pr 123 --output ./reviews/
|
|
59
75
|
|
|
60
76
|
# Filter comment threads (default: unresolved)
|
|
@@ -82,15 +98,25 @@ If you see a prompt for a GitHub username or an askpass error, set `GITHUB_TOKEN
|
|
|
82
98
|
|
|
83
99
|
## GitHub Enterprise
|
|
84
100
|
|
|
85
|
-
Set
|
|
101
|
+
Set both API URLs. The REST API fetches PR content; GraphQL supplies review-thread resolution states:
|
|
86
102
|
|
|
87
103
|
```bash
|
|
88
104
|
export GITHUB_API_URL=https://github.yourcompany.com/api/v3
|
|
105
|
+
export GITHUB_GRAPHQL_URL=https://github.yourcompany.com/api/graphql
|
|
89
106
|
git-markdown pr owner/repo#123
|
|
90
107
|
```
|
|
91
108
|
|
|
109
|
+
Provide an Enterprise token through `GITHUB_TOKEN` or `GH_TOKEN`. The current
|
|
110
|
+
Git credential lookup targets `github.com`, and `gh auth token` is invoked
|
|
111
|
+
without an Enterprise hostname. Environment URLs fill unset configuration;
|
|
112
|
+
values already saved in `config.yml` take precedence.
|
|
113
|
+
|
|
92
114
|
## Output
|
|
93
115
|
|
|
116
|
+
The export contains PR metadata, descriptions and discussions. It does not
|
|
117
|
+
include the code diff. Select comment filtering with `--status`; the CLI's
|
|
118
|
+
current default is `unresolved`.
|
|
119
|
+
|
|
94
120
|
The generated Markdown includes:
|
|
95
121
|
|
|
96
122
|
- PR metadata (title, author, status, created date)
|
|
@@ -103,17 +129,11 @@ Threads marked with `[resolved]` or `[done]` are filtered out by default. Use `-
|
|
|
103
129
|
|
|
104
130
|
## Configuration
|
|
105
131
|
|
|
106
|
-
Config is stored under `~/.config/git-markdown
|
|
132
|
+
Config is stored under `$XDG_CONFIG_HOME/git-markdown/`, or `~/.config/git-markdown/` when `XDG_CONFIG_HOME` is unset:
|
|
107
133
|
|
|
108
|
-
- `config.yml` for
|
|
134
|
+
- `config.yml` for provider, REST API URL and GraphQL URL settings
|
|
109
135
|
- `credentials` for the token (permissions: 0600)
|
|
110
136
|
|
|
111
|
-
## Requirements
|
|
112
|
-
|
|
113
|
-
- Ruby 4.0+
|
|
114
|
-
- Git (for remote detection)
|
|
115
|
-
- GitHub Personal Access Token with `repo` scope
|
|
116
|
-
|
|
117
137
|
## Contributing
|
|
118
138
|
|
|
119
139
|
1. Fork it
|
|
@@ -156,3 +176,15 @@ bundle exec rake verify
|
|
|
156
176
|
|
|
157
177
|
Release preparation, publication, registry setup and recovery are documented
|
|
158
178
|
in the [Gemkit release guide](https://github.com/ethos-link/ethos-gemkit#releasing-a-gem).
|
|
179
|
+
|
|
180
|
+
## About Ethos Link
|
|
181
|
+
|
|
182
|
+
[Ethos Link](https://www.ethos-link.com) is a software company founded by
|
|
183
|
+
[Paulo Fidalgo](https://www.fidalgo.pt). This gem is part of the open-source
|
|
184
|
+
tooling we publish alongside our business products:
|
|
185
|
+
|
|
186
|
+
- [Reviato](https://www.reviato.com): collect private customer feedback and analyse public reviews.
|
|
187
|
+
- [Nuntio](https://www.nuntiohq.com): prepare, review and schedule social posts.
|
|
188
|
+
- [EthosPlaces](https://www.ethos.place): find places, opening hours and contact details.
|
|
189
|
+
|
|
190
|
+
Explore our [open-source projects](https://www.ethos-link.com/opensource).
|
data/UPGRADE.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# Upgrade Guide
|
|
2
2
|
|
|
3
|
+
Run `bundle exec rake verify` locally before pushing or preparing a release.
|
|
4
|
+
GitHub Actions runs commitlint and release packaging/publication only.
|
|
5
|
+
|
|
3
6
|
## 0.2.0
|
|
4
7
|
|
|
5
8
|
### Shared development and release tooling
|
|
6
9
|
|
|
7
|
-
Use Ruby 4 and published Gemkit 0.3.
|
|
10
|
+
Use Ruby 4 and published Gemkit 0.3.1. Install the bundle and hooks, then run the
|
|
8
11
|
project's verification command from the README. Prepare releases from clean,
|
|
9
12
|
current main; merging the generated release PR publishes through Actions.
|
|
10
13
|
See the [Gemkit upgrade guide](https://github.com/ethos-link/ethos-gemkit/blob/main/UPGRADE.md)
|
data/lib/git/markdown/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paulo Fidalgo
|
|
@@ -66,8 +66,8 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '3.0'
|
|
69
|
-
description: A CLI tool that
|
|
70
|
-
|
|
69
|
+
description: A CLI tool that exports GitHub pull requests, review threads and discussion
|
|
70
|
+
comments to Markdown for local review.
|
|
71
71
|
email:
|
|
72
72
|
- devel@ethos-link.com
|
|
73
73
|
executables:
|
|
@@ -104,7 +104,7 @@ metadata:
|
|
|
104
104
|
source_code_uri: https://github.com/ethos-link/git-markdown
|
|
105
105
|
bug_tracker_uri: https://github.com/ethos-link/git-markdown/issues
|
|
106
106
|
changelog_uri: https://github.com/ethos-link/git-markdown/blob/main/CHANGELOG.md
|
|
107
|
-
documentation_uri: https://
|
|
107
|
+
documentation_uri: https://www.ethos-link.com/opensource/git-markdown
|
|
108
108
|
funding_uri: https://www.reviato.com/
|
|
109
109
|
github_repo: ssh://github.com/ethos-link/git-markdown
|
|
110
110
|
allowed_push_host: https://rubygems.org
|