{"action":"created","comment":{"url":"https://api.github.com/repos/Enflick/gohsm/pulls/comments/241581875","pull_request_review_id":184894481,"id":241581875,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTU4MTg3NQ==","diff_hunk":"@@ -0,0 +1,72 @@\n+package states\n+\n+import (\n+\t\"fmt\"\n+\t\"github.com/Enflick/gohsm\"\n+\t\"go.uber.org/zap\"\n+)\n+\n+// StateA represents State A","path":"example/simple/states/state_d.go","position":null,"original_position":9,"commit_id":"ddac48b5c5e67f4fc7c1b4b0d5d47fcac19ba6c5","original_commit_id":"a8fe64d8b991b5e9254d426325bb873be77a0561","user":{"login":"davegiannini","id":36213894,"node_id":"MDQ6VXNlcjM2MjEzODk0","avatar_url":"https://avatars1.githubusercontent.com/u/36213894?v=4","gravatar_id":"","url":"https://api.github.com/users/davegiannini","html_url":"https://github.com/davegiannini","followers_url":"https://api.github.com/users/davegiannini/followers","following_url":"https://api.github.com/users/davegiannini/following{/other_user}","gists_url":"https://api.github.com/users/davegiannini/gists{/gist_id}","starred_url":"https://api.github.com/users/davegiannini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davegiannini/subscriptions","organizations_url":"https://api.github.com/users/davegiannini/orgs","repos_url":"https://api.github.com/users/davegiannini/repos","events_url":"https://api.github.com/users/davegiannini/events{/privacy}","received_events_url":"https://api.github.com/users/davegiannini/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2018-12-13T22:17:03Z","updated_at":"2018-12-13T22:17:04Z","html_url":"https://github.com/Enflick/gohsm/pull/6#discussion_r241581875","pull_request_url":"https://api.github.com/repos/Enflick/gohsm/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Enflick/gohsm/pulls/comments/241581875"},"html":{"href":"https://github.com/Enflick/gohsm/pull/6#discussion_r241581875"},"pull_request":{"href":"https://api.github.com/repos/Enflick/gohsm/pulls/6"}},"in_reply_to_id":241474281},"pull_request":{"url":"https://api.github.com/repos/Enflick/gohsm/pulls/6","id":235203602,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MjAzNjAy","html_url":"https://github.com/Enflick/gohsm/pull/6","diff_url":"https://github.com/Enflick/gohsm/pull/6.diff","patch_url":"https://github.com/Enflick/gohsm/pull/6.patch","issue_url":"https://api.github.com/repos/Enflick/gohsm/issues/6","number":6,"state":"open","locked":false,"title":"Changed from static state/transition creation to dynamic","user":{"login":"davegiannini","id":36213894,"node_id":"MDQ6VXNlcjM2MjEzODk0","avatar_url":"https://avatars1.githubusercontent.com/u/36213894?v=4","gravatar_id":"","url":"https://api.github.com/users/davegiannini","html_url":"https://github.com/davegiannini","followers_url":"https://api.github.com/users/davegiannini/followers","following_url":"https://api.github.com/users/davegiannini/following{/other_user}","gists_url":"https://api.github.com/users/davegiannini/gists{/gist_id}","starred_url":"https://api.github.com/users/davegiannini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davegiannini/subscriptions","organizations_url":"https://api.github.com/users/davegiannini/orgs","repos_url":"https://api.github.com/users/davegiannini/repos","events_url":"https://api.github.com/users/davegiannini/events{/privacy}","received_events_url":"https://api.github.com/users/davegiannini/received_events","type":"User","site_admin":false},"body":"See [Go State Machine Framework](https://confluence.enflick.com/x/9AIgAw) for the object model associated with these code changes.  Here's what changed:\r\n\r\n1. Updated framework to match above design\r\n1. States and transitions are dynamically created at run-time so that external conditions can be evaluated when deciding on a next state\r\n1. Re-wrote samek example to use updated framework\r\n1. Re-wrote simple example to use updated framework","created_at":"2018-12-01T16:46:52Z","updated_at":"2018-12-13T22:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17866b51c6a5e0a205196838414a612b0d17e12f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Enflick/gohsm/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Enflick/gohsm/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Enflick/gohsm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Enflick/gohsm/issues/6/comments","statuses_url":"https://api.github.com/repos/Enflick/gohsm/statuses/ddac48b5c5e67f4fc7c1b4b0d5d47fcac19ba6c5","head":{"label":"Enflick:CAPI-495-OnEnter","ref":"CAPI-495-OnEnter","sha":"ddac48b5c5e67f4fc7c1b4b0d5d47fcac19ba6c5","user":{"login":"Enflick","id":6172929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNzI5Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6172929?v=4","gravatar_id":"","url":"https://api.github.com/users/Enflick","html_url":"https://github.com/Enflick","followers_url":"https://api.github.com/users/Enflick/followers","following_url":"https://api.github.com/users/Enflick/following{/other_user}","gists_url":"https://api.github.com/users/Enflick/gists{/gist_id}","starred_url":"https://api.github.com/users/Enflick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enflick/subscriptions","organizations_url":"https://api.github.com/users/Enflick/orgs","repos_url":"https://api.github.com/users/Enflick/repos","events_url":"https://api.github.com/users/Enflick/events{/privacy}","received_events_url":"https://api.github.com/users/Enflick/received_events","type":"Organization","site_admin":false},"repo":{"id":151616266,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE2MTYyNjY=","name":"gohsm","full_name":"Enflick/gohsm","private":false,"owner":{"login":"Enflick","id":6172929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNzI5Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6172929?v=4","gravatar_id":"","url":"https://api.github.com/users/Enflick","html_url":"https://github.com/Enflick","followers_url":"https://api.github.com/users/Enflick/followers","following_url":"https://api.github.com/users/Enflick/following{/other_user}","gists_url":"https://api.github.com/users/Enflick/gists{/gist_id}","starred_url":"https://api.github.com/users/Enflick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enflick/subscriptions","organizations_url":"https://api.github.com/users/Enflick/orgs","repos_url":"https://api.github.com/users/Enflick/repos","events_url":"https://api.github.com/users/Enflick/events{/privacy}","received_events_url":"https://api.github.com/users/Enflick/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Enflick/gohsm","description":"Golang Hierarchical State Machine implementation","fork":false,"url":"https://api.github.com/repos/Enflick/gohsm","forks_url":"https://api.github.com/repos/Enflick/gohsm/forks","keys_url":"https://api.github.com/repos/Enflick/gohsm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Enflick/gohsm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Enflick/gohsm/teams","hooks_url":"https://api.github.com/repos/Enflick/gohsm/hooks","issue_events_url":"https://api.github.com/repos/Enflick/gohsm/issues/events{/number}","events_url":"https://api.github.com/repos/Enflick/gohsm/events","assignees_url":"https://api.github.com/repos/Enflick/gohsm/assignees{/user}","branches_url":"https://api.github.com/repos/Enflick/gohsm/branches{/branch}","tags_url":"https://api.github.com/repos/Enflick/gohsm/tags","blobs_url":"https://api.github.com/repos/Enflick/gohsm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Enflick/gohsm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Enflick/gohsm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Enflick/gohsm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Enflick/gohsm/statuses/{sha}","languages_url":"https://api.github.com/repos/Enflick/gohsm/languages","stargazers_url":"https://api.github.com/repos/Enflick/gohsm/stargazers","contributors_url":"https://api.github.com/repos/Enflick/gohsm/contributors","subscribers_url":"https://api.github.com/repos/Enflick/gohsm/subscribers","subscription_url":"https://api.github.com/repos/Enflick/gohsm/subscription","commits_url":"https://api.github.com/repos/Enflick/gohsm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Enflick/gohsm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Enflick/gohsm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Enflick/gohsm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Enflick/gohsm/contents/{+path}","compare_url":"https://api.github.com/repos/Enflick/gohsm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Enflick/gohsm/merges","archive_url":"https://api.github.com/repos/Enflick/gohsm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Enflick/gohsm/downloads","issues_url":"https://api.github.com/repos/Enflick/gohsm/issues{/number}","pulls_url":"https://api.github.com/repos/Enflick/gohsm/pulls{/number}","milestones_url":"https://api.github.com/repos/Enflick/gohsm/milestones{/number}","notifications_url":"https://api.github.com/repos/Enflick/gohsm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Enflick/gohsm/labels{/name}","releases_url":"https://api.github.com/repos/Enflick/gohsm/releases{/id}","deployments_url":"https://api.github.com/repos/Enflick/gohsm/deployments","created_at":"2018-10-04T18:15:51Z","updated_at":"2018-11-28T22:21:04Z","pushed_at":"2018-12-13T22:15:36Z","git_url":"git://github.com/Enflick/gohsm.git","ssh_url":"git@github.com:Enflick/gohsm.git","clone_url":"https://github.com/Enflick/gohsm.git","svn_url":"https://github.com/Enflick/gohsm","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Enflick:master","ref":"master","sha":"c4e46af82f3760b88b5d3c14552eb0b448993ecd","user":{"login":"Enflick","id":6172929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNzI5Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6172929?v=4","gravatar_id":"","url":"https://api.github.com/users/Enflick","html_url":"https://github.com/Enflick","followers_url":"https://api.github.com/users/Enflick/followers","following_url":"https://api.github.com/users/Enflick/following{/other_user}","gists_url":"https://api.github.com/users/Enflick/gists{/gist_id}","starred_url":"https://api.github.com/users/Enflick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enflick/subscriptions","organizations_url":"https://api.github.com/users/Enflick/orgs","repos_url":"https://api.github.com/users/Enflick/repos","events_url":"https://api.github.com/users/Enflick/events{/privacy}","received_events_url":"https://api.github.com/users/Enflick/received_events","type":"Organization","site_admin":false},"repo":{"id":151616266,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE2MTYyNjY=","name":"gohsm","full_name":"Enflick/gohsm","private":false,"owner":{"login":"Enflick","id":6172929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNzI5Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6172929?v=4","gravatar_id":"","url":"https://api.github.com/users/Enflick","html_url":"https://github.com/Enflick","followers_url":"https://api.github.com/users/Enflick/followers","following_url":"https://api.github.com/users/Enflick/following{/other_user}","gists_url":"https://api.github.com/users/Enflick/gists{/gist_id}","starred_url":"https://api.github.com/users/Enflick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enflick/subscriptions","organizations_url":"https://api.github.com/users/Enflick/orgs","repos_url":"https://api.github.com/users/Enflick/repos","events_url":"https://api.github.com/users/Enflick/events{/privacy}","received_events_url":"https://api.github.com/users/Enflick/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Enflick/gohsm","description":"Golang Hierarchical State Machine implementation","fork":false,"url":"https://api.github.com/repos/Enflick/gohsm","forks_url":"https://api.github.com/repos/Enflick/gohsm/forks","keys_url":"https://api.github.com/repos/Enflick/gohsm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Enflick/gohsm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Enflick/gohsm/teams","hooks_url":"https://api.github.com/repos/Enflick/gohsm/hooks","issue_events_url":"https://api.github.com/repos/Enflick/gohsm/issues/events{/number}","events_url":"https://api.github.com/repos/Enflick/gohsm/events","assignees_url":"https://api.github.com/repos/Enflick/gohsm/assignees{/user}","branches_url":"https://api.github.com/repos/Enflick/gohsm/branches{/branch}","tags_url":"https://api.github.com/repos/Enflick/gohsm/tags","blobs_url":"https://api.github.com/repos/Enflick/gohsm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Enflick/gohsm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Enflick/gohsm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Enflick/gohsm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Enflick/gohsm/statuses/{sha}","languages_url":"https://api.github.com/repos/Enflick/gohsm/languages","stargazers_url":"https://api.github.com/repos/Enflick/gohsm/stargazers","contributors_url":"https://api.github.com/repos/Enflick/gohsm/contributors","subscribers_url":"https://api.github.com/repos/Enflick/gohsm/subscribers","subscription_url":"https://api.github.com/repos/Enflick/gohsm/subscription","commits_url":"https://api.github.com/repos/Enflick/gohsm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Enflick/gohsm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Enflick/gohsm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Enflick/gohsm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Enflick/gohsm/contents/{+path}","compare_url":"https://api.github.com/repos/Enflick/gohsm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Enflick/gohsm/merges","archive_url":"https://api.github.com/repos/Enflick/gohsm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Enflick/gohsm/downloads","issues_url":"https://api.github.com/repos/Enflick/gohsm/issues{/number}","pulls_url":"https://api.github.com/repos/Enflick/gohsm/pulls{/number}","milestones_url":"https://api.github.com/repos/Enflick/gohsm/milestones{/number}","notifications_url":"https://api.github.com/repos/Enflick/gohsm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Enflick/gohsm/labels{/name}","releases_url":"https://api.github.com/repos/Enflick/gohsm/releases{/id}","deployments_url":"https://api.github.com/repos/Enflick/gohsm/deployments","created_at":"2018-10-04T18:15:51Z","updated_at":"2018-11-28T22:21:04Z","pushed_at":"2018-12-13T22:15:36Z","git_url":"git://github.com/Enflick/gohsm.git","ssh_url":"git@github.com:Enflick/gohsm.git","clone_url":"https://github.com/Enflick/gohsm.git","svn_url":"https://github.com/Enflick/gohsm","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Enflick/gohsm/pulls/6"},"html":{"href":"https://github.com/Enflick/gohsm/pull/6"},"issue":{"href":"https://api.github.com/repos/Enflick/gohsm/issues/6"},"comments":{"href":"https://api.github.com/repos/Enflick/gohsm/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Enflick/gohsm/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Enflick/gohsm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Enflick/gohsm/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Enflick/gohsm/statuses/ddac48b5c5e67f4fc7c1b4b0d5d47fcac19ba6c5"}},"author_association":"NONE"}}
{"actor":{"display_login":"davegiannini"}}