Commit graph

8077 commits

Author SHA1 Message Date
Tyler McGoffin
83cbdc4f36 Added acceptance test for repo-delete 2024-10-18 09:31:02 -07:00
Tyler McGoffin
18428671c3 Added test function for repos and repo-create test 2024-10-18 09:31:02 -07:00
Tyler McGoffin
1313612245
Merge pull request #9701 from cli/jtmcg/9698
Add handling of empty titles for Issues and PRs
2024-10-17 14:57:57 -07:00
Tyler McGoffin
14acbe00a9 Remove . from test case for TestTitleSurvey 2024-10-17 14:45:35 -07:00
Tyler McGoffin
13ab02729b Clean up Title Survey empty title message code 2024-10-17 14:40:17 -07:00
Andy Feller
c1ccd81a7b
Merge pull request #9774 from cli/andyfeller/cli-9769-run-job-step-datetimes
Include startedAt, completedAt in run steps data
2024-10-17 13:36:38 -04:00
Andy Feller
6cb25c8a91
Merge pull request #9752 from cli/dependabot/go_modules/github.com/gabriel-vasile/mimetype-1.4.6
build(deps): bump github.com/gabriel-vasile/mimetype from 1.4.5 to 1.4.6
2024-10-17 13:05:32 -04:00
William Martin
2850835b26
Merge pull request #9771 from cli/kw/github-cli-586-add-acceptance-tests-for-release-commands
Add acceptance tests for `release` commands
2024-10-17 16:28:55 +02:00
William Martin
24fc2db395 Remove stdout assertion from release 2024-10-17 16:06:14 +02:00
bagtoad
473faea573 Rename test files 2024-10-17 16:06:14 +02:00
bagtoad
a009933a16 Add acceptance tests for release commands 2024-10-17 16:06:10 +02:00
William Martin
d2559f007f
Merge pull request #9770 from cli/kw/github-cli-591-add-acceptance-tests-for-api-commands
Add basic `api` acceptance tests
2024-10-17 16:05:26 +02:00
bagtoad
06c20f3a8b Implement basic API acceptance test 2024-10-17 15:39:29 +02:00
William Martin
f21ac8f68e
Merge pull request #9766 from cli/kw/github-cli-585-add-acceptance-tests-for-actions-commands
Add acceptance tests for `workflow`, `run`, and `cache` commands
2024-10-17 15:36:54 +02:00
William Martin
dc3e805078 Remove unnecesary mkdir from download Acceptance test 2024-10-17 15:13:43 +02:00
William Martin
07ea43ae5a Remove empty stdout checks 2024-10-17 15:13:38 +02:00
William Martin
0f62ec20e2 Adjust sleeps to echos in Acceptance workflows 2024-10-17 15:06:45 +02:00
William Martin
93081c9e65 Use regex assert for enable disable workflow Acceptance test 2024-10-17 14:25:02 +02:00
William Martin
8f567e2791 Watch for run to end for cancel Acceptance test 2024-10-17 14:13:50 +02:00
Andy Feller
86b4bb9956 Include startedAt, completedAt in run steps data
This commit expands the `Step` structure used with GitHub Actions workflow runs to include fields indicating when steps start and complete.

This information is already provided by the GitHub API, so this only involves expanding the structure, fields exported, and the associated tests.

In the future, I could see `gh` including the duration calculation which is used when viewing workflow or workflow run.
2024-10-16 19:38:10 -04:00
Kynan Ware
8b0b0ce184
Merge pull request #9772 from muzimuzhi/docs/reduce-dup
Rewrite a sentence in CONTRIBUTING.md
2024-10-16 11:24:27 -06:00
Yukai Chou
fdfd4b30bb Rewrite a sentence in CONTRIBUTING.md 2024-10-17 01:13:47 +08:00
Tyler McGoffin
7aef6ec391
Merge pull request #9728 from heaths/issue9704
Supporting filtering on `gist list`
2024-10-15 16:26:13 -07:00
Tyler McGoffin
c1897f3122
Merge branch 'trunk' into jtmcg/9698 2024-10-15 15:15:31 -07:00
Heath Stewart
446f66070a
Add filtered content output to docs 2024-10-15 14:39:21 -07:00
bagtoad
4ce8236142 sleep 10s before checking for workflow run 2024-10-15 15:09:47 -06:00
Tyler McGoffin
b98c840a7f
Merge pull request #9755 from cli/jtmcg/577
Update IsEnterprise and IsTenancy for orthogonality using go-gh
2024-10-15 14:09:25 -07:00
bagtoad
8d626312a4 Update run-rerun.txtar 2024-10-15 14:59:21 -06:00
bagtoad
924d81a34b Create cache-list-delete.txtar 2024-10-15 14:59:19 -06:00
bagtoad
682b75fb4e Create run-view.txtar 2024-10-15 14:19:52 -06:00
bagtoad
745863b365 Create run-rerun.txtar 2024-10-15 14:19:49 -06:00
bagtoad
3d3e061d06 Create run-download.txtar 2024-10-15 14:19:47 -06:00
bagtoad
3f080e0948 Create run-delete.txtar 2024-10-15 14:19:44 -06:00
Tyler McGoffin
2d0b742cb3
Merge branch 'trunk' into jtmcg/577 2024-10-15 12:56:43 -07:00
Tyler McGoffin
ddf90c78c2 Remove IsTenancy and relevant tests from gists as they are unsupported 2024-10-15 12:41:23 -07:00
Tyler McGoffin
0bd4e034ef Remove unnecessary code branches 2024-10-15 12:35:35 -07:00
Tyler McGoffin
e1a39d8e2b Add ghe.com to tests describing ghec data residency 2024-10-15 12:24:41 -07:00
Tyler McGoffin
4df2e7be63 Remove comment 2024-10-15 12:16:20 -07:00
Tyler McGoffin
8109594c4c auth: Removed redundant ghauth.IsTenancy(host) check 2024-10-15 11:56:43 -07:00
Tyler McGoffin
81591a09b8 Use go-gh/auth package for IsEnterprise, IsTenancy, and NormalizeHostname 2024-10-15 11:56:43 -07:00
Tyler McGoffin
44fdb3320d Upgrade go-gh version to 2.11.0 2024-10-15 11:56:43 -07:00
Tyler McGoffin
3a8417f6c7 Add test coverage to places where IsEnterprise incorrectly covers Tenancy
IsEnterprise currently returns `true` when `IsTenancy` returns true. We
prefer that this behavior is orthogonal. This commit adds failing tests to
the instances where IsEnterprise should not behave the same as IsTenancy.

These test cases are expected to pass with the inclusion of the coming
improvements to go-gh to handle the orthogonality of IsEnterprise and
IsTenancy.
2024-10-15 11:56:43 -07:00
Andy Feller
a6974cc8d6
Merge pull request #9757 from cli/wm/testscript-issues
Add Acceptance tests for `issue` command
2024-10-15 14:47:33 -04:00
William Martin
e37cf8b694
Fix issue creation with metadata regex
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-10-15 19:11:49 +01:00
William Martin
02599796bb
Merge pull request #9748 from cli/wm/add-acceptance-makefile
Add acceptance task to makefile
2024-10-15 19:11:16 +01:00
bagtoad
446ffede12 Create run-cancel.txtar 2024-10-15 11:37:14 -06:00
bagtoad
3737f10246 Create workflow-run.txtar 2024-10-15 11:37:11 -06:00
bagtoad
0b1d6923e1 Create workflow-view.txtar 2024-10-15 11:37:06 -06:00
bagtoad
5f919bc5b0 implement workflow enable/disable acceptance test 2024-10-15 11:01:21 -06:00
bagtoad
c3ffdc90c8 implement base workflow list acceptance test 2024-10-15 11:01:09 -06:00