Skip to content

Instantly share code, notes, and snippets.

@Jabher
Created October 8, 2019 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jabher/0404197a96b2c0f3b818e04d2f93ace0 to your computer and use it in GitHub Desktop.
Save Jabher/0404197a96b2c0f3b818e04d2f93ace0 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
Machine({
id: 'task',
initial: 'открыт',
states: {
'открыт': {
on: {
ST_IN_WORK: 'в работе',
BB_COMMIT: 'в работе',
BB_PR_CHANGE: 'ревью'
}
},
'в работе': {
on: {
BB_PR_CREATED: 'ревью'
}
},
ревью: {
on: {
BB_PR_CLOSED: 'в работе',
BB_REVIEWED: 'в тестирование'
}
},
'в тестирование': {
on: {
BB_PR_CHANGE: 'ревью',
ST_TESTED: 'протестировано',
ST_NEED_WORK: 'нужны доработки'
}
},
'протестировано': {
on: {
BB_PR_CHANGE: 'ревью',
BB_MERGED: 'вмерджено'
}
},
'нужны доработки': {
on: {
BB_COMMIT: 'в работе',
BB_PR_CHANGE: 'ревью'
}
},
вмерджено: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment