Skip to content

Commit

Permalink
Hook PR creation modal up to main UI
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Sep 28, 2024
1 parent e527456 commit decb5d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lazy_github/ui/screens/primary.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from lazy_github.lib.github.pull_requests import get_full_pull_request
from lazy_github.lib.messages import IssuesAndPullRequestsFetched, IssueSelected, PullRequestSelected, RepoSelected
from lazy_github.ui.screens.new_issue import NewIssueModal
from lazy_github.ui.screens.new_pull_request import NewPullRequestModal
from lazy_github.ui.screens.settings import SettingsModal
from lazy_github.ui.widgets.actions import ActionsContainer
from lazy_github.ui.widgets.command_log import CommandLogSection
Expand Down Expand Up @@ -126,10 +127,10 @@ def action_open_issue(self) -> None:

def action_open_pull_request(self) -> None:
if LazyGithubContext.current_repo is None:
self.notify("Please select a repository first!", title="Cannot open new issue", severity="error")
self.notify("Please select a repository first!", title="Cannot open new pull request", severity="error")
return

self.notify("Coming soon!", title="Not available yet")
self.app.push_screen(NewPullRequestModal())

@property
def pull_requests(self) -> PullRequestsContainer:
Expand Down

0 comments on commit decb5d8

Please sign in to comment.