Kynan Ware
81d00a36f8
fix(pr create): use existing local variables
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-04-15 13:38:10 -06:00
Kynan Ware
15ea861b79
docs(pr create): help text, doc user:branch syntax
...
Document the user:branch syntax for the `--head`` flag in `gh pr create`.
2025-04-15 13:38:10 -06:00
Kynan Ware
7bb5d71f4c
doc(pr create): improve head repo resolution comments
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-04-15 13:38:10 -06:00
Kynan Ware
041f02c980
docs(pr create): standard <user>:<branch> syntax
...
Standardize <user>:<branch> syntax wherever it is described in comments.
2025-04-15 13:38:10 -06:00
Kynan Ware
6dae35b442
test(finder): change assert to require
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-04-15 13:38:10 -06:00
Kynan Ware
e9e57f3ee3
doc(pr create): fix typo in comments
...
Co-authored-by: Tyler McGoffin <jtmcg@github.com>
2025-04-15 13:38:10 -06:00
Kynan Ware
d524cbddc2
docs(pr create): clarify comment on head branch syntax
2025-04-15 13:38:10 -06:00
Kynan Ware
e999976b3d
refactor(pr create): add PullRequestRefs HasHead
2025-04-15 13:38:10 -06:00
Kynan Ware
54da786bec
fix(pr create): update error handling
2025-04-15 13:38:10 -06:00
Kynan Ware
bab7dc650b
test(pr create): update repo owner names in tests
2025-04-15 13:38:10 -06:00
Kynan Ware
da235b134b
tests(pr create): remove irrelevant comments
2025-04-15 13:38:10 -06:00
Kynan Ware
9b96e6cded
doc(pr create): fix typo in test comments
...
Co-authored-by: Tyler McGoffin <jtmcg@github.com>
2025-04-15 13:38:10 -06:00
Kynan Ware
911079c744
docs(pr create): add comments
2025-04-15 13:38:10 -06:00
Kynan Ware
cf58910ac0
refactor(pr create): named headRefName var
2025-04-15 13:38:10 -06:00
Kynan Ware
9f1cb0cd54
refactor(pr create): simplify head remote logic
2025-04-15 13:38:10 -06:00
Kynan Ware
f50dac53cb
docs(pr create): fix <repo_name>:<branch> desc.
2025-04-15 13:38:10 -06:00
Kynan Ware
c0c5d9123d
refactor(pr create): use GetPRHeadLabel()
...
Use PrRefs.GetPRHeadLabel() instead of headBranchLabel.
Also remove headBranchLabel from CreateContext struct.
To do this, we needed a new identifier for when the head repo should be
created via a new fork of the base repo. Previously, this was done by
checking if the head repo was nil, but if we want to call
GetPRHeadLabel(), it requires a non-nil head repo to construct the
headBranchLabel. So, instead of the head repo being nil to signal
a fork, we pass a new forkHeadRepo bool in the CreateContext struct.
This also makes the decision to fork more intentional; now the decision
is made clearly instead of if the headRepo happens to be nil.
2025-04-15 13:38:10 -06:00
Kynan Ware
178fb40515
refactor(pr create): Use PrRefs in CreateContext
...
Replace BaseRepo, HeadRepo, HeadBranch with PrRefs in CreateContext struct.
2025-04-15 13:38:10 -06:00
Kynan Ware
c3087cde99
refactor(pr create): Refactor NewCreateContext
...
- Use prRefs instead of local vars more.
- Rename variables for readability.
- Improve comments.
- Refactor tests.
2025-04-15 13:38:10 -06:00
Kynan Ware
10e3949348
refactor(pr create): use prRefs.GetPRHeadLabel()
2025-04-15 13:38:10 -06:00
Kynan Ware
84a35ca381
refactor: rename IsPushEnabled for clarity
2025-04-15 13:38:10 -06:00
Kynan Ware
dc486258cb
test(pr create): test --head=<remote>:<branch>
2025-04-15 13:38:10 -06:00
Kynan Ware
6db9048557
refactor: Refactor pr create
...
Refactor pr create by reducing flapping `isPushEnabled` between true and false.
`isPushEnabled` is now also set to `true` by default, logically aligning with the
behavior description in the help text.
2025-04-15 13:38:10 -06:00
Kynan Ware
a8d01c70cd
feat: support @{push} revision syntax
2025-04-15 13:38:10 -06:00
Kynan Ware
b61b2298d2
doc: fix PullRequestRefs comment
2025-04-15 13:38:10 -06:00
Meredith Lancaster
6dbb3fe541
Merge pull request #10750 from malancas/refactor-sigstore-verifier-logic
...
Refactor Sigstore verifier logic
2025-04-15 09:05:47 -06:00
William Martin
408e21ebdd
Merge pull request #10769 from cli/babakks/fix-job-log-resolution
...
Fix job log resolution to skip legacy logs in favour of normal/new ones
2025-04-11 16:16:39 +02:00
Babak K. Shandiz
f337ce90a0
Explain job log resolution reason
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 14:51:39 +01:00
William Martin
2a2678116f
Merge pull request #10609 from iamazeem/10228-gh-ext
...
[gh ext] Fix `GitKind` extension directory path
2025-04-11 15:51:16 +02:00
William Martin
48274f3118
Document UNKNOWN STEP in run view
2025-04-11 15:23:18 +02:00
Babak K. Shandiz
b65286125b
Add $ anchor to log file regexps
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This is to make sure we do not pick up the wrong file if there is a
`.txt` sequence in the middle of a job name.
2025-04-11 12:41:31 +01:00
Babak K. Shandiz
2d21b4624c
Test normal job run log is preferred over legacy one
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 12:40:26 +01:00
Babak K. Shandiz
940bd10a1d
Prefer normal job run log file over legacy one
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 12:39:09 +01:00
William Martin
83bd23b080
Merge pull request #10740 from cli/babakks/fallback-to-job-run-logs
...
Fallback to job run logs when step logs are missing
2025-04-11 11:39:07 +02:00
Babak K. Shandiz
5adf3285ec
Explain when a negative number prefix appears
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 10:26:14 +01:00
Babak K. Shandiz
d35236948c
Improve explanation for missing step logs
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 10:17:52 +01:00
Babak K. Shandiz
1bf1153c54
Explain the UNKNWON STEP placeholder
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 10:08:36 +01:00
Babak K. Shandiz
f673b409f7
Replace UNKNOWN with UNKNOWN STEP in job run log
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 09:57:13 +01:00
Babak K. Shandiz
0251a8dd6d
Explain why step logs are preferred
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-11 09:56:17 +01:00
Kynan Ware
dec71dd9e1
Merge pull request #10710 from cli/kw/first-pass-accessible-prompter
...
Introduce accessible prompter for screen readers (preview)
2025-04-10 17:28:26 -06:00
Babak K. Shandiz
791e1af828
Add missing gc.AssertExpectations calls
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-10 14:09:49 +01:00
Babak K. Shandiz
f0d4acd501
Add tests for IsPinned method
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-04-10 14:00:24 +01:00
Kynan Ware
19633d3855
Merge pull request #10516 from iamazeem/8430-show-hostname-in-repo-creation-prompts
...
[gh repo create] Show host name in repo creation prompts
2025-04-09 14:30:56 -06:00
Kynan Ware
a34c9ea799
doc(prompter env): accessible prompter includes braille reader
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-04-09 08:20:07 -06:00
Kynan Ware
861563269a
Merge branch 'trunk' into kw/first-pass-accessible-prompter
2025-04-09 08:07:56 -06:00
Meredith Lancaster
139e82c68c
Revert "temporarily skip non-failing tests"
...
This reverts commit de8778797f .
2025-04-09 07:23:17 -06:00
Meredith Lancaster
7b20ee5549
Merge pull request #10749 from malancas/update-to-sigstore-go-v0.7.1
...
Update github.com/sigstore/sigstore-go to 0.7.1 and fix breaking function change
2025-04-09 11:58:20 +02:00
Meredith Lancaster
de8778797f
temporarily skip non-failing tests
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-04-08 19:09:52 -06:00
Meredith Lancaster
29080dc70a
reorganize func
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-04-08 16:40:52 -06:00
Meredith Lancaster
d63e2830e0
clean up unneeded sigstore verifier fields
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-04-08 16:35:17 -06:00