{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com/issues/1091","repository_url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com","labels_url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com/issues/1091/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com/issues/1091/comments","events_url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com/issues/1091/events","html_url":"https://github.com/travis-ci/docs-travis-ci-com/issues/1091","id":220463540,"number":1091,"title":"What's the meaning of on: branch of GitHub Pages Deployment ?","user":{"login":"danielo515","id":2270425,"avatar_url":"https://avatars1.githubusercontent.com/u/2270425?v=3","gravatar_id":"","url":"https://api.github.com/users/danielo515","html_url":"https://github.com/danielo515","followers_url":"https://api.github.com/users/danielo515/followers","following_url":"https://api.github.com/users/danielo515/following{/other_user}","gists_url":"https://api.github.com/users/danielo515/gists{/gist_id}","starred_url":"https://api.github.com/users/danielo515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielo515/subscriptions","organizations_url":"https://api.github.com/users/danielo515/orgs","repos_url":"https://api.github.com/users/danielo515/repos","events_url":"https://api.github.com/users/danielo515/events{/privacy}","received_events_url":"https://api.github.com/users/danielo515/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-09T10:53:01Z","updated_at":"2017-04-11T13:56:07Z","closed_at":null,"body":"\r\nHello,\r\n\r\nThe documentation about github pages deployment suggest you this minimum configuration\r\n\r\n```yml\r\ndeploy:\r\n  provider: pages\r\n  skip_cleanup: true\r\n  github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard\r\n  on:\r\n    branch: master\r\n```\r\n\r\nHowever, there is no explanation about the meaning of the latest option `on: branch: master`. What is that about? I know it is not the target branch because that is explained below, so, what is it? The branch to monitor for changes? If it is that, how does this interfere with the `branches: only:` configuration?\r\n\r\nI find this quite confusing, and I can't find any reference to it.\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com/issues/comments/293270986","html_url":"https://github.com/travis-ci/docs-travis-ci-com/issues/1091#issuecomment-293270986","issue_url":"https://api.github.com/repos/travis-ci/docs-travis-ci-com/issues/1091","id":293270986,"user":{"login":"danielo515","id":2270425,"avatar_url":"https://avatars1.githubusercontent.com/u/2270425?v=3","gravatar_id":"","url":"https://api.github.com/users/danielo515","html_url":"https://github.com/danielo515","followers_url":"https://api.github.com/users/danielo515/followers","following_url":"https://api.github.com/users/danielo515/following{/other_user}","gists_url":"https://api.github.com/users/danielo515/gists{/gist_id}","starred_url":"https://api.github.com/users/danielo515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielo515/subscriptions","organizations_url":"https://api.github.com/users/danielo515/orgs","repos_url":"https://api.github.com/users/danielo515/repos","events_url":"https://api.github.com/users/danielo515/events{/privacy}","received_events_url":"https://api.github.com/users/danielo515/received_events","type":"User","site_admin":false},"created_at":"2017-04-11T13:56:07Z","updated_at":"2017-04-11T13:56:07Z","body":"Dear @plaindocs ,\r\n\r\nThanks for your answer.\r\nAfter reading the documentation I'm still not sure about the `branch` options.\r\nDoes that mean that the current branch should be same as the specified on the `branch:` option?\r\nFor example, if I run the build script on the master, develop, and integration branches, and I have the `on` option set to `develop` the deployment will only happen **from** the `develop` branch? Not to the develop branch, but FROm the develop branch. Am I right? "}}
{"actor":{"display_login":"danielo515"}}