Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: display help even outside git repo #287

Conversation

DouglasBlackwood
Copy link
Contributor

Mergify CLI raises an error when the user invokes mergify --help
outside a git repository and the git config mergify-cli.stack-trunk
is not set.

Fixes MRGFY-2858

Change-Id: Icf3cfd073774fff2b9551a3eff77d1ce1b505414

Mergify CLI raises an error when the user invokes `mergify --help`
outside a git repository and the git config `mergify-cli.stack-trunk`
is not set.

Fixes MRGFY-2858

Change-Id: Icf3cfd073774fff2b9551a3eff77d1ce1b505414
@DouglasBlackwood
Copy link
Contributor Author

This pull request is part of a stack:

  1. fix: display help even outside git repo (#287)

Copy link

linear bot commented Nov 6, 2023

MRGFY-2858 Mergify CLI should not crash outside git repo

Current Behavior

image.png

Expected Behavior

Just printing the help should be possible from anywhere, especially if we plan to extend the tool for different uses.

Technical Insight

Just return in the default or smth.

Impacted Customers

*

@mergify mergify bot requested a review from a team November 6, 2023 15:57
@mergify mergify bot merged commit 4476eb7 into main Nov 6, 2023
@mergify mergify bot deleted the devs/DouglasBlackwood/fix-crash/Icf3cfd073774fff2b9551a3eff77d1ce1b505414 branch November 6, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants