{"action":"opened","number":204,"pull_request":{"url":"https://api.github.com/repos/openfun/arnold/pulls/204","id":238338794,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4MzM4Nzk0","html_url":"https://github.com/openfun/arnold/pull/204","diff_url":"https://github.com/openfun/arnold/pull/204.diff","patch_url":"https://github.com/openfun/arnold/pull/204.patch","issue_url":"https://api.github.com/repos/openfun/arnold/issues/204","number":204,"state":"open","locked":false,"title":"introduce modularity in our playbooks","user":{"login":"lunika","id":767834,"node_id":"MDQ6VXNlcjc2NzgzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767834?v=4","gravatar_id":"","url":"https://api.github.com/users/lunika","html_url":"https://github.com/lunika","followers_url":"https://api.github.com/users/lunika/followers","following_url":"https://api.github.com/users/lunika/following{/other_user}","gists_url":"https://api.github.com/users/lunika/gists{/gist_id}","starred_url":"https://api.github.com/users/lunika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunika/subscriptions","organizations_url":"https://api.github.com/users/lunika/orgs","repos_url":"https://api.github.com/users/lunika/repos","events_url":"https://api.github.com/users/lunika/events{/privacy}","received_events_url":"https://api.github.com/users/lunika/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n\r\nIn #175 we want to execute a task depending on a context and specific to an app. So we need to be able to execute tasks that are \"application centric\".\r\n\r\n## Proposal\r\n\r\nCreate a \"hook\" system. Tasks can live in the application folder and will be executed if they follow a pattern we choose. You should create a `hooks` folder and then in it files with the name of the hook you want to implement. For example for the hook `vaults_created` you should create this file for the forum application: `apps/forum/hooks/vaults_created.yml`\r\n\r\n- [x] create tasks to execute hooks\r\n- [x] example how to use them\r\n\r\n","created_at":"2018-12-13T10:32:42Z","updated_at":"2018-12-13T10:32:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"lunika","id":767834,"node_id":"MDQ6VXNlcjc2NzgzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767834?v=4","gravatar_id":"","url":"https://api.github.com/users/lunika","html_url":"https://github.com/lunika","followers_url":"https://api.github.com/users/lunika/followers","following_url":"https://api.github.com/users/lunika/following{/other_user}","gists_url":"https://api.github.com/users/lunika/gists{/gist_id}","starred_url":"https://api.github.com/users/lunika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunika/subscriptions","organizations_url":"https://api.github.com/users/lunika/orgs","repos_url":"https://api.github.com/users/lunika/repos","events_url":"https://api.github.com/users/lunika/events{/privacy}","received_events_url":"https://api.github.com/users/lunika/received_events","type":"User","site_admin":false},"assignees":[{"login":"lunika","id":767834,"node_id":"MDQ6VXNlcjc2NzgzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767834?v=4","gravatar_id":"","url":"https://api.github.com/users/lunika","html_url":"https://github.com/lunika","followers_url":"https://api.github.com/users/lunika/followers","following_url":"https://api.github.com/users/lunika/following{/other_user}","gists_url":"https://api.github.com/users/lunika/gists{/gist_id}","starred_url":"https://api.github.com/users/lunika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunika/subscriptions","organizations_url":"https://api.github.com/users/lunika/orgs","repos_url":"https://api.github.com/users/lunika/repos","events_url":"https://api.github.com/users/lunika/events{/privacy}","received_events_url":"https://api.github.com/users/lunika/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":977109515,"node_id":"MDU6TGFiZWw5NzcxMDk1MTU=","url":"https://api.github.com/repos/openfun/arnold/labels/WIP","name":"WIP","color":"ED7F10","default":false},{"id":942035861,"node_id":"MDU6TGFiZWw5NDIwMzU4NjE=","url":"https://api.github.com/repos/openfun/arnold/labels/feature","name":"feature","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openfun/arnold/pulls/204/commits","review_comments_url":"https://api.github.com/repos/openfun/arnold/pulls/204/comments","review_comment_url":"https://api.github.com/repos/openfun/arnold/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfun/arnold/issues/204/comments","statuses_url":"https://api.github.com/repos/openfun/arnold/statuses/09d09039a9abfb71999fa56647d26e0f553807a3","head":{"label":"openfun:forum-api_key","ref":"forum-api_key","sha":"09d09039a9abfb71999fa56647d26e0f553807a3","user":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"repo":{"id":133722058,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MjIwNTg=","name":"arnold","full_name":"openfun/arnold","private":false,"owner":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openfun/arnold","description":":octopus: A FUN way to deploy dockerized applications to OpenShift with Ansible","fork":false,"url":"https://api.github.com/repos/openfun/arnold","forks_url":"https://api.github.com/repos/openfun/arnold/forks","keys_url":"https://api.github.com/repos/openfun/arnold/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfun/arnold/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfun/arnold/teams","hooks_url":"https://api.github.com/repos/openfun/arnold/hooks","issue_events_url":"https://api.github.com/repos/openfun/arnold/issues/events{/number}","events_url":"https://api.github.com/repos/openfun/arnold/events","assignees_url":"https://api.github.com/repos/openfun/arnold/assignees{/user}","branches_url":"https://api.github.com/repos/openfun/arnold/branches{/branch}","tags_url":"https://api.github.com/repos/openfun/arnold/tags","blobs_url":"https://api.github.com/repos/openfun/arnold/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfun/arnold/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfun/arnold/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfun/arnold/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfun/arnold/statuses/{sha}","languages_url":"https://api.github.com/repos/openfun/arnold/languages","stargazers_url":"https://api.github.com/repos/openfun/arnold/stargazers","contributors_url":"https://api.github.com/repos/openfun/arnold/contributors","subscribers_url":"https://api.github.com/repos/openfun/arnold/subscribers","subscription_url":"https://api.github.com/repos/openfun/arnold/subscription","commits_url":"https://api.github.com/repos/openfun/arnold/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfun/arnold/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfun/arnold/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfun/arnold/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfun/arnold/contents/{+path}","compare_url":"https://api.github.com/repos/openfun/arnold/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfun/arnold/merges","archive_url":"https://api.github.com/repos/openfun/arnold/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfun/arnold/downloads","issues_url":"https://api.github.com/repos/openfun/arnold/issues{/number}","pulls_url":"https://api.github.com/repos/openfun/arnold/pulls{/number}","milestones_url":"https://api.github.com/repos/openfun/arnold/milestones{/number}","notifications_url":"https://api.github.com/repos/openfun/arnold/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfun/arnold/labels{/name}","releases_url":"https://api.github.com/repos/openfun/arnold/releases{/id}","deployments_url":"https://api.github.com/repos/openfun/arnold/deployments","created_at":"2018-05-16T20:56:15Z","updated_at":"2018-12-13T09:01:56Z","pushed_at":"2018-12-13T10:22:08Z","git_url":"git://github.com/openfun/arnold.git","ssh_url":"git@github.com:openfun/arnold.git","clone_url":"https://github.com/openfun/arnold.git","svn_url":"https://github.com/openfun/arnold","homepage":"","size":754,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":43,"watchers":14,"default_branch":"master"}},"base":{"label":"openfun:master","ref":"master","sha":"588cc1cebda25d1188b4104924d1c14bde6bc746","user":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"repo":{"id":133722058,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MjIwNTg=","name":"arnold","full_name":"openfun/arnold","private":false,"owner":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openfun/arnold","description":":octopus: A FUN way to deploy dockerized applications to OpenShift with Ansible","fork":false,"url":"https://api.github.com/repos/openfun/arnold","forks_url":"https://api.github.com/repos/openfun/arnold/forks","keys_url":"https://api.github.com/repos/openfun/arnold/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfun/arnold/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfun/arnold/teams","hooks_url":"https://api.github.com/repos/openfun/arnold/hooks","issue_events_url":"https://api.github.com/repos/openfun/arnold/issues/events{/number}","events_url":"https://api.github.com/repos/openfun/arnold/events","assignees_url":"https://api.github.com/repos/openfun/arnold/assignees{/user}","branches_url":"https://api.github.com/repos/openfun/arnold/branches{/branch}","tags_url":"https://api.github.com/repos/openfun/arnold/tags","blobs_url":"https://api.github.com/repos/openfun/arnold/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfun/arnold/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfun/arnold/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfun/arnold/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfun/arnold/statuses/{sha}","languages_url":"https://api.github.com/repos/openfun/arnold/languages","stargazers_url":"https://api.github.com/repos/openfun/arnold/stargazers","contributors_url":"https://api.github.com/repos/openfun/arnold/contributors","subscribers_url":"https://api.github.com/repos/openfun/arnold/subscribers","subscription_url":"https://api.github.com/repos/openfun/arnold/subscription","commits_url":"https://api.github.com/repos/openfun/arnold/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfun/arnold/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfun/arnold/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfun/arnold/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfun/arnold/contents/{+path}","compare_url":"https://api.github.com/repos/openfun/arnold/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfun/arnold/merges","archive_url":"https://api.github.com/repos/openfun/arnold/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfun/arnold/downloads","issues_url":"https://api.github.com/repos/openfun/arnold/issues{/number}","pulls_url":"https://api.github.com/repos/openfun/arnold/pulls{/number}","milestones_url":"https://api.github.com/repos/openfun/arnold/milestones{/number}","notifications_url":"https://api.github.com/repos/openfun/arnold/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfun/arnold/labels{/name}","releases_url":"https://api.github.com/repos/openfun/arnold/releases{/id}","deployments_url":"https://api.github.com/repos/openfun/arnold/deployments","created_at":"2018-05-16T20:56:15Z","updated_at":"2018-12-13T09:01:56Z","pushed_at":"2018-12-13T10:22:08Z","git_url":"git://github.com/openfun/arnold.git","ssh_url":"git@github.com:openfun/arnold.git","clone_url":"https://github.com/openfun/arnold.git","svn_url":"https://github.com/openfun/arnold","homepage":"","size":754,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":43,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfun/arnold/pulls/204"},"html":{"href":"https://github.com/openfun/arnold/pull/204"},"issue":{"href":"https://api.github.com/repos/openfun/arnold/issues/204"},"comments":{"href":"https://api.github.com/repos/openfun/arnold/issues/204/comments"},"review_comments":{"href":"https://api.github.com/repos/openfun/arnold/pulls/204/comments"},"review_comment":{"href":"https://api.github.com/repos/openfun/arnold/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfun/arnold/pulls/204/commits"},"statuses":{"href":"https://api.github.com/repos/openfun/arnold/statuses/09d09039a9abfb71999fa56647d26e0f553807a3"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":35,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"lunika"}}