{"action":"created","issue":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/112","labels_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/112/comments","events_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/112/events","html_url":"https://github.com/node-schedule/node-schedule/pull/112","id":61941927,"number":112,"title":"API method 'getJob', index jobs (needs tests)","user":{"login":"ricardofbarros","id":6867996,"avatar_url":"https://avatars.githubusercontent.com/u/6867996?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardofbarros","html_url":"https://github.com/ricardofbarros","followers_url":"https://api.github.com/users/ricardofbarros/followers","following_url":"https://api.github.com/users/ricardofbarros/following{/other_user}","gists_url":"https://api.github.com/users/ricardofbarros/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardofbarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardofbarros/subscriptions","organizations_url":"https://api.github.com/users/ricardofbarros/orgs","repos_url":"https://api.github.com/users/ricardofbarros/repos","events_url":"https://api.github.com/users/ricardofbarros/events{/privacy}","received_events_url":"https://api.github.com/users/ricardofbarros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/node-schedule/node-schedule/milestones/1","html_url":"https://github.com/node-schedule/node-schedule/milestones/1.0.0","labels_url":"https://api.github.com/repos/node-schedule/node-schedule/milestones/1/labels","id":1031924,"number":1,"title":"1.0.0","description":"","creator":{"login":"jonhester","id":3527123,"avatar_url":"https://avatars.githubusercontent.com/u/3527123?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhester","html_url":"https://github.com/jonhester","followers_url":"https://api.github.com/users/jonhester/followers","following_url":"https://api.github.com/users/jonhester/following{/other_user}","gists_url":"https://api.github.com/users/jonhester/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhester/subscriptions","organizations_url":"https://api.github.com/users/jonhester/orgs","repos_url":"https://api.github.com/users/jonhester/repos","events_url":"https://api.github.com/users/jonhester/events{/privacy}","received_events_url":"https://api.github.com/users/jonhester/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-03-21T05:20:00Z","updated_at":"2015-03-21T05:39:17Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2015-03-16T01:58:36Z","updated_at":"2015-03-24T02:39:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/node-schedule/node-schedule/pulls/112","html_url":"https://github.com/node-schedule/node-schedule/pull/112","diff_url":"https://github.com/node-schedule/node-schedule/pull/112.diff","patch_url":"https://github.com/node-schedule/node-schedule/pull/112.patch"},"body":"Continuing from issue #54\r\n\r\nI'm missing the tests but see if this make any sense, basically now you have a new API method `getJob`, which can be used internally to resolve and get the job and developers can use it as well when they just know the name of the job but not the index, for e.g.\r\n\r\n```js\r\nvar schedule = require('node-schedule');\r\n\r\nschedule.scheduleJob('test', '42 * * * *', function() {\r\n    console.log('The answer to life, the universe, and everything!');\r\n});\r\n\r\nvar jobTest = schedule.getJob('test');\r\n```\r\n\r\nSo give me any feedback if this is the right path. If it is I'll make the tests for this, btw using `getJob`internally the current tests all have passed, so if there is tests to be done it will be for the new method `getJob` and the dilemma in the line 461."},"comment":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/comments/85310189","html_url":"https://github.com/node-schedule/node-schedule/pull/112#issuecomment-85310189","issue_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/112","id":85310189,"user":{"login":"tejasmanohar","id":5959235,"avatar_url":"https://avatars.githubusercontent.com/u/5959235?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasmanohar","html_url":"https://github.com/tejasmanohar","followers_url":"https://api.github.com/users/tejasmanohar/followers","following_url":"https://api.github.com/users/tejasmanohar/following{/other_user}","gists_url":"https://api.github.com/users/tejasmanohar/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasmanohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasmanohar/subscriptions","organizations_url":"https://api.github.com/users/tejasmanohar/orgs","repos_url":"https://api.github.com/users/tejasmanohar/repos","events_url":"https://api.github.com/users/tejasmanohar/events{/privacy}","received_events_url":"https://api.github.com/users/tejasmanohar/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T02:39:28Z","updated_at":"2015-03-24T02:39:28Z","body":"Alright. How do you guys think we should handle merging this? What do you think about a 1.0 release branch that we merge in stable updates that are going to be released in 1.0 before they're ready for master? Open to advice on how to handle this / what's the convention."}}