{"action":"created","issue":{"url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/issues/4","repository_url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle","labels_url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/issues/4/comments","events_url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/issues/4/events","html_url":"https://github.com/tshegofatso-lab/continuous-integration-circle/pull/4","id":544148042,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU4MzIzNzcy","number":4,"title":"Configure the build","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tshegofatso-lab","id":59167416,"node_id":"MDQ6VXNlcjU5MTY3NDE2","avatar_url":"https://avatars2.githubusercontent.com/u/59167416?v=4","gravatar_id":"","url":"https://api.github.com/users/tshegofatso-lab","html_url":"https://github.com/tshegofatso-lab","followers_url":"https://api.github.com/users/tshegofatso-lab/followers","following_url":"https://api.github.com/users/tshegofatso-lab/following{/other_user}","gists_url":"https://api.github.com/users/tshegofatso-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/tshegofatso-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshegofatso-lab/subscriptions","organizations_url":"https://api.github.com/users/tshegofatso-lab/orgs","repos_url":"https://api.github.com/users/tshegofatso-lab/repos","events_url":"https://api.github.com/users/tshegofatso-lab/events{/privacy}","received_events_url":"https://api.github.com/users/tshegofatso-lab/received_events","type":"User","site_admin":false},"assignees":[{"login":"tshegofatso-lab","id":59167416,"node_id":"MDQ6VXNlcjU5MTY3NDE2","avatar_url":"https://avatars2.githubusercontent.com/u/59167416?v=4","gravatar_id":"","url":"https://api.github.com/users/tshegofatso-lab","html_url":"https://github.com/tshegofatso-lab","followers_url":"https://api.github.com/users/tshegofatso-lab/followers","following_url":"https://api.github.com/users/tshegofatso-lab/following{/other_user}","gists_url":"https://api.github.com/users/tshegofatso-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/tshegofatso-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshegofatso-lab/subscriptions","organizations_url":"https://api.github.com/users/tshegofatso-lab/orgs","repos_url":"https://api.github.com/users/tshegofatso-lab/repos","events_url":"https://api.github.com/users/tshegofatso-lab/events{/privacy}","received_events_url":"https://api.github.com/users/tshegofatso-lab/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2019-12-31T10:08:51Z","updated_at":"2019-12-31T10:13:08Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/pulls/4","html_url":"https://github.com/tshegofatso-lab/continuous-integration-circle/pull/4","diff_url":"https://github.com/tshegofatso-lab/continuous-integration-circle/pull/4.diff","patch_url":"https://github.com/tshegofatso-lab/continuous-integration-circle/pull/4.patch"},"body":"In this pull request, I've added some tests to help ensure the project builds. This is one example of how you can customize specific validations to run when your CI starts a build. I need you to add a **run action** to your `.circleci/config.yml` file.\n\nIn this example, we'll build the project with `bundle exec jekyll build`. Depending on the programming language and project, you might use a different command, like `yarn run android` or `nvm package`. You can find more specific information on CircleCI configuration [in their documentation](https://circleci.com/docs/2.0/tutorials/).\n\n## Step 5: Add validation\n\nBuild your site.\n\n### :keyboard: Activity: Add some automated validation to your project\n\n1. In this pull request, add the following code to the placeholder in your `.circleci/config.yml` file. **You can do this by editing the file from the _Files changed_ tab, or by scrolling down and accepting the suggested change.**\n\n```yaml\n bundle exec jekyll build\n```\n\n2. Commit your change.\n\n<hr>\n<h3 align=\"center\">I'll respond below with your next step.</h3>\n\n> _Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps._\n"},"comment":{"url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/issues/comments/569902958","html_url":"https://github.com/tshegofatso-lab/continuous-integration-circle/pull/4#issuecomment-569902958","issue_url":"https://api.github.com/repos/tshegofatso-lab/continuous-integration-circle/issues/4","id":569902958,"node_id":"MDEyOklzc3VlQ29tbWVudDU2OTkwMjk1OA==","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-12-31T10:13:08Z","updated_at":"2019-12-31T10:13:08Z","author_association":"NONE","body":"Now that you've added some validation tests to your CI build, it's time to turn on branch protection. Protected branches ensure that collaborators cannot make irrevocable changes to specific branches. This also allows you to enable CI required status checks to pass before merging.\n\n<details>\n    <summary>Why use protected branches?</summary>\n    Protected branches allow contributors to create branches and pull requests in your repository, while making sure those changes are throughly vetted before merging. When a repository employs a continuous integration service like CircleCI, branches can be protected based on their build statuses so the review process can be largely <i>automated</i>, giving contributors self-efficacy. Project maintainers also benefit by focusing their attention on gray areas and processes that can't be easily automated.  \n</details>\n\n![screen shot 2018-12-13 at 3 32 04 pm](https://user-images.githubusercontent.com/6351798/49971616-4baa7780-feec-11e8-950e-cce1985531d9.png)\n\nI've changed the protections for the `master` branch throughout the course so far to help keep you on track. Now, it's time for you to make some changes.\n\n## Step 6: Protect the `master` branch\n\n### :keyboard: Activity: Protect a branch based on the CI build status\n\n1. Navigate to the [**Branches** section of the Settings](https://github.com/tshegofatso-lab/continuous-integration-circle/settings/branches) for this repository.\n1. Under **Branch protection rules**, click the **Edit** button next to `master`.\n1. Select **Require status checks to pass before merging**.\n1. Uncheck **Require branches to be up to date before merging**.\n    - _This is automatically checked, and can be a good idea. For this project, we'll uncheck it to reduce the extra commits and builds._\n1. Select the **ci/circleci:build** option.\n1. Click **Save changes**.\n1. Return to your pull request and [**Approve the pull request**](https://github.com/tshegofatso-lab/continuous-integration-circle/pull/4/files#submit-review).\n\n<hr>\n<h3 align=\"center\">I'll respond below with your next step.</h3>\n"}}
{"actor":{"display_login":"github-learning-lab"}}