Skip to content

Instantly share code, notes, and snippets.

@banyudu
Last active May 31, 2019 05:31
Show Gist options
  • Save banyudu/a49f1b7cf56f3f619c17f3a8378f5fcb to your computer and use it in GitHub Desktop.
Save banyudu/a49f1b7cf56f3f619c17f3a8378f5fcb to your computer and use it in GitHub Desktop.
develop flow
digraph G {
subgraph cluster_master {
label="master"
style = "dotted";
m1_0_0 [label="" style="filled"];
m1_0_1 [label="" style="filled"];
m1_1_0 [label="" style="filled"];
m1_1_1 [label="" style="filled"];
m2_0_0 [label="" style="filled"];
m1_0_0 -> m1_0_1;
m1_0_1 -> m1_1_0;
m1_1_0 -> m1_1_1;
m1_1_1 -> m2_0_0;
}
subgraph cluster_tags {
label="tags";
style = "dotted";
t1_0_0 [label="v1.0.0" style="filled" color="darkgoldenrod1"];
t1_0_1 [label="v1.0.1" style="filled" color="darkgoldenrod1"];
t1_1_0 [label="v1.1.0" style="filled" color="darkgoldenrod1"];
t1_1_1 [label="v1.1.1" style="filled" color="darkgoldenrod1"];
t2_0_0 [label="v2.0.0" style="filled" color="darkgoldenrod1"];
t1_0_0 -> t1_0_1[style="invis"];
t1_0_1 -> t1_1_0[style="invis"];
t1_1_0 -> t1_1_1[style="invis"];
t1_1_1 -> t2_0_0[style="invis"];
}
m1_0_0 -> t1_0_0 [label="major" color="darkgoldenrod1"];
m1_0_1 -> t1_0_1 [label="patch" color="darkgoldenrod1"];
m1_1_0 -> t1_1_0 [label="minor" color="darkgoldenrod1"];
m1_1_1 -> t1_1_1 [label="patch" color="darkgoldenrod1"];
m2_0_0 -> t2_0_0 [label="major" color="darkgoldenrod1"];
deploy [shape="diamond" color="goldenrod"];
k8s [shape="doublecircle" style="filled" color="palegoldenrod"];
deploy -> k8s;
t1_0_0 -> deploy;
t1_0_1 -> deploy;
t1_1_0 -> deploy;
t1_1_1 -> deploy;
t2_0_0 -> deploy;
subgraph cluster_feature {
label = "feature1";
style = "dotted";
edge[color="green"];
f1 [label="" style="filled" color="green"];
f2 [label="" style="filled" color="green"];
f1 -> f2;
}
subgraph cluster_hotfix {
label = "";
style = "invis";
h1 [shape="" label="hotfix" style="filled" color="coral2"];
h2 [shape="" label="hotfix" style="filled" color="coral2"];
h1 -> h2 [style="invis"];
}
subgraph cluster_release {
label = "release/2.0";
style = "dotted";
edge[color="deepskyblue2"]
r1 [label="" style="filled" color="deepskyblue2"];
r2 [label="" style="filled" color="deepskyblue2"];
r3 [label="" style="filled" color="deepskyblue2"];
r4 [label="" style="filled" color="deepskyblue2"];
r1 -> r2;
r2 -> r3;
r3 -> r4;
}
subgraph cluster_feature_in_release {
label = "feature2";
style = "dotted";
edge[color="forestgreen"];
fr1 [label="" style="filled" color="forestgreen"];
fr2 [label="" style="filled" color="forestgreen"];
fr1 -> fr2;
}
m1_0_1 -> f1[color="green"];
f2 -> m1_1_0[color="green"];
m1_0_0 -> h1[color="coral2"];
h1 -> m1_0_1[color="coral2"];
m1_0_0 -> r1[color="deepskyblue2"];
r4 -> m2_0_0[color="deepskyblue2"];
m1_1_0 -> h2[color="coral2"];
h2 -> m1_1_1[color="coral2"];
r2 -> fr1[color="forestgreen"];
fr2 -> r3[color="forestgreen"];
// virtual arrows(control layouts)
h1 -> f1[style="invis"]
h2 -> f2[style="invis"]
f1 -> r1[style="invis"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment