GitHub PullRequestEvent at 2014-12-08 20:27:00
Repository: activeadmin
Actor: yaychris
Payload: {"action":"opened","number":3684,"pull_request":{"url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3684","id":25694224,"html_url":"https://github.com/activeadmin/activeadmin/pull/3684","diff_url":"https://github.com/activeadmin/activeadmin/pull/3684.diff","patch_url":"https://github.com/activeadmin/activeadmin/pull/3684.patch","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3684","number":3684,"state":"open","locked":false,"title":"Add has_many input config option for setting the start index","user":{"login":"yaychris","id":13268,"avatar_url":"https://avatars.githubusercontent.com/u/13268?v=3","gravatar_id":"","url":"https://api.github.com/users/yaychris","html_url":"https://github.com/yaychris","followers_url":"https://api.github.com/users/yaychris/followers","following_url":"https://api.github.com/users/yaychris/following{/other_user}","gists_url":"https://api.github.com/users/yaychris/gists{/gist_id}","starred_url":"https://api.github.com/users/yaychris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaychris/subscriptions","organizations_url":"https://api.github.com/users/yaychris/orgs","repos_url":"https://api.github.com/users/yaychris/repos","events_url":"https://api.github.com/users/yaychris/events{/privacy}","received_events_url":"https://api.github.com/users/yaychris/received_events","type":"User","site_admin":false},"body":"This PR addresses #3680 by adding a `sortable_start` option to set the start index in a `has_many` input. If the option isn't provided, it defaults to 0 to preserve the existing behavior.\r\n\r\nThe syntax looks like this:\r\n\r\n```ruby\r\nf.has_many :things, sortable: :position, sortable_start: 1 do |t|\r\n  ...\r\nend\r\n```\r\n\r\n","created_at":"2014-12-08T20:26:58Z","updated_at":"2014-12-08T20:26:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3684/commits","review_comments_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3684/comments","review_comment_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3684/comments","statuses_url":"https://api.github.com/repos/activeadmin/activeadmin/statuses/d182b535e9b1c258d0a1c277f451364e031bae22","head":{"label":"vigetlabs:3680-sortable-start","ref":"3680-sortable-start","sha":"d182b535e9b1c258d0a1c277f451364e031bae22","user":{"login":"vigetlabs","id":4845,"avatar_url":"https://avatars.githubusercontent.com/u/4845?v=3","gravatar_id":"","url":"https://api.github.com/users/vigetlabs","html_url":"https://github.com/vigetlabs","followers_url":"https://api.github.com/users/vigetlabs/followers","following_url":"https://api.github.com/users/vigetlabs/following{/other_user}","gists_url":"https://api.github.com/users/vigetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vigetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigetlabs/subscriptions","organizations_url":"https://api.github.com/users/vigetlabs/orgs","repos_url":"https://api.github.com/users/vigetlabs/repos","events_url":"https://api.github.com/users/vigetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vigetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":27732078,"name":"activeadmin","full_name":"vigetlabs/activeadmin","owner":{"login":"vigetlabs","id":4845,"avatar_url":"https://avatars.githubusercontent.com/u/4845?v=3","gravatar_id":"","url":"https://api.github.com/users/vigetlabs","html_url":"https://github.com/vigetlabs","followers_url":"https://api.github.com/users/vigetlabs/followers","following_url":"https://api.github.com/users/vigetlabs/following{/other_user}","gists_url":"https://api.github.com/users/vigetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vigetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigetlabs/subscriptions","organizations_url":"https://api.github.com/users/vigetlabs/orgs","repos_url":"https://api.github.com/users/vigetlabs/repos","events_url":"https://api.github.com/users/vigetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vigetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vigetlabs/activeadmin","description":"The administration framework for Ruby on Rails applications.","fork":true,"url":"https://api.github.com/repos/vigetlabs/activeadmin","forks_url":"https://api.github.com/repos/vigetlabs/activeadmin/forks","keys_url":"https://api.github.com/repos/vigetlabs/activeadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vigetlabs/activeadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vigetlabs/activeadmin/teams","hooks_url":"https://api.github.com/repos/vigetlabs/activeadmin/hooks","issue_events_url":"https://api.github.com/repos/vigetlabs/activeadmin/issues/events{/number}","events_url":"https://api.github.com/repos/vigetlabs/activeadmin/events","assignees_url":"https://api.github.com/repos/vigetlabs/activeadmin/assignees{/user}","branches_url":"https://api.github.com/repos/vigetlabs/activeadmin/branches{/branch}","tags_url":"https://api.github.com/repos/vigetlabs/activeadmin/tags","blobs_url":"https://api.github.com/repos/vigetlabs/activeadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vigetlabs/activeadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vigetlabs/activeadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/vigetlabs/activeadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vigetlabs/activeadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/vigetlabs/activeadmin/languages","stargazers_url":"https://api.github.com/repos/vigetlabs/activeadmin/stargazers","contributors_url":"https://api.github.com/repos/vigetlabs/activeadmin/contributors","subscribers_url":"https://api.github.com/repos/vigetlabs/activeadmin/subscribers","subscription_url":"https://api.github.com/repos/vigetlabs/activeadmin/subscription","commits_url":"https://api.github.com/repos/vigetlabs/activeadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/vigetlabs/activeadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/vigetlabs/activeadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/vigetlabs/activeadmin/issues/comments/{number}","contents_url":"https://api.github.com/repos/vigetlabs/activeadmin/contents/{+path}","compare_url":"https://api.github.com/repos/vigetlabs/activeadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vigetlabs/activeadmin/merges","archive_url":"https://api.github.com/repos/vigetlabs/activeadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vigetlabs/activeadmin/downloads","issues_url":"https://api.github.com/repos/vigetlabs/activeadmin/issues{/number}","pulls_url":"https://api.github.com/repos/vigetlabs/activeadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/vigetlabs/activeadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/vigetlabs/activeadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vigetlabs/activeadmin/labels{/name}","releases_url":"https://api.github.com/repos/vigetlabs/activeadmin/releases{/id}","created_at":"2014-12-08T19:52:45Z","updated_at":"2014-12-08T19:52:47Z","pushed_at":"2014-12-08T20:23:42Z","git_url":"git://github.com/vigetlabs/activeadmin.git","ssh_url":"git@github.com:vigetlabs/activeadmin.git","clone_url":"https://github.com/vigetlabs/activeadmin.git","svn_url":"https://github.com/vigetlabs/activeadmin","homepage":"activeadmin.info","size":22875,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"activeadmin:master","ref":"master","sha":"e4f8dbbbb8046b719e100fddf83319b9e6cb8796","user":{"login":"activeadmin","id":814570,"avatar_url":"https://avatars.githubusercontent.com/u/814570?v=3","gravatar_id":"","url":"https://api.github.com/users/activeadmin","html_url":"https://github.com/activeadmin","followers_url":"https://api.github.com/users/activeadmin/followers","following_url":"https://api.github.com/users/activeadmin/following{/other_user}","gists_url":"https://api.github.com/users/activeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/activeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeadmin/subscriptions","organizations_url":"https://api.github.com/users/activeadmin/orgs","repos_url":"https://api.github.com/users/activeadmin/repos","events_url":"https://api.github.com/users/activeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/activeadmin/received_events","type":"Organization","site_admin":false},"repo":{"id":611921,"name":"activeadmin","full_name":"activeadmin/activeadmin","owner":{"login":"activeadmin","id":814570,"avatar_url":"https://avatars.githubusercontent.com/u/814570?v=3","gravatar_id":"","url":"https://api.github.com/users/activeadmin","html_url":"https://github.com/activeadmin","followers_url":"https://api.github.com/users/activeadmin/followers","following_url":"https://api.github.com/users/activeadmin/following{/other_user}","gists_url":"https://api.github.com/users/activeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/activeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeadmin/subscriptions","organizations_url":"https://api.github.com/users/activeadmin/orgs","repos_url":"https://api.github.com/users/activeadmin/repos","events_url":"https://api.github.com/users/activeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/activeadmin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeadmin/activeadmin","description":"The administration framework for Ruby on Rails applications.","fork":false,"url":"https://api.github.com/repos/activeadmin/activeadmin","forks_url":"https://api.github.com/repos/activeadmin/activeadmin/forks","keys_url":"https://api.github.com/repos/activeadmin/activeadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeadmin/activeadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeadmin/activeadmin/teams","hooks_url":"https://api.github.com/repos/activeadmin/activeadmin/hooks","issue_events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/events{/number}","events_url":"https://api.github.com/repos/activeadmin/activeadmin/events","assignees_url":"https://api.github.com/repos/activeadmin/activeadmin/assignees{/user}","branches_url":"https://api.github.com/repos/activeadmin/activeadmin/branches{/branch}","tags_url":"https://api.github.com/repos/activeadmin/activeadmin/tags","blobs_url":"https://api.github.com/repos/activeadmin/activeadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeadmin/activeadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeadmin/activeadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeadmin/activeadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeadmin/activeadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/activeadmin/activeadmin/languages","stargazers_url":"https://api.github.com/repos/activeadmin/activeadmin/stargazers","contributors_url":"https://api.github.com/repos/activeadmin/activeadmin/contributors","subscribers_url":"https://api.github.com/repos/activeadmin/activeadmin/subscribers","subscription_url":"https://api.github.com/repos/activeadmin/activeadmin/subscription","commits_url":"https://api.github.com/repos/activeadmin/activeadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeadmin/activeadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/{number}","contents_url":"https://api.github.com/repos/activeadmin/activeadmin/contents/{+path}","compare_url":"https://api.github.com/repos/activeadmin/activeadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeadmin/activeadmin/merges","archive_url":"https://api.github.com/repos/activeadmin/activeadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeadmin/activeadmin/downloads","issues_url":"https://api.github.com/repos/activeadmin/activeadmin/issues{/number}","pulls_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/activeadmin/activeadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/activeadmin/activeadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/labels{/name}","releases_url":"https://api.github.com/repos/activeadmin/activeadmin/releases{/id}","created_at":"2010-04-15T14:26:03Z","updated_at":"2014-12-08T19:55:02Z","pushed_at":"2014-12-07T02:29:28Z","git_url":"git://github.com/activeadmin/activeadmin.git","ssh_url":"git@github.com:activeadmin/activeadmin.git","clone_url":"https://github.com/activeadmin/activeadmin.git","svn_url":"https://github.com/activeadmin/activeadmin","homepage":"activeadmin.info","size":22875,"stargazers_count":5503,"watchers_count":5503,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":1958,"mirror_url":null,"open_issues_count":182,"forks":1958,"open_issues":182,"watchers":5503,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3684"},"html":{"href":"https://github.com/activeadmin/activeadmin/pull/3684"},"issue":{"href":"https://api.github.com/repos/activeadmin/activeadmin/issues/3684"},"comments":{"href":"https://api.github.com/repos/activeadmin/activeadmin/issues/3684/comments"},"review_comments":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3684/comments"},"review_comment":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3684/commits"},"statuses":{"href":"https://api.github.com/repos/activeadmin/activeadmin/statuses/d182b535e9b1c258d0a1c277f451364e031bae22"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":37,"deletions":5,"changed_files":3}}