{"action":"opened","number":51,"pull_request":{"url":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/51","id":57748406,"html_url":"https://github.com/jalaali/moment-jalaali/pull/51","diff_url":"https://github.com/jalaali/moment-jalaali/pull/51.diff","patch_url":"https://github.com/jalaali/moment-jalaali/pull/51.patch","issue_url":"https://api.github.com/repos/jalaali/moment-jalaali/issues/51","number":51,"state":"open","locked":false,"title":"adding isSame to jMoment to find out if two moments are in same Jalaali unit","user":{"login":"ehsandanesh","id":2552974,"avatar_url":"https://avatars.githubusercontent.com/u/2552974?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsandanesh","html_url":"https://github.com/ehsandanesh","followers_url":"https://api.github.com/users/ehsandanesh/followers","following_url":"https://api.github.com/users/ehsandanesh/following{/other_user}","gists_url":"https://api.github.com/users/ehsandanesh/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsandanesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsandanesh/subscriptions","organizations_url":"https://api.github.com/users/ehsandanesh/orgs","repos_url":"https://api.github.com/users/ehsandanesh/repos","events_url":"https://api.github.com/users/ehsandanesh/events{/privacy}","received_events_url":"https://api.github.com/users/ehsandanesh/received_events","type":"User","site_admin":false},"body":"isSame is a function that checks whether two moments are in same Jalaali year, month, ...  depends on a unit that passed on. because start and end of year and months  are different in Jalaali than Gregorian. It needs different method to calculate.\r\n\r\n","created_at":"2016-01-30T19:39:45Z","updated_at":"2016-01-30T19:39:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/51/commits","review_comments_url":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/51/comments","review_comment_url":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jalaali/moment-jalaali/issues/51/comments","statuses_url":"https://api.github.com/repos/jalaali/moment-jalaali/statuses/0d0b608d47b0a1fb2794a7aceee841bf733164d4","head":{"label":"ehsandanesh:master","ref":"master","sha":"0d0b608d47b0a1fb2794a7aceee841bf733164d4","user":{"login":"ehsandanesh","id":2552974,"avatar_url":"https://avatars.githubusercontent.com/u/2552974?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsandanesh","html_url":"https://github.com/ehsandanesh","followers_url":"https://api.github.com/users/ehsandanesh/followers","following_url":"https://api.github.com/users/ehsandanesh/following{/other_user}","gists_url":"https://api.github.com/users/ehsandanesh/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsandanesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsandanesh/subscriptions","organizations_url":"https://api.github.com/users/ehsandanesh/orgs","repos_url":"https://api.github.com/users/ehsandanesh/repos","events_url":"https://api.github.com/users/ehsandanesh/events{/privacy}","received_events_url":"https://api.github.com/users/ehsandanesh/received_events","type":"User","site_admin":false},"repo":{"id":50738697,"name":"moment-jalaali","full_name":"ehsandanesh/moment-jalaali","owner":{"login":"ehsandanesh","id":2552974,"avatar_url":"https://avatars.githubusercontent.com/u/2552974?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsandanesh","html_url":"https://github.com/ehsandanesh","followers_url":"https://api.github.com/users/ehsandanesh/followers","following_url":"https://api.github.com/users/ehsandanesh/following{/other_user}","gists_url":"https://api.github.com/users/ehsandanesh/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsandanesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsandanesh/subscriptions","organizations_url":"https://api.github.com/users/ehsandanesh/orgs","repos_url":"https://api.github.com/users/ehsandanesh/repos","events_url":"https://api.github.com/users/ehsandanesh/events{/privacy}","received_events_url":"https://api.github.com/users/ehsandanesh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ehsandanesh/moment-jalaali","description":"A Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.","fork":true,"url":"https://api.github.com/repos/ehsandanesh/moment-jalaali","forks_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/forks","keys_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/teams","hooks_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/hooks","issue_events_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/issues/events{/number}","events_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/events","assignees_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/assignees{/user}","branches_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/branches{/branch}","tags_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/tags","blobs_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/git/refs{/sha}","trees_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/statuses/{sha}","languages_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/languages","stargazers_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/stargazers","contributors_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/contributors","subscribers_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/subscribers","subscription_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/subscription","commits_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/commits{/sha}","git_commits_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/git/commits{/sha}","comments_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/comments{/number}","issue_comment_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/issues/comments{/number}","contents_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/contents/{+path}","compare_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/merges","archive_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/downloads","issues_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/issues{/number}","pulls_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/pulls{/number}","milestones_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/milestones{/number}","notifications_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/labels{/name}","releases_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/releases{/id}","deployments_url":"https://api.github.com/repos/ehsandanesh/moment-jalaali/deployments","created_at":"2016-01-30T18:35:04Z","updated_at":"2016-01-30T18:35:05Z","pushed_at":"2016-01-30T19:32:20Z","git_url":"git://github.com/ehsandanesh/moment-jalaali.git","ssh_url":"git@github.com:ehsandanesh/moment-jalaali.git","clone_url":"https://github.com/ehsandanesh/moment-jalaali.git","svn_url":"https://github.com/ehsandanesh/moment-jalaali","homepage":null,"size":184,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jalaali:master","ref":"master","sha":"3a85a31be4573091969fe8f7d1b3c72a349bf914","user":{"login":"jalaali","id":6560981,"avatar_url":"https://avatars.githubusercontent.com/u/6560981?v=3","gravatar_id":"","url":"https://api.github.com/users/jalaali","html_url":"https://github.com/jalaali","followers_url":"https://api.github.com/users/jalaali/followers","following_url":"https://api.github.com/users/jalaali/following{/other_user}","gists_url":"https://api.github.com/users/jalaali/gists{/gist_id}","starred_url":"https://api.github.com/users/jalaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalaali/subscriptions","organizations_url":"https://api.github.com/users/jalaali/orgs","repos_url":"https://api.github.com/users/jalaali/repos","events_url":"https://api.github.com/users/jalaali/events{/privacy}","received_events_url":"https://api.github.com/users/jalaali/received_events","type":"Organization","site_admin":false},"repo":{"id":12358738,"name":"moment-jalaali","full_name":"jalaali/moment-jalaali","owner":{"login":"jalaali","id":6560981,"avatar_url":"https://avatars.githubusercontent.com/u/6560981?v=3","gravatar_id":"","url":"https://api.github.com/users/jalaali","html_url":"https://github.com/jalaali","followers_url":"https://api.github.com/users/jalaali/followers","following_url":"https://api.github.com/users/jalaali/following{/other_user}","gists_url":"https://api.github.com/users/jalaali/gists{/gist_id}","starred_url":"https://api.github.com/users/jalaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalaali/subscriptions","organizations_url":"https://api.github.com/users/jalaali/orgs","repos_url":"https://api.github.com/users/jalaali/repos","events_url":"https://api.github.com/users/jalaali/events{/privacy}","received_events_url":"https://api.github.com/users/jalaali/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jalaali/moment-jalaali","description":"A Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.","fork":false,"url":"https://api.github.com/repos/jalaali/moment-jalaali","forks_url":"https://api.github.com/repos/jalaali/moment-jalaali/forks","keys_url":"https://api.github.com/repos/jalaali/moment-jalaali/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jalaali/moment-jalaali/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jalaali/moment-jalaali/teams","hooks_url":"https://api.github.com/repos/jalaali/moment-jalaali/hooks","issue_events_url":"https://api.github.com/repos/jalaali/moment-jalaali/issues/events{/number}","events_url":"https://api.github.com/repos/jalaali/moment-jalaali/events","assignees_url":"https://api.github.com/repos/jalaali/moment-jalaali/assignees{/user}","branches_url":"https://api.github.com/repos/jalaali/moment-jalaali/branches{/branch}","tags_url":"https://api.github.com/repos/jalaali/moment-jalaali/tags","blobs_url":"https://api.github.com/repos/jalaali/moment-jalaali/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jalaali/moment-jalaali/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jalaali/moment-jalaali/git/refs{/sha}","trees_url":"https://api.github.com/repos/jalaali/moment-jalaali/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jalaali/moment-jalaali/statuses/{sha}","languages_url":"https://api.github.com/repos/jalaali/moment-jalaali/languages","stargazers_url":"https://api.github.com/repos/jalaali/moment-jalaali/stargazers","contributors_url":"https://api.github.com/repos/jalaali/moment-jalaali/contributors","subscribers_url":"https://api.github.com/repos/jalaali/moment-jalaali/subscribers","subscription_url":"https://api.github.com/repos/jalaali/moment-jalaali/subscription","commits_url":"https://api.github.com/repos/jalaali/moment-jalaali/commits{/sha}","git_commits_url":"https://api.github.com/repos/jalaali/moment-jalaali/git/commits{/sha}","comments_url":"https://api.github.com/repos/jalaali/moment-jalaali/comments{/number}","issue_comment_url":"https://api.github.com/repos/jalaali/moment-jalaali/issues/comments{/number}","contents_url":"https://api.github.com/repos/jalaali/moment-jalaali/contents/{+path}","compare_url":"https://api.github.com/repos/jalaali/moment-jalaali/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jalaali/moment-jalaali/merges","archive_url":"https://api.github.com/repos/jalaali/moment-jalaali/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jalaali/moment-jalaali/downloads","issues_url":"https://api.github.com/repos/jalaali/moment-jalaali/issues{/number}","pulls_url":"https://api.github.com/repos/jalaali/moment-jalaali/pulls{/number}","milestones_url":"https://api.github.com/repos/jalaali/moment-jalaali/milestones{/number}","notifications_url":"https://api.github.com/repos/jalaali/moment-jalaali/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jalaali/moment-jalaali/labels{/name}","releases_url":"https://api.github.com/repos/jalaali/moment-jalaali/releases{/id}","deployments_url":"https://api.github.com/repos/jalaali/moment-jalaali/deployments","created_at":"2013-08-25T12:31:29Z","updated_at":"2016-01-20T14:04:50Z","pushed_at":"2016-01-18T08:33:14Z","git_url":"git://github.com/jalaali/moment-jalaali.git","ssh_url":"git@github.com:jalaali/moment-jalaali.git","clone_url":"https://github.com/jalaali/moment-jalaali.git","svn_url":"https://github.com/jalaali/moment-jalaali","homepage":null,"size":193,"stargazers_count":117,"watchers_count":117,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":6,"forks":22,"open_issues":6,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/51"},"html":{"href":"https://github.com/jalaali/moment-jalaali/pull/51"},"issue":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/issues/51"},"comments":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/jalaali/moment-jalaali/statuses/0d0b608d47b0a1fb2794a7aceee841bf733164d4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":26,"deletions":0,"changed_files":2}}