Commit d15bb11
authored
Include diff in spec-drift issue body (#39)
* Include diff in spec-drift issue body
Pretty-print both specs with --sort-keys so unrelated key reordering
doesn't trip the check, then attach a unified diff (truncated at 60 KB)
to the issue body inside a <details> block. Update the existing open
issue on subsequent runs so the diff stays current instead of pinning
to whatever week the drift first appeared.
* Simplify spec-drift body construction
- Capture the diff directly in the existing `if ! diff …` (errexit is
already exempt inside `if`), removing the separate `-q` pre-check,
the intermediate pretty-printed tempfiles, and the `|| true` workaround.
- Replace the multi-echo body wrapper with two `printf`s and a 1-line
bash `&&` truncation marker.
- Pass `--label vendored --label upstream` to `diff` so the issue body
shows meaningful headers instead of `/dev/fd/63`.
* Refresh openapi.json from upstream
Only `info.description` changed ("Last updated: April 23, 2026" →
"April 30, 2026"); the field is OpenAPI metadata that does not surface
in any generated Python, so re-running the regen pipeline produces no
changes under `ionq_core/`. The upstream-sorted diff matches the
preview posted on this PR.
Resolves #38.
* Collapse openapi.json diffs in GitHub PR views
`linguist-vendored=true` only excludes a file from repo language
statistics; it does not suppress diffs in PRs (see github-linguist's
`generated.rb` and github-linguist/linguist#3234). Add
`linguist-generated=true` so reviewers see openapi.json collapsed by
default — the spec is fetched from upstream by the regen pipeline and
isn't intended for line-by-line review (the actual semantic diff lives
in the spec-drift issue body now).
* Remove unnecessary comment
* Derive spec URL from openapi.json in spec-drift workflow
* Drop redundant spec-drift URL extraction test1 parent c468c31 commit d15bb11
4 files changed
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | | - | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | | - | |
| 47 | + | |
38 | 48 | | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
0 commit comments