{"action":"created","issue":{"url":"https://api.github.com/repos/ralphbean/bugwarrior/issues/531","repository_url":"https://api.github.com/repos/ralphbean/bugwarrior","labels_url":"https://api.github.com/repos/ralphbean/bugwarrior/issues/531/labels{/name}","comments_url":"https://api.github.com/repos/ralphbean/bugwarrior/issues/531/comments","events_url":"https://api.github.com/repos/ralphbean/bugwarrior/issues/531/events","html_url":"https://github.com/ralphbean/bugwarrior/pull/531","id":279134337,"number":531,"title":"Preserve PERL5LIB environment when calling out to taskw","user":{"login":"pjf","id":12072,"avatar_url":"https://avatars0.githubusercontent.com/u/12072?v=4","gravatar_id":"","url":"https://api.github.com/users/pjf","html_url":"https://github.com/pjf","followers_url":"https://api.github.com/users/pjf/followers","following_url":"https://api.github.com/users/pjf/following{/other_user}","gists_url":"https://api.github.com/users/pjf/gists{/gist_id}","starred_url":"https://api.github.com/users/pjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjf/subscriptions","organizations_url":"https://api.github.com/users/pjf/orgs","repos_url":"https://api.github.com/users/pjf/repos","events_url":"https://api.github.com/users/pjf/events{/privacy}","received_events_url":"https://api.github.com/users/pjf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-04T20:18:41Z","updated_at":"2017-12-13T09:06:54Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ralphbean/bugwarrior/pulls/531","html_url":"https://github.com/ralphbean/bugwarrior/pull/531","diff_url":"https://github.com/ralphbean/bugwarrior/pull/531.diff","patch_url":"https://github.com/ralphbean/bugwarrior/pull/531.patch"},"body":"When we call out to TaskWarrior, we provide a very restricted\nenvironment. However TaskWarrior may have hooks installed which rely\nupon certain environment variables to be set.\n\nIn particular, any hooks written in Perl, or loaded using the\nTaskwarrior::Kusarigama hook framework, will depend upon the `PERL5LIB`\nenvironment variable being set.\n\nThis change passes through the `PERL5LIB` environment variable if it\nexists. Since neither BugWarrior nor the TaskWarrior core is written in\nPerl, this is essentially a no-op on systems that aren't using Perl\nhooks.\n\nThere's also potentially scope to discuss what environment cleaning\nshould happen when running TaskWarrior (possibly with `.bugwarriorrc`\nconfig settings), but this change fixes the conflict that currently\nexists between BugWarrior and Kusarigama (which I both use heavily)."},"comment":{"url":"https://api.github.com/repos/ralphbean/bugwarrior/issues/comments/351328162","html_url":"https://github.com/ralphbean/bugwarrior/pull/531#issuecomment-351328162","issue_url":"https://api.github.com/repos/ralphbean/bugwarrior/issues/531","id":351328162,"user":{"login":"pjf","id":12072,"avatar_url":"https://avatars0.githubusercontent.com/u/12072?v=4","gravatar_id":"","url":"https://api.github.com/users/pjf","html_url":"https://github.com/pjf","followers_url":"https://api.github.com/users/pjf/followers","following_url":"https://api.github.com/users/pjf/following{/other_user}","gists_url":"https://api.github.com/users/pjf/gists{/gist_id}","starred_url":"https://api.github.com/users/pjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjf/subscriptions","organizations_url":"https://api.github.com/users/pjf/orgs","repos_url":"https://api.github.com/users/pjf/repos","events_url":"https://api.github.com/users/pjf/events{/privacy}","received_events_url":"https://api.github.com/users/pjf/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T09:06:54Z","updated_at":"2017-12-13T09:06:54Z","author_association":"CONTRIBUTOR","body":"Closing this as we've a better way to do this.\r\n\r\nOpening a new issue I can reference in commits so folks can see the conversation.\r\n\r\nPR in the next hour if my coding skills don't fail me."}}
{"actor":{"display_login":"pjf"}}