Skip to content

Fix missing error message on repository selection#1837

Merged
koesie10 merged 2 commits intomainfrom
koesie10/fix-no-error-empty-repositories
Dec 7, 2022
Merged

Fix missing error message on repository selection#1837
koesie10 merged 2 commits intomainfrom
koesie10/fix-no-error-empty-repositories

Conversation

@koesie10
Copy link
Copy Markdown
Member

@koesie10 koesie10 commented Dec 5, 2022

The repository selection was structured such that you would get in the else case if there was nothing selected, but this case would also be used if for some other reason the selected item was not valid.

This restructures the conditions to first check whether the user cancelled out of the operation and will silently return in that case. In other cases where it cannot determine the repositories, it will now show a user-visible error.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

The repository selection was structured such that you would get in the
`else` case if there was nothing selected, but this case would also be
used if for some other reason the selected item was not valid.

This restructures the conditions to first check whether the user
cancelled out of the operation and will silently return in that case. In
other cases where it cannot determine the repositories, it will now show
a user-visible error.
@koesie10 koesie10 added the secexp label Dec 5, 2022
@koesie10 koesie10 requested a review from a team as a code owner December 5, 2022 14:19
@koesie10 koesie10 force-pushed the koesie10/fix-no-error-empty-repositories branch from d5e2c24 to 7fd45ef Compare December 7, 2022 16:30
@koesie10 koesie10 enabled auto-merge December 7, 2022 16:33
@koesie10 koesie10 merged commit d66e7c6 into main Dec 7, 2022
@koesie10 koesie10 deleted the koesie10/fix-no-error-empty-repositories branch December 7, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants