Created
December 15, 2020 05:10
-
-
Save ChristianMurphy/f7f22714a0448c2d5763b636ff1c8943 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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