{"action":"created","comment":{"url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/comments/146963379","pull_request_review_id":71985018,"id":146963379,"diff_hunk":"@@ -0,0 +1,177 @@\n+/**\n+ * The contents of this file are subject to the license and copyright\n+ * detailed in the LICENSE and NOTICE files at the root of the source\n+ * tree and available online at\n+ *\n+ * http://www.dspace.org/license/\n+ */\n+\n+package org.dspace.ctask.general;\n+\n+import java.util.List;\n+import org.apache.commons.collections.CollectionUtils;\n+import org.apache.commons.collections.ListUtils;\n+import org.apache.commons.lang.StringUtils;\n+\n+import org.apache.commons.io.FilenameUtils;\n+\n+import org.dspace.authorize.AuthorizeException;\n+import org.dspace.content.DSpaceObject;\n+import org.dspace.content.Bitstream;","path":"dspace-api/src/main/java/org/dspace/ctask/general/VSimProjectAddMasterItemLinkCurationTask.java","position":20,"original_position":20,"commit_id":"a2371cfa7042928fc9a12f686d697f047809d065","original_commit_id":"a2371cfa7042928fc9a12f686d697f047809d065","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused imports such as 'org.dspace.content.Bitstream'](https://www.codacy.com/app/hardy/UCLA_DSpace/pullRequest?prid=1020196)","created_at":"2017-10-25T19:31:46Z","updated_at":"2017-10-25T19:31:46Z","html_url":"https://github.com/UCLALibrary/DSpace/pull/48#discussion_r146963379","pull_request_url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/comments/146963379"},"html":{"href":"https://github.com/UCLALibrary/DSpace/pull/48#discussion_r146963379"},"pull_request":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48","id":148744635,"html_url":"https://github.com/UCLALibrary/DSpace/pull/48","diff_url":"https://github.com/UCLALibrary/DSpace/pull/48.diff","patch_url":"https://github.com/UCLALibrary/DSpace/pull/48.patch","issue_url":"https://api.github.com/repos/UCLALibrary/DSpace/issues/48","number":48,"state":"open","locked":false,"title":"Vsim 73 item curation script","user":{"login":"hardyoyo","id":611569,"avatar_url":"https://avatars2.githubusercontent.com/u/611569?v=4","gravatar_id":"","url":"https://api.github.com/users/hardyoyo","html_url":"https://github.com/hardyoyo","followers_url":"https://api.github.com/users/hardyoyo/followers","following_url":"https://api.github.com/users/hardyoyo/following{/other_user}","gists_url":"https://api.github.com/users/hardyoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/hardyoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardyoyo/subscriptions","organizations_url":"https://api.github.com/users/hardyoyo/orgs","repos_url":"https://api.github.com/users/hardyoyo/repos","events_url":"https://api.github.com/users/hardyoyo/events{/privacy}","received_events_url":"https://api.github.com/users/hardyoyo/received_events","type":"User","site_admin":false},"body":"Added two new curation scripts: vsimitem and vsimaddmasteritemlink, to help copy links from the project master items to normal items, whenever they are archived; revised all scripts to be capable of running over entire collections of objects. Added info-level logging to all curation scripts, so we can keep track of what they're doing.","created_at":"2017-10-25T18:24:49Z","updated_at":"2017-10-25T19:31:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a3f7cb2577986cb886043e3ba87ad0457b02bdf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48/commits","review_comments_url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48/comments","review_comment_url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UCLALibrary/DSpace/issues/48/comments","statuses_url":"https://api.github.com/repos/UCLALibrary/DSpace/statuses/a2371cfa7042928fc9a12f686d697f047809d065","head":{"label":"hardyoyo:VSIM-73-item-curation-script","ref":"VSIM-73-item-curation-script","sha":"a2371cfa7042928fc9a12f686d697f047809d065","user":{"login":"hardyoyo","id":611569,"avatar_url":"https://avatars2.githubusercontent.com/u/611569?v=4","gravatar_id":"","url":"https://api.github.com/users/hardyoyo","html_url":"https://github.com/hardyoyo","followers_url":"https://api.github.com/users/hardyoyo/followers","following_url":"https://api.github.com/users/hardyoyo/following{/other_user}","gists_url":"https://api.github.com/users/hardyoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/hardyoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardyoyo/subscriptions","organizations_url":"https://api.github.com/users/hardyoyo/orgs","repos_url":"https://api.github.com/users/hardyoyo/repos","events_url":"https://api.github.com/users/hardyoyo/events{/privacy}","received_events_url":"https://api.github.com/users/hardyoyo/received_events","type":"User","site_admin":false},"repo":{"id":6766469,"name":"DSpace","full_name":"hardyoyo/DSpace","owner":{"login":"hardyoyo","id":611569,"avatar_url":"https://avatars2.githubusercontent.com/u/611569?v=4","gravatar_id":"","url":"https://api.github.com/users/hardyoyo","html_url":"https://github.com/hardyoyo","followers_url":"https://api.github.com/users/hardyoyo/followers","following_url":"https://api.github.com/users/hardyoyo/following{/other_user}","gists_url":"https://api.github.com/users/hardyoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/hardyoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardyoyo/subscriptions","organizations_url":"https://api.github.com/users/hardyoyo/orgs","repos_url":"https://api.github.com/users/hardyoyo/repos","events_url":"https://api.github.com/users/hardyoyo/events{/privacy}","received_events_url":"https://api.github.com/users/hardyoyo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hardyoyo/DSpace","description":"My fork of the DSpace digital asset management system that powers most Institutional Repositories","fork":true,"url":"https://api.github.com/repos/hardyoyo/DSpace","forks_url":"https://api.github.com/repos/hardyoyo/DSpace/forks","keys_url":"https://api.github.com/repos/hardyoyo/DSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hardyoyo/DSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hardyoyo/DSpace/teams","hooks_url":"https://api.github.com/repos/hardyoyo/DSpace/hooks","issue_events_url":"https://api.github.com/repos/hardyoyo/DSpace/issues/events{/number}","events_url":"https://api.github.com/repos/hardyoyo/DSpace/events","assignees_url":"https://api.github.com/repos/hardyoyo/DSpace/assignees{/user}","branches_url":"https://api.github.com/repos/hardyoyo/DSpace/branches{/branch}","tags_url":"https://api.github.com/repos/hardyoyo/DSpace/tags","blobs_url":"https://api.github.com/repos/hardyoyo/DSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hardyoyo/DSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hardyoyo/DSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/hardyoyo/DSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hardyoyo/DSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/hardyoyo/DSpace/languages","stargazers_url":"https://api.github.com/repos/hardyoyo/DSpace/stargazers","contributors_url":"https://api.github.com/repos/hardyoyo/DSpace/contributors","subscribers_url":"https://api.github.com/repos/hardyoyo/DSpace/subscribers","subscription_url":"https://api.github.com/repos/hardyoyo/DSpace/subscription","commits_url":"https://api.github.com/repos/hardyoyo/DSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/hardyoyo/DSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/hardyoyo/DSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/hardyoyo/DSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/hardyoyo/DSpace/contents/{+path}","compare_url":"https://api.github.com/repos/hardyoyo/DSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hardyoyo/DSpace/merges","archive_url":"https://api.github.com/repos/hardyoyo/DSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hardyoyo/DSpace/downloads","issues_url":"https://api.github.com/repos/hardyoyo/DSpace/issues{/number}","pulls_url":"https://api.github.com/repos/hardyoyo/DSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/hardyoyo/DSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/hardyoyo/DSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hardyoyo/DSpace/labels{/name}","releases_url":"https://api.github.com/repos/hardyoyo/DSpace/releases{/id}","deployments_url":"https://api.github.com/repos/hardyoyo/DSpace/deployments","created_at":"2012-11-19T20:07:58Z","updated_at":"2017-10-11T11:47:10Z","pushed_at":"2017-10-25T00:25:48Z","git_url":"git://github.com/hardyoyo/DSpace.git","ssh_url":"git@github.com:hardyoyo/DSpace.git","clone_url":"https://github.com/hardyoyo/DSpace.git","svn_url":"https://github.com/hardyoyo/DSpace","homepage":"https://wiki.duraspace.org/display/DSDOC6x/Introduction","size":129363,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"ucla-vsim-6_x"}},"base":{"label":"UCLALibrary:ucla-vsim-6_x","ref":"ucla-vsim-6_x","sha":"5f78d98336e41ed015cf69425b2402298b0b78fd","user":{"login":"UCLALibrary","id":2214013,"avatar_url":"https://avatars3.githubusercontent.com/u/2214013?v=4","gravatar_id":"","url":"https://api.github.com/users/UCLALibrary","html_url":"https://github.com/UCLALibrary","followers_url":"https://api.github.com/users/UCLALibrary/followers","following_url":"https://api.github.com/users/UCLALibrary/following{/other_user}","gists_url":"https://api.github.com/users/UCLALibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/UCLALibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCLALibrary/subscriptions","organizations_url":"https://api.github.com/users/UCLALibrary/orgs","repos_url":"https://api.github.com/users/UCLALibrary/repos","events_url":"https://api.github.com/users/UCLALibrary/events{/privacy}","received_events_url":"https://api.github.com/users/UCLALibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":67624812,"name":"DSpace","full_name":"UCLALibrary/DSpace","owner":{"login":"UCLALibrary","id":2214013,"avatar_url":"https://avatars3.githubusercontent.com/u/2214013?v=4","gravatar_id":"","url":"https://api.github.com/users/UCLALibrary","html_url":"https://github.com/UCLALibrary","followers_url":"https://api.github.com/users/UCLALibrary/followers","following_url":"https://api.github.com/users/UCLALibrary/following{/other_user}","gists_url":"https://api.github.com/users/UCLALibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/UCLALibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCLALibrary/subscriptions","organizations_url":"https://api.github.com/users/UCLALibrary/orgs","repos_url":"https://api.github.com/users/UCLALibrary/repos","events_url":"https://api.github.com/users/UCLALibrary/events{/privacy}","received_events_url":"https://api.github.com/users/UCLALibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UCLALibrary/DSpace","description":"The UCLA Library fork of the DSpace digital asset management system, used to power various repository projects of UCLA Library.","fork":true,"url":"https://api.github.com/repos/UCLALibrary/DSpace","forks_url":"https://api.github.com/repos/UCLALibrary/DSpace/forks","keys_url":"https://api.github.com/repos/UCLALibrary/DSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UCLALibrary/DSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UCLALibrary/DSpace/teams","hooks_url":"https://api.github.com/repos/UCLALibrary/DSpace/hooks","issue_events_url":"https://api.github.com/repos/UCLALibrary/DSpace/issues/events{/number}","events_url":"https://api.github.com/repos/UCLALibrary/DSpace/events","assignees_url":"https://api.github.com/repos/UCLALibrary/DSpace/assignees{/user}","branches_url":"https://api.github.com/repos/UCLALibrary/DSpace/branches{/branch}","tags_url":"https://api.github.com/repos/UCLALibrary/DSpace/tags","blobs_url":"https://api.github.com/repos/UCLALibrary/DSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UCLALibrary/DSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UCLALibrary/DSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/UCLALibrary/DSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UCLALibrary/DSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/UCLALibrary/DSpace/languages","stargazers_url":"https://api.github.com/repos/UCLALibrary/DSpace/stargazers","contributors_url":"https://api.github.com/repos/UCLALibrary/DSpace/contributors","subscribers_url":"https://api.github.com/repos/UCLALibrary/DSpace/subscribers","subscription_url":"https://api.github.com/repos/UCLALibrary/DSpace/subscription","commits_url":"https://api.github.com/repos/UCLALibrary/DSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/UCLALibrary/DSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/UCLALibrary/DSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/UCLALibrary/DSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/UCLALibrary/DSpace/contents/{+path}","compare_url":"https://api.github.com/repos/UCLALibrary/DSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UCLALibrary/DSpace/merges","archive_url":"https://api.github.com/repos/UCLALibrary/DSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UCLALibrary/DSpace/downloads","issues_url":"https://api.github.com/repos/UCLALibrary/DSpace/issues{/number}","pulls_url":"https://api.github.com/repos/UCLALibrary/DSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/UCLALibrary/DSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/UCLALibrary/DSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UCLALibrary/DSpace/labels{/name}","releases_url":"https://api.github.com/repos/UCLALibrary/DSpace/releases{/id}","deployments_url":"https://api.github.com/repos/UCLALibrary/DSpace/deployments","created_at":"2016-09-07T16:31:00Z","updated_at":"2017-10-11T11:41:49Z","pushed_at":"2017-10-25T18:24:50Z","git_url":"git://github.com/UCLALibrary/DSpace.git","ssh_url":"git@github.com:UCLALibrary/DSpace.git","clone_url":"https://github.com/UCLALibrary/DSpace.git","svn_url":"https://github.com/UCLALibrary/DSpace","homepage":"https://wiki.duraspace.org/display/DSDOC6x/Introduction","size":128649,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48"},"html":{"href":"https://github.com/UCLALibrary/DSpace/pull/48"},"issue":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/issues/48"},"comments":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/UCLALibrary/DSpace/statuses/a2371cfa7042928fc9a12f686d697f047809d065"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}