{"action":"created","issue":{"url":"https://api.github.com/repos/acquia/blt/issues/3181","repository_url":"https://api.github.com/repos/acquia/blt","labels_url":"https://api.github.com/repos/acquia/blt/issues/3181/labels{/name}","comments_url":"https://api.github.com/repos/acquia/blt/issues/3181/comments","events_url":"https://api.github.com/repos/acquia/blt/issues/3181/events","html_url":"https://github.com/acquia/blt/pull/3181","id":371562964,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzOTgyMTY4","number":3181,"title":"Account for named arguments in Twig filter and function linting.","user":{"login":"wu-edward","id":25017813,"node_id":"MDQ6VXNlcjI1MDE3ODEz","avatar_url":"https://avatars1.githubusercontent.com/u/25017813?v=4","gravatar_id":"","url":"https://api.github.com/users/wu-edward","html_url":"https://github.com/wu-edward","followers_url":"https://api.github.com/users/wu-edward/followers","following_url":"https://api.github.com/users/wu-edward/following{/other_user}","gists_url":"https://api.github.com/users/wu-edward/gists{/gist_id}","starred_url":"https://api.github.com/users/wu-edward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wu-edward/subscriptions","organizations_url":"https://api.github.com/users/wu-edward/orgs","repos_url":"https://api.github.com/users/wu-edward/repos","events_url":"https://api.github.com/users/wu-edward/events{/privacy}","received_events_url":"https://api.github.com/users/wu-edward/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-18T14:37:18Z","updated_at":"2018-12-13T17:55:30Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/acquia/blt/pulls/3181","html_url":"https://github.com/acquia/blt/pull/3181","diff_url":"https://github.com/acquia/blt/pull/3181.diff","patch_url":"https://github.com/acquia/blt/pull/3181.patch"},"body":"Fixes #3178 \r\n--------\r\n\r\nChanges proposed:\r\n---------\r\n(What are you proposing we change?)\r\n\r\n- Set Twig filters and functions added to the Twig environment BLT uses for linting to be variadic to account for named arguments.\r\n\r\nSteps to replicate the issue:\r\n----------\r\n(If this PR is not fixing a defect/bug, you can remove this section.)\r\n\r\n1. Create a Twig template in a custom theme template directory that includes:\r\n`{{ drupal_entity('block', 'particle_employersmenu', check_access=false) }}`\r\n2. Whitelist the `drupal_entity` function in blt/blt.yml per https://blt.readthedocs.io/en/latest/extending-blt/#teststwiglintall\r\n3. Run `tests:twig:lint:all` and observe error message\r\n\r\nSteps to verify the solution:\r\n-----------\r\n(How does someone verify that this does what you think does?)\r\n\r\n1. Apply this commit to BLT\r\n2. Run issue replication steps, and confirm that linting now shows no errors.\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/acquia/blt/issues/comments/447061350","html_url":"https://github.com/acquia/blt/pull/3181#issuecomment-447061350","issue_url":"https://api.github.com/repos/acquia/blt/issues/3181","id":447061350,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzA2MTM1MA==","user":{"login":"wu-edward","id":25017813,"node_id":"MDQ6VXNlcjI1MDE3ODEz","avatar_url":"https://avatars1.githubusercontent.com/u/25017813?v=4","gravatar_id":"","url":"https://api.github.com/users/wu-edward","html_url":"https://github.com/wu-edward","followers_url":"https://api.github.com/users/wu-edward/followers","following_url":"https://api.github.com/users/wu-edward/following{/other_user}","gists_url":"https://api.github.com/users/wu-edward/gists{/gist_id}","starred_url":"https://api.github.com/users/wu-edward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wu-edward/subscriptions","organizations_url":"https://api.github.com/users/wu-edward/orgs","repos_url":"https://api.github.com/users/wu-edward/repos","events_url":"https://api.github.com/users/wu-edward/events{/privacy}","received_events_url":"https://api.github.com/users/wu-edward/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T17:55:30Z","updated_at":"2018-12-13T17:55:30Z","author_association":"COLLABORATOR","body":"> Can you submit this PR to 10.x?\r\n\r\nDone."}}
{"actor":{"display_login":"wu-edward"}}