Skip to content

Instantly share code, notes, and snippets.

@ChristianMurphy
Created December 15, 2020 05:10
Show Gist options
  • Save ChristianMurphy/f7f22714a0448c2d5763b636ff1c8943 to your computer and use it in GitHub Desktop.
Save ChristianMurphy/f7f22714a0448c2d5763b636ff1c8943 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
Machine(
{
'id': "average-project",
'initial': "triage",
'states': {
'triage': {
'entry': "onlyLabel(open)",
'on': {
'close': 'wontFix',
'label(more-info)': 'needsMoreInfo' ,
'label(ready-to-work-on)': 'readyToWorkOn',
'label(in-progress)': 'inProgress'
},
},
'needsMoreInfo': {
'entry': "onlyLabel(needs-more-info)",
'on': {
'close': 'wontFix',
'label(ready-to-work-on)': 'readyToWorkOn',
'label(in-progress)': 'inProgress'
},
},
'readyToWorkOn': {
'entry': "onlyLabel(ready-to-work-on)",
'on': {
'close': 'wontFix',
'label(in-progress)': 'inProgress'
},
},
'inProgress': {
'entry': 'onlyLabel(in-progress)',
'on': {
'label(ready-to-work-on)': 'readyToWorkOn',
'label(done)': 'done',
'close': 'done',
},
},
'wontFix': {
'entry': 'onlyLabel(wont-fix)',
'on': {
'reopen': 'needsMoreInfo',
'label(needs-more-info)': 'needsMoreInfo',
'label(ready-to-work-on)': 'readyToWorkOn'
},
},
'done': {
'entry': 'onlyLabel(done)',
'on': {
'label(in-progress)': 'inProgress'
}
}
},
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment