feat: validate --directory alternative to --repository to not clone #1008
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
run-multi-platform-tests
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
#1002 feat: add pre-commit hook for validator
forgejo/runner
Reference
forgejo/runner!1008
Loading…
Reference in a new issue
No description provided.
Delete branch "earl-warren/runner:wip-validate-repository"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves forgejo/forgejo-actions-feature-requests#51
Note to reviewers: while working on fixing the exit status of the validate command, a border case was discovered when using
--clonedir . --repository .by which it will not find anaction.ymlfile at the root of the directory. It will be easier to fix and test using a--directoryoption designed to use a pre-existing directory instead because it is not a border case but the most common case really.LGTM
@ -190,1 +205,4 @@validateCmd.MarkFlagsOneRequired("repository", "path", "directory")validateCmd.MarkFlagsMutuallyExclusive("repository", "path")validateCmd.MarkFlagsMutuallyExclusive("directory", "repository")validateCmd.MarkFlagsMutuallyExclusive("directory", "clonedir")It seems like there might be a mutually exclusive option missing --
"path"&"directory"?Good catch.
061a06b01f80ac66e10c