{"action":"opened","number":102,"pull_request":{"url":"https://api.github.com/repos/dbader/schedule/pulls/102","id":90523992,"html_url":"https://github.com/dbader/schedule/pull/102","diff_url":"https://github.com/dbader/schedule/pull/102.diff","patch_url":"https://github.com/dbader/schedule/pull/102.patch","issue_url":"https://api.github.com/repos/dbader/schedule/issues/102","number":102,"state":"open","locked":false,"title":"Clear jobs by tag","user":{"login":"Zerrossetto","id":3073363,"avatar_url":"https://avatars.githubusercontent.com/u/3073363?v=3","gravatar_id":"","url":"https://api.github.com/users/Zerrossetto","html_url":"https://github.com/Zerrossetto","followers_url":"https://api.github.com/users/Zerrossetto/followers","following_url":"https://api.github.com/users/Zerrossetto/following{/other_user}","gists_url":"https://api.github.com/users/Zerrossetto/gists{/gist_id}","starred_url":"https://api.github.com/users/Zerrossetto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zerrossetto/subscriptions","organizations_url":"https://api.github.com/users/Zerrossetto/orgs","repos_url":"https://api.github.com/users/Zerrossetto/repos","events_url":"https://api.github.com/users/Zerrossetto/events{/privacy}","received_events_url":"https://api.github.com/users/Zerrossetto/received_events","type":"User","site_admin":false},"body":"The intention of this pull is to create an easy way to clear scheduled jobs in a modular environment.\r\nFor doing this i added two new methods to `Job` class, `tag()` and `tags()`, that could be used in a way like this one\r\n\r\n`schedule.every(10).minutes.do(job).tag('my_tag')`\r\nor \r\n`schedule.every(10).minutes.do(job).tags(['my_tag', 'my_other_tag'])`\r\n\r\nafter doing this it will be possible to clear a subset of jobs by doing\r\n\r\n`schedule.clear('my_other_tag')`\r\n\r\nalways leaving the older way possible by omitting the tag parameter.\r\nPlease, tell me if you think it could be useful.","created_at":"2016-10-23T18:18:45Z","updated_at":"2016-10-23T18:18:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7eee09f04c6563e9644951bdb6b9aba0465d787c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dbader/schedule/pulls/102/commits","review_comments_url":"https://api.github.com/repos/dbader/schedule/pulls/102/comments","review_comment_url":"https://api.github.com/repos/dbader/schedule/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbader/schedule/issues/102/comments","statuses_url":"https://api.github.com/repos/dbader/schedule/statuses/c8870e78e21c1ca48a98fb4637af2a514097bc6e","head":{"label":"Zerrossetto:master","ref":"master","sha":"c8870e78e21c1ca48a98fb4637af2a514097bc6e","user":{"login":"Zerrossetto","id":3073363,"avatar_url":"https://avatars.githubusercontent.com/u/3073363?v=3","gravatar_id":"","url":"https://api.github.com/users/Zerrossetto","html_url":"https://github.com/Zerrossetto","followers_url":"https://api.github.com/users/Zerrossetto/followers","following_url":"https://api.github.com/users/Zerrossetto/following{/other_user}","gists_url":"https://api.github.com/users/Zerrossetto/gists{/gist_id}","starred_url":"https://api.github.com/users/Zerrossetto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zerrossetto/subscriptions","organizations_url":"https://api.github.com/users/Zerrossetto/orgs","repos_url":"https://api.github.com/users/Zerrossetto/repos","events_url":"https://api.github.com/users/Zerrossetto/events{/privacy}","received_events_url":"https://api.github.com/users/Zerrossetto/received_events","type":"User","site_admin":false},"repo":{"id":71718715,"name":"schedule","full_name":"Zerrossetto/schedule","owner":{"login":"Zerrossetto","id":3073363,"avatar_url":"https://avatars.githubusercontent.com/u/3073363?v=3","gravatar_id":"","url":"https://api.github.com/users/Zerrossetto","html_url":"https://github.com/Zerrossetto","followers_url":"https://api.github.com/users/Zerrossetto/followers","following_url":"https://api.github.com/users/Zerrossetto/following{/other_user}","gists_url":"https://api.github.com/users/Zerrossetto/gists{/gist_id}","starred_url":"https://api.github.com/users/Zerrossetto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zerrossetto/subscriptions","organizations_url":"https://api.github.com/users/Zerrossetto/orgs","repos_url":"https://api.github.com/users/Zerrossetto/repos","events_url":"https://api.github.com/users/Zerrossetto/events{/privacy}","received_events_url":"https://api.github.com/users/Zerrossetto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zerrossetto/schedule","description":"Python job scheduling for humans.","fork":true,"url":"https://api.github.com/repos/Zerrossetto/schedule","forks_url":"https://api.github.com/repos/Zerrossetto/schedule/forks","keys_url":"https://api.github.com/repos/Zerrossetto/schedule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zerrossetto/schedule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zerrossetto/schedule/teams","hooks_url":"https://api.github.com/repos/Zerrossetto/schedule/hooks","issue_events_url":"https://api.github.com/repos/Zerrossetto/schedule/issues/events{/number}","events_url":"https://api.github.com/repos/Zerrossetto/schedule/events","assignees_url":"https://api.github.com/repos/Zerrossetto/schedule/assignees{/user}","branches_url":"https://api.github.com/repos/Zerrossetto/schedule/branches{/branch}","tags_url":"https://api.github.com/repos/Zerrossetto/schedule/tags","blobs_url":"https://api.github.com/repos/Zerrossetto/schedule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zerrossetto/schedule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zerrossetto/schedule/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zerrossetto/schedule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zerrossetto/schedule/statuses/{sha}","languages_url":"https://api.github.com/repos/Zerrossetto/schedule/languages","stargazers_url":"https://api.github.com/repos/Zerrossetto/schedule/stargazers","contributors_url":"https://api.github.com/repos/Zerrossetto/schedule/contributors","subscribers_url":"https://api.github.com/repos/Zerrossetto/schedule/subscribers","subscription_url":"https://api.github.com/repos/Zerrossetto/schedule/subscription","commits_url":"https://api.github.com/repos/Zerrossetto/schedule/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zerrossetto/schedule/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zerrossetto/schedule/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zerrossetto/schedule/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zerrossetto/schedule/contents/{+path}","compare_url":"https://api.github.com/repos/Zerrossetto/schedule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zerrossetto/schedule/merges","archive_url":"https://api.github.com/repos/Zerrossetto/schedule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zerrossetto/schedule/downloads","issues_url":"https://api.github.com/repos/Zerrossetto/schedule/issues{/number}","pulls_url":"https://api.github.com/repos/Zerrossetto/schedule/pulls{/number}","milestones_url":"https://api.github.com/repos/Zerrossetto/schedule/milestones{/number}","notifications_url":"https://api.github.com/repos/Zerrossetto/schedule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zerrossetto/schedule/labels{/name}","releases_url":"https://api.github.com/repos/Zerrossetto/schedule/releases{/id}","deployments_url":"https://api.github.com/repos/Zerrossetto/schedule/deployments","created_at":"2016-10-23T17:36:58Z","updated_at":"2016-10-23T17:36:59Z","pushed_at":"2016-10-23T18:15:33Z","git_url":"git://github.com/Zerrossetto/schedule.git","ssh_url":"git@github.com:Zerrossetto/schedule.git","clone_url":"https://github.com/Zerrossetto/schedule.git","svn_url":"https://github.com/Zerrossetto/schedule","homepage":"","size":161,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"dbader:master","ref":"master","sha":"9a37002ef7721138be4ce13dd94a87a438345b86","user":{"login":"dbader","id":306708,"avatar_url":"https://avatars.githubusercontent.com/u/306708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbader","html_url":"https://github.com/dbader","followers_url":"https://api.github.com/users/dbader/followers","following_url":"https://api.github.com/users/dbader/following{/other_user}","gists_url":"https://api.github.com/users/dbader/gists{/gist_id}","starred_url":"https://api.github.com/users/dbader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbader/subscriptions","organizations_url":"https://api.github.com/users/dbader/orgs","repos_url":"https://api.github.com/users/dbader/repos","events_url":"https://api.github.com/users/dbader/events{/privacy}","received_events_url":"https://api.github.com/users/dbader/received_events","type":"User","site_admin":false},"repo":{"id":10155460,"name":"schedule","full_name":"dbader/schedule","owner":{"login":"dbader","id":306708,"avatar_url":"https://avatars.githubusercontent.com/u/306708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbader","html_url":"https://github.com/dbader","followers_url":"https://api.github.com/users/dbader/followers","following_url":"https://api.github.com/users/dbader/following{/other_user}","gists_url":"https://api.github.com/users/dbader/gists{/gist_id}","starred_url":"https://api.github.com/users/dbader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbader/subscriptions","organizations_url":"https://api.github.com/users/dbader/orgs","repos_url":"https://api.github.com/users/dbader/repos","events_url":"https://api.github.com/users/dbader/events{/privacy}","received_events_url":"https://api.github.com/users/dbader/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbader/schedule","description":"Python job scheduling for humans.","fork":false,"url":"https://api.github.com/repos/dbader/schedule","forks_url":"https://api.github.com/repos/dbader/schedule/forks","keys_url":"https://api.github.com/repos/dbader/schedule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbader/schedule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbader/schedule/teams","hooks_url":"https://api.github.com/repos/dbader/schedule/hooks","issue_events_url":"https://api.github.com/repos/dbader/schedule/issues/events{/number}","events_url":"https://api.github.com/repos/dbader/schedule/events","assignees_url":"https://api.github.com/repos/dbader/schedule/assignees{/user}","branches_url":"https://api.github.com/repos/dbader/schedule/branches{/branch}","tags_url":"https://api.github.com/repos/dbader/schedule/tags","blobs_url":"https://api.github.com/repos/dbader/schedule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbader/schedule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbader/schedule/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbader/schedule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbader/schedule/statuses/{sha}","languages_url":"https://api.github.com/repos/dbader/schedule/languages","stargazers_url":"https://api.github.com/repos/dbader/schedule/stargazers","contributors_url":"https://api.github.com/repos/dbader/schedule/contributors","subscribers_url":"https://api.github.com/repos/dbader/schedule/subscribers","subscription_url":"https://api.github.com/repos/dbader/schedule/subscription","commits_url":"https://api.github.com/repos/dbader/schedule/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbader/schedule/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbader/schedule/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbader/schedule/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbader/schedule/contents/{+path}","compare_url":"https://api.github.com/repos/dbader/schedule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbader/schedule/merges","archive_url":"https://api.github.com/repos/dbader/schedule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbader/schedule/downloads","issues_url":"https://api.github.com/repos/dbader/schedule/issues{/number}","pulls_url":"https://api.github.com/repos/dbader/schedule/pulls{/number}","milestones_url":"https://api.github.com/repos/dbader/schedule/milestones{/number}","notifications_url":"https://api.github.com/repos/dbader/schedule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbader/schedule/labels{/name}","releases_url":"https://api.github.com/repos/dbader/schedule/releases{/id}","deployments_url":"https://api.github.com/repos/dbader/schedule/deployments","created_at":"2013-05-19T12:51:20Z","updated_at":"2016-10-23T11:43:17Z","pushed_at":"2016-10-23T18:18:45Z","git_url":"git://github.com/dbader/schedule.git","ssh_url":"git@github.com:dbader/schedule.git","clone_url":"https://github.com/dbader/schedule.git","svn_url":"https://github.com/dbader/schedule","homepage":"","size":161,"stargazers_count":2503,"watchers_count":2503,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":249,"mirror_url":null,"open_issues_count":40,"forks":249,"open_issues":40,"watchers":2503,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dbader/schedule/pulls/102"},"html":{"href":"https://github.com/dbader/schedule/pull/102"},"issue":{"href":"https://api.github.com/repos/dbader/schedule/issues/102"},"comments":{"href":"https://api.github.com/repos/dbader/schedule/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/dbader/schedule/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/dbader/schedule/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbader/schedule/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/dbader/schedule/statuses/c8870e78e21c1ca48a98fb4637af2a514097bc6e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":20,"deletions":6,"changed_files":1}}
{"actor":{"display_login":"Zerrossetto"}}