Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ petgraph = "0.6"
regex = "1"
git2 = { version = "0.18", default-features = false }
dialoguer = "0.11"
dirs = "5"
clap = "2.34"
console = "0.15"
dotenvy = "0.15"
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pub mod graph;
pub mod land;
pub mod markdown;
pub mod persist;
pub mod status;
pub mod tree;
pub mod util;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
source: src/status.rs
expression: output
---
* feature-2 (current) #124 - Add new feature
| [Y Y Y Y]
|
o feature-1 #123 - Setup base
| [Y Y Y Y]
|
o main
30 changes: 30 additions & 0 deletions src/snapshots/gh_stack__status__tests__snapshot_status_json.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
source: src/status.rs
expression: output
---
{
"stack": [
{
"branch": "feature-1",
"pr_number": 123,
"title": "Add feature",
"is_current": true,
"is_draft": false,
"is_trunk": false,
"status": {
"ci": "passed",
"approved": "passed",
"mergeable": "passed",
"stack_clear": "passed"
},
"updated_at": "2024-01-15T10:30:00Z",
"commits": [
{
"sha": "abc1234",
"message": "Add widget"
}
]
}
],
"trunk": "main"
}
11 changes: 11 additions & 0 deletions src/snapshots/gh_stack__status__tests__snapshot_status_mixed.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
source: src/status.rs
expression: output
---
* feature-2 (current) #124 - Add new feature
| [? N Y N]
|
o feature-1 #123 - Setup base
| [Y Y N Y]
|
o main
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
source: src/status.rs
expression: output
---
* feature-2 (current) #124 - Add new feature
|
o feature-1 #123 - Setup base
|
o main
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: src/status.rs
expression: output
---
o feature-1 #123 - Single PR
| [Y Y Y Y]
|
o main
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: src/status.rs
expression: output
---
◉ feature-1 (current) #123 - Add feature
│ [✓ ✗ ⏳ ─]
◯ main
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
source: src/status.rs
expression: output
---
* feature-1 (current) #123 - Add feature
| [Y Y Y Y]
|
| abc1234 - Add widget component
| def5678 - Update styles
| + 2 more
|
o main
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
source: src/status.rs
expression: output
---
* wip-feature (current) #125 - Work in progress (draft)
| [? N Y N]
|
o feature-1 #123 - Setup base
| [Y Y Y Y]
|
o main
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
source: src/status.rs
expression: output
---
o feature-1 #123 - Add feature
| [Y Y Y Y]
|
o main

Status: [CI | Approved | Mergeable | Stack]
Y=pass N=fail ?=pending -=n/a
Loading