[deploy directory] Don't return error code when folder doesn't contain a file with a matching pattern
Open
enhancement
realpeople
- Dominant language
- TypeScript
- Stars
- 71
- Forks
- 9
- Avg merge
- 7m
- Merged PRs (30d)
- 4
Description
avoid crash when folder doesn't contain a file with a matching pattern:
```
$ bump deploy --auto-create --hub "test-hub" --token $BUMPSH_TOKEN --filename-pattern "{slug}-api" "test-case"
> Error: No documentation found in test-case
```
This returns a non 0 error code where as its not really an error from the CLI.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the `bump deploy` command and its `--filename-pattern` handling for the no-matching-file case. Run the command shown in the issue and verify that a folder without a matching file does not crash or return a non-zero exit code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100