{"action":"created","issue":{"url":"https://api.github.com/repos/buildkite/agent/issues/387","repository_url":"https://api.github.com/repos/buildkite/agent","labels_url":"https://api.github.com/repos/buildkite/agent/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/buildkite/agent/issues/387/comments","events_url":"https://api.github.com/repos/buildkite/agent/issues/387/events","html_url":"https://github.com/buildkite/agent/pull/387","id":180782561,"number":387,"title":"Substring expansion","user":{"login":"sj26","id":14028,"avatar_url":"https://avatars.githubusercontent.com/u/14028?v=3","gravatar_id":"","url":"https://api.github.com/users/sj26","html_url":"https://github.com/sj26","followers_url":"https://api.github.com/users/sj26/followers","following_url":"https://api.github.com/users/sj26/following{/other_user}","gists_url":"https://api.github.com/users/sj26/gists{/gist_id}","starred_url":"https://api.github.com/users/sj26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sj26/subscriptions","organizations_url":"https://api.github.com/users/sj26/orgs","repos_url":"https://api.github.com/users/sj26/repos","events_url":"https://api.github.com/users/sj26/events{/privacy}","received_events_url":"https://api.github.com/users/sj26/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-04T00:49:27Z","updated_at":"2016-10-04T07:09:12Z","closed_at":"2016-10-04T02:39:56Z","pull_request":{"url":"https://api.github.com/repos/buildkite/agent/pulls/387","html_url":"https://github.com/buildkite/agent/pull/387","diff_url":"https://github.com/buildkite/agent/pull/387.diff","patch_url":"https://github.com/buildkite/agent/pull/387.patch"},"body":"Enables substring expansion in pipeline.yml files, like this practical example:\r\n\r\n```yaml\r\nsteps:\r\n  - name: \":docker: :hammer:\"\r\n    plugins:\r\n      docker-compose:\r\n        build: app\r\n        tags:\r\n          - ${BUILDKITE_COMMIT:0:7}\r\n```\r\n\r\nThis follows the conventions of [linux shell parameter substring expansion](http://www.tldp.org/LDP/abs/html/parameter-substitution.html#EXPREPL1) and embraces the [bash version](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html) which allows negative offsets and lengths, too."},"comment":{"url":"https://api.github.com/repos/buildkite/agent/issues/comments/251310853","html_url":"https://github.com/buildkite/agent/pull/387#issuecomment-251310853","issue_url":"https://api.github.com/repos/buildkite/agent/issues/387","id":251310853,"user":{"login":"sj26","id":14028,"avatar_url":"https://avatars.githubusercontent.com/u/14028?v=3","gravatar_id":"","url":"https://api.github.com/users/sj26","html_url":"https://github.com/sj26","followers_url":"https://api.github.com/users/sj26/followers","following_url":"https://api.github.com/users/sj26/following{/other_user}","gists_url":"https://api.github.com/users/sj26/gists{/gist_id}","starred_url":"https://api.github.com/users/sj26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sj26/subscriptions","organizations_url":"https://api.github.com/users/sj26/orgs","repos_url":"https://api.github.com/users/sj26/repos","events_url":"https://api.github.com/users/sj26/events{/privacy}","received_events_url":"https://api.github.com/users/sj26/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T07:09:12Z","updated_at":"2016-10-04T07:09:12Z","body":"@jufemaiz I think those changes might already be in progress as https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/pull/3 and https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/pull/7. I've asked for clarification in https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/pull/8. :-)"}}
{"actor":{"display_login":"sj26"}}