Skip to content

Commit

Permalink
fix merge state (conwnet#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfsilver authored Mar 27, 2024
1 parent 984392b commit 90c7fb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/github1s/src/adapters/github1s/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getPullState = (pull: { state: string; merged_at: string | null }): CodeRe
return CodeReviewState.Merged;
}
// current pull is closed
return CodeReviewState.Merged;
return CodeReviewState.Closed;
};

const sourcegraphDataSource = SourcegraphDataSource.getInstance('github');
Expand Down
2 changes: 1 addition & 1 deletion extensions/github1s/src/adapters/gitlab1s/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const getMergeRequestState = (mergeRequest: { state: string; merged_at: string |
return CodeReviewState.Merged;
}
// current merge is closed
return CodeReviewState.Merged;
return CodeReviewState.Closed;
};

const resolveComputeAge = (timestamps: number[], ageLimit = 10) => {
Expand Down

0 comments on commit 90c7fb4

Please sign in to comment.