mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 18:12:48 +03:00
Fetch base branch after merging pull request
This commit is contained in:
parent
ecd37a38a8
commit
d3aca530fa
@ -55,7 +55,10 @@ export class GitHubService {
|
||||
|
||||
private enabled = false;
|
||||
|
||||
constructor(userService: UserService, baseBranchService: BaseBranchService) {
|
||||
constructor(
|
||||
userService: UserService,
|
||||
private baseBranchService: BaseBranchService
|
||||
) {
|
||||
// A few things will cause the baseBranch to update, so we filter for distinct
|
||||
// changes to the remoteUrl.
|
||||
const distinctUrl$ = baseBranchService.base$.pipe(distinct((ctx) => ctx?.remoteUrl));
|
||||
@ -286,6 +289,7 @@ export class GitHubService {
|
||||
pull_number: pullNumber,
|
||||
merge_method: method
|
||||
});
|
||||
await this.baseBranchService.fetchFromTarget();
|
||||
} finally {
|
||||
this.reload();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user