payload: {"action":"created","comment":{"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/comments/364867095","pull_request_review_id":340689898,"id":364867095,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2NDg2NzA5NQ==","diff_hunk":"@@ -0,0 +1,55 @@\n+module ProviderInterface\n+  class ProviderAgreementsController < ProviderInterfaceController\n+    before_action :set_page_name\n+    skip_before_action :check_data_sharing_agreements\n+\n+    def new_data_sharing_agreement\n+      @provider_agreement = GetPendingDataSharingAgreementsForProviderUser.call(provider_user: current_provider_user).first\n+      if @provider_agreement\n+        render_agreement\n+      else\n+        redirect_to action: :show_data_sharing_agreement\n+      end\n+    end\n+\n+    def create_data_sharing_agreement\n+      @provider_agreement = ProviderAgreement.new(provider_agreement_params.merge(provider_user: current_provider_user))\n+      begin\n+        @provider_agreement.save!\n+        redirect_to '/provider'\n+      rescue ActiveRecord::RecordInvalid\n+        render_agreement\n+      end\n+    end\n+\n+  private\n+\n+    def set_page_name\n+      @page_name = 'data_sharing_agreement'\n+    end\n+\n+    def set_declaration\n+      @declaration = \\\n+        if !@provider_agreement.persisted?\n+          \"#{@organisation_name} agrees to comply with the data sharing practices outlined in this agreement\"\n+        else\n+          agreement_date = @provider_agreement.accepted_at.strftime(\"%d %B %Y\")\n+          \"#{@organisation_name} agreed to comply with the data sharing practices outlined in this agreement on #{agreement_date}\"","path":"app/controllers/provider_interface/provider_agreements_controller.rb","position":null,"original_position":37,"commit_id":"278b194b5846a363c7731615d5596dad7464f80b","original_commit_id":"dc4f4f2808f6a8d926fbefe880a2804fd86c9e17","user":{"login":"mnacos","id":107591,"node_id":"MDQ6VXNlcjEwNzU5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/107591?v=4","gravatar_id":"","url":"https://api.github.com/users/mnacos","html_url":"https://github.com/mnacos","followers_url":"https://api.github.com/users/mnacos/followers","following_url":"https://api.github.com/users/mnacos/following{/other_user}","gists_url":"https://api.github.com/users/mnacos/gists{/gist_id}","starred_url":"https://api.github.com/users/mnacos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnacos/subscriptions","organizations_url":"https://api.github.com/users/mnacos/orgs","repos_url":"https://api.github.com/users/mnacos/repos","events_url":"https://api.github.com/users/mnacos/events{/privacy}","received_events_url":"https://api.github.com/users/mnacos/received_events","type":"User","site_admin":false},"body":"yes, we do have a show route, so that we can email it to provider users if they need to see it again","created_at":"2020-01-09T17:26:10Z","updated_at":"2020-01-09T17:26:10Z","html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1028#discussion_r364867095","pull_request_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/comments/364867095"},"html":{"href":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1028#discussion_r364867095"},"pull_request":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028"}},"in_reply_to_id":364696318},"pull_request":{"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028","id":359599843,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU5NTk5ODQz","html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1028","diff_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1028.diff","patch_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1028.patch","issue_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1028","number":1028,"state":"open","locked":false,"title":"Provider user accepts data sharing agreement for provider","user":{"login":"mnacos","id":107591,"node_id":"MDQ6VXNlcjEwNzU5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/107591?v=4","gravatar_id":"","url":"https://api.github.com/users/mnacos","html_url":"https://github.com/mnacos","followers_url":"https://api.github.com/users/mnacos/followers","following_url":"https://api.github.com/users/mnacos/following{/other_user}","gists_url":"https://api.github.com/users/mnacos/gists{/gist_id}","starred_url":"https://api.github.com/users/mnacos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnacos/subscriptions","organizations_url":"https://api.github.com/users/mnacos/orgs","repos_url":"https://api.github.com/users/mnacos/repos","events_url":"https://api.github.com/users/mnacos/events{/privacy}","received_events_url":"https://api.github.com/users/mnacos/received_events","type":"User","site_admin":false},"body":"### Context\r\n\r\nProvider users must be able to sign the data sharing agreement when they first access the platform. This will assist/streamline the onboarding of SCITTs to the service.\r\n\r\nThis new flow in the app will replace the current DocuSign-based manual process. The data sharing agreement will be presented within the app and clicking on a simple checkbox will be all that's needed to accept the agreement. The identity of the person agreeing, as well as the timestamp of the acceptance, will be recorded in the database and exposed in the provider interface.\r\n\r\nRequirements:\r\n\r\n- Each ~~user~~ provider accepts the data sharing agreement only once\r\n- The first user from each `Provider` must select they 'agree to the data sharing agreement'\r\n- No-one linked to a particular provider can access the provider interface until the relevant data sharing agreement has been accepted.\r\n\r\nThe data sharing agreement will be presented to the user as a web page. The organisation name will need to appear in a couple of places in the form and will be automatically populated by the app.\r\n\r\nEven though provider users go through DfE Sign-in, there is a ProviderUser model we can store values against. However, the relationship between `Provider` and `ProviderUser` is many-to-many and acceptance of the data sharing agreement must be enforced at the `Provider` level. For now, we'll assume any association between a `Provider` and and a `ProviderUser` gives this user the the authority to accept the data sharing agreement on the provider's behalf.\r\n\r\n### Changes proposed in this pull request\r\n\r\nWhen a `ProviderUser` logs in, the relevant controller will check if any of their associated providers hasn't accepted the data sharing agreement. If this is the case, the controller will redirect the user to a data sharing agreement flow. Subsequent users for the same provider will not be redirected to this flow, provided the first user has completed the flow.\r\n\r\nThe data sharing agreement flow is triggered with this logic:\r\n\r\n- The current user's list of associated providers is found\r\n- We check if any of these providers have not accepted the data sharing agreement\r\n- We trigger the data sharing agreement flow for the first of these providers\r\n- Once the agreement has been accepted we redirect the user to the data sharing agreement flow for the next provider that requires it or the `provider_interface`.\r\n\r\nIn the database, agreement acceptance will be stored in a new table, `provider_agreements`. The table includes `provider_id`, `provider_user_id`, `agreement_type` and `accepted_at` fields.\r\n\r\nInformation about who has signed the data sharing agreement and when is visible in the support interface.\r\n\r\n### Guidance to review\r\n\r\n#### Provider Interface\r\n\r\nThe provider user in this screen capture has been associated with two providers, none of which have a data sharing agreement in place. Therefore, they need to accept two data sharing agreements before given access to the applications interface.\r\n\r\n![optimised](https://user-images.githubusercontent.com/107591/72064852-bcc98380-32d4-11ea-97e5-65aa0782603b.gif)\r\n\r\n#### Support Interface\r\n\r\nWithout agreement:\r\n![image](https://user-images.githubusercontent.com/107591/72061469-d7e4c500-32cd-11ea-8b50-3ac9512b9200.png)\r\n\r\nWith agreement:\r\n![image](https://user-images.githubusercontent.com/107591/72061481-e16e2d00-32cd-11ea-928f-67951fc84172.png)\r\n\r\n### Link to Trello card\r\n\r\n[Data sharing agreement onto 'Manage'](https://trello.com/c/X6sXsnEm)\r\n","created_at":"2020-01-06T15:52:20Z","updated_at":"2020-01-09T17:26:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a632ce51040336cce8480616cc1932b3e15e9211","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tvararu","id":1650875,"node_id":"MDQ6VXNlcjE2NTA4NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1650875?v=4","gravatar_id":"","url":"https://api.github.com/users/tvararu","html_url":"https://github.com/tvararu","followers_url":"https://api.github.com/users/tvararu/followers","following_url":"https://api.github.com/users/tvararu/following{/other_user}","gists_url":"https://api.github.com/users/tvararu/gists{/gist_id}","starred_url":"https://api.github.com/users/tvararu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvararu/subscriptions","organizations_url":"https://api.github.com/users/tvararu/orgs","repos_url":"https://api.github.com/users/tvararu/repos","events_url":"https://api.github.com/users/tvararu/events{/privacy}","received_events_url":"https://api.github.com/users/tvararu/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028/commits","review_comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028/comments","review_comment_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1028/comments","statuses_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/278b194b5846a363c7731615d5596dad7464f80b","head":{"label":"DFE-Digital:1400-accept-data-sharing-agreement","ref":"1400-accept-data-sharing-agreement","sha":"278b194b5846a363c7731615d5596dad7464f80b","user":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"repo":{"id":167356028,"node_id":"MDEwOlJlcG9zaXRvcnkxNjczNTYwMjg=","name":"apply-for-postgraduate-teacher-training","full_name":"DFE-Digital/apply-for-postgraduate-teacher-training","private":false,"owner":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","description":"A service for applying to teacher training courses. In beta since November 2019.","fork":false,"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training","forks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/forks","keys_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/events","assignees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/merges","archive_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/deployments","created_at":"2019-01-24T11:24:59Z","updated_at":"2020-01-09T15:42:59Z","pushed_at":"2020-01-09T17:16:18Z","git_url":"git://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","ssh_url":"git@github.com:DFE-Digital/apply-for-postgraduate-teacher-training.git","clone_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","svn_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","homepage":"https://www.apply-for-teacher-training.education.gov.uk","size":23891,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":3,"open_issues":5,"watchers":6,"default_branch":"master"}},"base":{"label":"DFE-Digital:master","ref":"master","sha":"1d9d9a5c0fdbac0c08cbac713c9c2e78dd24c637","user":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"repo":{"id":167356028,"node_id":"MDEwOlJlcG9zaXRvcnkxNjczNTYwMjg=","name":"apply-for-postgraduate-teacher-training","full_name":"DFE-Digital/apply-for-postgraduate-teacher-training","private":false,"owner":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","description":"A service for applying to teacher training courses. In beta since November 2019.","fork":false,"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training","forks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/forks","keys_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/events","assignees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/merges","archive_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/deployments","created_at":"2019-01-24T11:24:59Z","updated_at":"2020-01-09T15:42:59Z","pushed_at":"2020-01-09T17:16:18Z","git_url":"git://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","ssh_url":"git@github.com:DFE-Digital/apply-for-postgraduate-teacher-training.git","clone_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","svn_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","homepage":"https://www.apply-for-teacher-training.education.gov.uk","size":23891,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":3,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028"},"html":{"href":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1028"},"issue":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1028"},"comments":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1028/comments"},"review_comments":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028/comments"},"review_comment":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1028/commits"},"statuses":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/278b194b5846a363c7731615d5596dad7464f80b"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"mnacos"}}