{"action":"closed","issue":{"url":"https://api.github.com/repos/nextflow-io/examples/issues/3","repository_url":"https://api.github.com/repos/nextflow-io/examples","labels_url":"https://api.github.com/repos/nextflow-io/examples/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/examples/issues/3/comments","events_url":"https://api.github.com/repos/nextflow-io/examples/issues/3/events","html_url":"https://github.com/nextflow-io/examples/issues/3","id":176002261,"number":3,"title":"Groovy syntax on GitHub","user":{"login":"ewels","id":465550,"avatar_url":"https://avatars.githubusercontent.com/u/465550?v=3","gravatar_id":"","url":"https://api.github.com/users/ewels","html_url":"https://github.com/ewels","followers_url":"https://api.github.com/users/ewels/followers","following_url":"https://api.github.com/users/ewels/following{/other_user}","gists_url":"https://api.github.com/users/ewels/gists{/gist_id}","starred_url":"https://api.github.com/users/ewels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewels/subscriptions","organizations_url":"https://api.github.com/users/ewels/orgs","repos_url":"https://api.github.com/users/ewels/repos","events_url":"https://api.github.com/users/ewels/events{/privacy}","received_events_url":"https://api.github.com/users/ewels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-09T12:54:08Z","updated_at":"2016-09-23T14:21:13Z","closed_at":"2016-09-23T14:21:13Z","body":"You can get GitHub to play nicely with the NextFlow scripts file extensions with these two tricks:\r\n\r\nAdd the following to the top of every `.nf` script: (does syntax highlighting)\r\n```\r\nvim: syntax=groovy\r\n-*- mode: groovy;-*-\r\n```\r\n\r\nCreate a file called `.gitattributes` with the following: (changes the coloured bar at the top of the repo to say _100% Groovy_ instead of _100% Shell_.\r\n```\r\n*.nf linguist-language=Groovy\r\n```\r\n\r\nHope this helps! It was annoying me on our NextFlow repos 😉 "}}
{"actor":{"display_login":"pditommaso"}}