We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dacd1b commit 35b7c99Copy full SHA for 35b7c99
routers/repo/branch.go
@@ -28,6 +28,7 @@ type Branch struct {
28
Commit *git.Commit
29
IsProtected bool
30
IsDeleted bool
31
+ IsIncluded bool
32
DeletedBranch *models.DeletedBranch
33
CommitsAhead int
34
CommitsBehind int
@@ -203,10 +204,13 @@ func loadBranches(ctx *context.Context) []*Branch {
203
204
}
205
206
207
+ isIncluded := divergence.Ahead == 0 && ctx.Repo.Repository.DefaultBranch != branchName
208
+
209
branches[i] = &Branch{
210
Name: branchName,
211
Commit: commit,
212
IsProtected: isProtected,
213
+ IsIncluded: isIncluded,
214
CommitsAhead: divergence.Ahead,
215
CommitsBehind: divergence.Behind,
216
LatestPullRequest: pr,
0 commit comments