Commit graph

7295 commits

Author SHA1 Message Date
t4kamura
2ea5f03b43 Test pr url lock 2024-03-18 22:49:07 +09:00
Victor Martinez
c0658b7ab4
feat: support dry-run in gh pr create (#8376) 2024-03-14 16:28:53 +01:00
William Martin
96d9a0da24
Merge pull request #8811 from cli/dependabot/go_modules/google.golang.org/protobuf-1.33.0
build(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0
2024-03-14 10:58:12 +01:00
dependabot[bot]
358f3d95e9
build(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0
Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 22:44:00 +00:00
Andy Feller
dc804d9287
Merge pull request #8778 from cli/repo_in_merge_prompt
feat: consistent issue and PR owner/repo#number in various prompt
2024-03-12 12:16:26 -04:00
William Martin
4601d7ff5e
Merge pull request #8797 from gregsmi/bug/gh-auth-token-docs
fixed doc string
2024-03-07 10:58:02 +01:00
Greg Smith
df446b47fc fixed doc string 2024-03-06 14:08:59 -08:00
William Martin
f4dff56057
Merge pull request #8795 from cuinix/trunk
remove repetitive word
2024-03-06 16:57:09 +01:00
cuinix
6091e7ad5b remove repetitive word
Signed-off-by: cuinix <915115094@qq.com>
2024-03-06 23:30:00 +08:00
Andy Feller
3ca179bcde
Bump cli/go-gh v2.6.0 for tenant using GH_TOKEN (#8787) 2024-03-04 18:04:13 +01:00
Andy Feller
2b2571eb23 Fix breaking test for PR/issue # change 2024-03-01 16:04:24 -05:00
Andy Feller
bcdc917f08 Enhance 2nd round of issue and PR number output 2024-03-01 15:42:43 -05:00
Andy Feller
3bb5f54073 Apply first round of owner/repo#number consistency
This commit expands on @nobe4 initial work by bringing the owner and repository name to the most obvious issue and PR number output use cases before making a second pass for any edge cases.
2024-03-01 14:03:18 -05:00
Harvey Sanders
9dd102ffd0
Support project view --web with TTY (#8773) 2024-03-01 17:45:29 +01:00
nobe4
a5b7c6122d
fix: format files 2024-03-01 13:35:09 +01:00
nobe4
db93444ba9
feat(merge): add owner/repo in prompt
Various places during the `gh pr merge` flow show the PR number and
title. Those places are updated to also show the owner/repo.

E.g.
Before:
  Pull request #123 (title) is ready to be merged
After:
  Pull request owner/repo#123 (title) is ready to be merged

There are other places, where only the number is displayed. Those were
intentionally left as is. It made sense to show the owner/repo only when
the extra context of the title was present.

It also fixes the related tests.

cc #8777
2024-03-01 13:26:20 +01:00
William Martin
590208f5d6
Merge pull request #8693 from hongquan/feat/debian-install
Simplify install command for Debian & Ubuntu
2024-03-01 12:04:42 +01:00
William Martin
337ae29769
Merge pull request #8738 from stuart-leitch/docs/clarify-archived-repo-beahaviour-when-searching-prs
Clarify helptext for search prs regarding archived repos
2024-03-01 10:30:21 +01:00
Nguyễn Hồng Quân
09f09879ca Merge branch 'trunk' into feat/debian-install 2024-03-01 09:47:55 +07:00
Nguyễn Hồng Quân
e67467cea7 Handle case: some system set 600 mod for new file. 2024-03-01 09:43:35 +07:00
Stuart Leitch
cfd2d645b2 Clarify helptext for gh search issues and gh search repos regarding archived repos 2024-02-29 22:38:55 +00:00
William Martin
0d4bf83a41
Merge pull request #8595 from benebsiny/cli-7849
Link Project to Repository or Team Command
2024-02-29 17:02:39 +01:00
William Martin
ee6e5e1f23
Merge pull request #8756 from bartekpacia/config_improve_comments
Make comments in the default config file more informative
2024-02-29 14:10:10 +01:00
William Martin
9dc23559c1
Merge pull request #8711 from toshimaru/add-cache-ref-optoion-to-cache-list
feat: Add `ref` option to `gh cache list`
2024-02-29 13:30:50 +01:00
William Martin
b7ea025475 Make minor cache list ref flag adjustments 2024-02-29 13:02:49 +01:00
William Martin
d72752830c
Merge pull request #8768 from cli/wm-af/fix-pr-fill
Fix regression around commas in commit titles during `pr create`
2024-02-28 13:53:29 +01:00
William Martin
5fe6eebfea Update incorrect regex comment for client Commits 2024-02-28 13:38:39 +01:00
William Martin
2ee6737053 Use regex to split apart the git client Commit logs
Theoretically this should be clearer and more robust than the previous
version which had some custom loop logic while trying to parse newlines
and determine whether it had reached a new commit entry by trying to parse
a git sha. This would not have worked correctly if a commit body contained
a sha on a new line.
2024-02-27 20:49:00 +01:00
William Martin
2b0484f5aa Use null byte separators when fetching comments from git 2024-02-27 18:00:40 +01:00
William Martin
fb353caf19 Add new tests to git client Commits
This adds coverage for mutliple commits and commits with
newlines in bodies.
2024-02-27 17:33:17 +01:00
William Martin
2af0c899d8 Remove unnecessary split conditional from client Commits
Since this is guarded by the line starting with a git sha, it must
be a line of the form 'sha,title,body', so there can never be only
two entries since the Split fn will produce an empty string in the
last spot in the case of a missing body.
2024-02-27 17:26:51 +01:00
William Martin
0541d286c1 Extract new test helper for git client Commits 2024-02-27 14:41:45 +01:00
Bartek Pacia
32eeb63a85
redirect users to the gh environment command 2024-02-27 10:41:03 +01:00
Bartek Pacia
5d72e17246
Revert "make comments in the default config file more informative"
This reverts commit ef96b447d7.
2024-02-27 10:33:15 +01:00
Bartek Pacia
ef96b447d7
make comments in the default config file more informative 2024-02-25 23:43:58 +01:00
Stuart Leitch
19367c6458 fixed whitespace 2024-02-21 23:31:57 +00:00
Stuart Leitch
25c1610e37 Clarify helptext for search prs regarding archived repos 2024-02-21 23:17:19 +00:00
William Martin
24481c5c2e
Merge pull request #8715 from dean-tate/dean-tate/8712-fix-repo-variable-update-msg
bug: fixed the msg returned for patching a repo variable
2024-02-20 14:58:31 +01:00
William Martin
fcb1576d26
Merge pull request #8716 from cli/wm/remove-loop-label-from-garden
Resolve go compiler regression
2024-02-18 20:05:06 +01:00
Dean Tate
a3601a7eca bug: fixed the result.Operation variable prior to patchRepoVariable being called in the setVariable function. 2024-02-18 11:12:01 +11:00
William Martin
81be2b67ee Remove mainLoop label from garden 2024-02-17 13:45:39 +01:00
toshimaru
818c158212
feat: Add ref option to gh cache list
List GitHub Actions caches with `ref` filtering.

> ref string
> The full Git reference for narrowing down the cache. The ref for a branch should be formatted as refs/heads/<branch name>. To reference a pull request use refs/pull/<number>/merge.

ref. https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository
2024-02-17 09:28:06 +09:00
Andy Feller
b07f955c23
Merge pull request #8707 from cli/wm/fix-pr-create-regression-8706
Fix PR create regression around title and body when there is only one commit
2024-02-16 12:12:27 -05:00
William Martin
658e7ac889 Ensure PRs with one commit have title and body prefilled 2024-02-16 16:30:44 +01:00
William Martin
14617e59e9 Update test to run against trunk 2024-02-16 16:30:00 +01:00
William Martin
237f6e3435 Test PR create uses commit title and body when only one commit 2024-02-16 16:19:02 +01:00
benebsiny
66fb5738a3 chore: simplify parameter owner 2024-02-15 23:24:32 +08:00
benebsiny
7dfaa328aa Support for [HOST/]OWNER/REPO format 2024-02-15 23:16:00 +08:00
benebsiny
874da37a24 Replace assert with require in testing 2024-02-15 18:38:50 +08:00
benebsiny
9225102a67 Merge branch 'trunk' of github.com:cli/cli into trunk 2024-02-15 18:33:37 +08:00