{"action":"created","issue":{"url":"https://api.github.com/repos/in-toto/in-toto/issues/56","repository_url":"https://api.github.com/repos/in-toto/in-toto","labels_url":"https://api.github.com/repos/in-toto/in-toto/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/in-toto/in-toto/issues/56/comments","events_url":"https://api.github.com/repos/in-toto/in-toto/issues/56/events","html_url":"https://github.com/in-toto/in-toto/pull/56","id":197020459,"number":56,"title":"Adds setting to exclude artifacts in link metadata","user":{"login":"lukpueh","id":589324,"avatar_url":"https://avatars.githubusercontent.com/u/589324?v=3","gravatar_id":"","url":"https://api.github.com/users/lukpueh","html_url":"https://github.com/lukpueh","followers_url":"https://api.github.com/users/lukpueh/followers","following_url":"https://api.github.com/users/lukpueh/following{/other_user}","gists_url":"https://api.github.com/users/lukpueh/gists{/gist_id}","starred_url":"https://api.github.com/users/lukpueh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukpueh/subscriptions","organizations_url":"https://api.github.com/users/lukpueh/orgs","repos_url":"https://api.github.com/users/lukpueh/repos","events_url":"https://api.github.com/users/lukpueh/events{/privacy}","received_events_url":"https://api.github.com/users/lukpueh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-21T20:03:00Z","updated_at":"2016-12-22T19:35:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/in-toto/in-toto/pulls/56","html_url":"https://github.com/in-toto/in-toto/pull/56","diff_url":"https://github.com/in-toto/in-toto/pull/56.diff","patch_url":"https://github.com/in-toto/in-toto/pull/56.patch"},"body":"- Adds routine to exclude files, matched by defined patterns (uses fnmatch), when recording artifacts (materials or products) upon in-toto-run/in-toto-record\r\n- For now the exclude patterns can be defined as a setting ARTIFACT_EXCLUDES. This is likely to become a command line arg or part of a config file, e.g. .in-toto-ignore\r\n- Set ARTIFACT_EXLCUDES to ignore \".git\" and link metadata files\r\n- Adds unit tests"},"comment":{"url":"https://api.github.com/repos/in-toto/in-toto/issues/comments/268873946","html_url":"https://github.com/in-toto/in-toto/pull/56#issuecomment-268873946","issue_url":"https://api.github.com/repos/in-toto/in-toto/issues/56","id":268873946,"user":{"login":"lukpueh","id":589324,"avatar_url":"https://avatars.githubusercontent.com/u/589324?v=3","gravatar_id":"","url":"https://api.github.com/users/lukpueh","html_url":"https://github.com/lukpueh","followers_url":"https://api.github.com/users/lukpueh/followers","following_url":"https://api.github.com/users/lukpueh/following{/other_user}","gists_url":"https://api.github.com/users/lukpueh/gists{/gist_id}","starred_url":"https://api.github.com/users/lukpueh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukpueh/subscriptions","organizations_url":"https://api.github.com/users/lukpueh/orgs","repos_url":"https://api.github.com/users/lukpueh/repos","events_url":"https://api.github.com/users/lukpueh/events{/privacy}","received_events_url":"https://api.github.com/users/lukpueh/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T19:35:57Z","updated_at":"2016-12-22T19:35:57Z","body":"Exclude patterns are applied 3 times:\r\n(1) On the first level of the directory tree when artifacts could be either files or directories,\r\n(2) on intermediate directories, i.e. dirs that are not on the first level, and\r\n(3) on tree leaves that are not on the first level.\r\n\r\n*EXAMPLE:*\r\n```\r\n# Directory Tree\r\n.\r\n├── foo.pyc\r\n└── sub\r\n    ├── .git\r\n    └── bar.pyc\r\n\r\n# Setting\r\nARTIFACT_EXCLUDES = [\".git\", \"*.pyc]\r\n# Call record_artifacts_as_dict to record from root of above tree\r\nrecord_artifacts_as_dict(\".\")\r\n```\r\n(1) excludes foo.pyc\r\n(2) excludes sub/.git\r\n(3) excludes bar.pyc"}}
{"actor":{"display_login":"lukpueh"}}