Commit graph

5685 commits

Author SHA1 Message Date
Babak K. Shandiz
bde303dab2
test: fix test data const
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-06-10 13:57:31 +01:00
Brian DeHamer
53cae592f6
refactor to simplify implementation
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-06-05 10:35:21 -07:00
Kynan Ware
ed4b90104f test(pr): Add tests for actor assignees 2025-06-03 14:30:19 +01:00
Andy Feller
a24d39ac87 Fix test, remove partial standalone test 2025-06-03 13:48:01 +01:00
Andy Feller
cde860be88 Iterate on pr edit problems with existing assignees
This commit is a handful of changes around `gh pr edit --add-assignee` behavior.  Most notably, fixing a bug where the assigned actors weren't being dropped.

In addition to this, I was refactoring the testing setup to allow for individual test table scenarios could be contained.
2025-06-03 13:33:52 +01:00
Anuraag (Rag) Agrawal
85c86531b4
Merge branch 'trunk' into active-token-user 2025-06-03 09:43:15 +09:00
William Martin
c13f2f1232
Merge pull request #11057 from cli/wm/fix-pr-edit
Fix pr edit when URL is provided
2025-06-02 17:44:30 +02:00
Tim Rogers
9a8031151c
Document support for @copilot in gh [pr|issue] edit --add-assignee and --remove-assignee (#11056)
* Document support for `@copilot` in `gh [pr|issue] edit --add-assignee` and `--remove-assignee`

Following up on #10991, this updates the help text for
`issue edit` and `pr edit`'s `--add-assignee` and
`--remove-assignee` options to mention that you can use
`@copilot`.

This is already mentioned in the command-level help text, but
not at the argument level, whereas the `@me` macro is.

* Apply suggestion from @babakks

Co-authored-by: Babak K. Shandiz <babakks@github.com>

* Apply suggestion from @babakks

Co-authored-by: Babak K. Shandiz <babakks@github.com>

---------

Co-authored-by: Babak K. Shandiz <babakks@github.com>
2025-06-02 16:29:35 +01:00
William Martin
793a7ff459 Fix pr edit when URL is provided 2025-06-02 15:07:55 +02:00
ejahnGithub
d7d9228609 use standardize color roles logic for the logging 2025-05-30 14:08:59 -07:00
ejahnGithub
5048d586dc moved to shared lib 2025-05-30 13:46:54 -07:00
ejahnGithub
bf4b793eff moved to shared lib 2025-05-30 13:43:07 -07:00
ejahnGithub
56f8877097 update the artifact and bundle for testing 2025-05-30 13:31:23 -07:00
ejahnGithub
df87b15598 clean the code 2025-05-30 12:53:19 -07:00
ejahnGithub
96db923f19 revert the workflow 2025-05-30 12:33:40 -07:00
ejahnGithub
4b1108734c debug windows env 2025-05-30 12:18:23 -07:00
ejahnGithub
b423edff7b debug windows env 2025-05-30 11:51:33 -07:00
ejahnGithub
53cb90aeca debug windows env 2025-05-30 11:16:04 -07:00
ejahnGithub
2312cfb146 clean the path 2025-05-30 10:07:18 -07:00
ejahnGithub
6d90ad6a2d clean the path 2025-05-30 09:58:23 -07:00
ejahnGithub
e00e1c414b clean the path 2025-05-30 09:46:46 -07:00
ejahnGithub
8e6ed6eb38 improve test 2025-05-30 09:30:05 -07:00
ejahnGithub
3b17318ee4 fix test 2025-05-30 08:31:07 -07:00
Eugene
15b7692f1a
Merge branch 'trunk' into eugene/release-verify 2025-05-30 08:20:42 -07:00
ejahnGithub
71c2361dfc add unit test 2025-05-30 08:17:21 -07:00
Andy Feller
79fc854814
Merge pull request #11030 from cli/bdehamer/release-asset-digest
Add Digest to ReleaseAsset struct
2025-05-29 15:11:16 -04:00
Brian DeHamer
fc6ac59bbc
fixup release asset digest tests
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-05-29 12:00:40 -07:00
Brian DeHamer
0d6b9f89a4
remove nolint comment for release header
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-05-29 11:54:44 -07:00
Brian DeHamer
7b33da981e
Update pkg/cmd/release/view/view.go
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-05-29 11:53:33 -07:00
Anuraag Agrawal
cc9a2411e0 Cleanup 2025-05-29 12:28:26 +09:00
Anuraag Agrawal
f294a5f533 fix: get token for active user instead of blank if possible 2025-05-29 12:13:21 +09:00
Meredith Lancaster
23382f498e Merge branch 'trunk' into gh-attestation-tuf-client-retry 2025-05-28 10:24:32 -06:00
Babak K. Shandiz
d1b82d19f9
Merge pull request #10980 from cli/babakks/improve-pr-create-docs
Mention `pr create` will print the created PR's URL
2025-05-28 16:43:04 +01:00
phanium
19e1178a32
fix: gh gist edit panic when no file in a gist (#10627)
* fix: `gh gist edit` panic when no file in a gist

* fix: improve error message

Signed-off-by: Babak K. Shandiz <babakks@github.com>

---------

Signed-off-by: Babak K. Shandiz <babakks@github.com>
Co-authored-by: Babak K. Shandiz <babakks@github.com>
2025-05-28 14:40:14 +01:00
Babak K. Shandiz
c927ea40c3
Merge pull request #10979 from cli/babakks/improve-pr-list-docs
Add example usage of `--head` option to `pr list` docs
2025-05-28 14:38:17 +01:00
Babak K. Shandiz
01a1859d40
Merge pull request #11013 from cli/babakks/add-run-presentation-tests
Add tests for `RenderJobs` and `RenderJobsCompact`
2025-05-28 13:10:44 +01:00
Babak K. Shandiz
aa64bb5708
docs(pr list): mention --head does not support <owner>:<branch> syntax
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-05-28 12:55:11 +01:00
Brian DeHamer
bc93b54137
add Digest to ReleaseAsset struct
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-05-27 12:47:16 -07:00
Meredith Lancaster
f2f769c23a Merge branch 'trunk' into gh-attestation-tuf-client-retry 2025-05-27 10:14:35 -06:00
ejahnGithub
ab49b2abbc remove filepath test 2025-05-27 12:02:24 -04:00
Meredith Lancaster
a154ff5cfa replace deprecated func
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-05-27 09:38:46 -06:00
Meredith Lancaster
dcca4b2940 replace deprecated type
Signed-off-by: Meredith Lancaster <malancas@github.com>
2025-05-27 09:34:35 -06:00
ejahnGithub
d0da9b1664 update Sprintf 2025-05-23 16:23:41 -04:00
Eugene
2431a58c19
Merge branch 'trunk' into eugene/release-verify 2025-05-23 15:52:41 -04:00
ejahnGithub
81f1017fa2 removed unused file 2025-05-23 15:33:43 -04:00
ejahnGithub
3108d99208 added the unit test 2025-05-23 15:31:33 -04:00
Babak K. Shandiz
bb5e10d41f
test(run): add tests for RenderJobs and RenderJobsCompact
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-05-23 11:00:09 +01:00
Azeem Sajid
1e6a2b1aff
Add --compact flag to run watch (#10629)
* [gh run watch] Support `--compact` flag

* [gh run watch] Support `--compact` flag

* Add changes for updated AC

* Incorporate review changes

* docs(run watch): fill up the line to 80 chars

Signed-off-by: Babak K. Shandiz <babakks@github.com>

---------

Signed-off-by: Babak K. Shandiz <babakks@github.com>
Co-authored-by: Babak K. Shandiz <babakks@github.com>
2025-05-23 10:55:41 +01:00
ejahnGithub
ca0f9847db add json format 2025-05-22 12:31:45 -04:00
Kynan Ware
ca46b56456
Merge pull request #11003 from cli/kw-bks/enclose-config-options-in-code-blocks
Fix formatting in allowed values for `gh config --help`
2025-05-22 10:14:14 -06:00