{"action":"created","comment":{"url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/comments/204544182","pull_request_review_id":139642097,"id":204544182,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDU0NDE4Mg==","diff_hunk":"@@ -159,6 +161,8 @@\n \n \tprivate Set<PosixFilePermission> permissions;\n \n+\tprivate BiConsumer<File, Message<?>> newFileCallback;","path":"spring-integration-file/src/main/java/org/springframework/integration/file/FileWritingMessageHandler.java","position":27,"original_position":27,"commit_id":"5b4a3ea65daee955ed51601a5f77c8cc9f845f25","original_commit_id":"5b4a3ea65daee955ed51601a5f77c8cc9f845f25","user":{"login":"alturkovic","id":11464701,"node_id":"MDQ6VXNlcjExNDY0NzAx","avatar_url":"https://avatars3.githubusercontent.com/u/11464701?v=4","gravatar_id":"","url":"https://api.github.com/users/alturkovic","html_url":"https://github.com/alturkovic","followers_url":"https://api.github.com/users/alturkovic/followers","following_url":"https://api.github.com/users/alturkovic/following{/other_user}","gists_url":"https://api.github.com/users/alturkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/alturkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alturkovic/subscriptions","organizations_url":"https://api.github.com/users/alturkovic/orgs","repos_url":"https://api.github.com/users/alturkovic/repos","events_url":"https://api.github.com/users/alturkovic/events{/privacy}","received_events_url":"https://api.github.com/users/alturkovic/received_events","type":"User","site_admin":false},"body":"I am not sure I am following. This PR was supposed to handle writing some content into a newly created file. Why/when would we return a different file from the function? Thanks for the clarification.","created_at":"2018-07-23T20:31:37Z","updated_at":"2018-07-23T20:31:37Z","html_url":"https://github.com/spring-projects/spring-integration/pull/2509#discussion_r204544182","pull_request_url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/comments/204544182"},"html":{"href":"https://github.com/spring-projects/spring-integration/pull/2509#discussion_r204544182"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509"}},"in_reply_to_id":204539312},"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509","id":203149583,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMTQ5NTgz","html_url":"https://github.com/spring-projects/spring-integration/pull/2509","diff_url":"https://github.com/spring-projects/spring-integration/pull/2509.diff","patch_url":"https://github.com/spring-projects/spring-integration/pull/2509.patch","issue_url":"https://api.github.com/repos/spring-projects/spring-integration/issues/2509","number":2509,"state":"open","locked":false,"title":"INT-4502: Add support for new file callback in FileWritingMessageHandler","user":{"login":"alturkovic","id":11464701,"node_id":"MDQ6VXNlcjExNDY0NzAx","avatar_url":"https://avatars3.githubusercontent.com/u/11464701?v=4","gravatar_id":"","url":"https://api.github.com/users/alturkovic","html_url":"https://github.com/alturkovic","followers_url":"https://api.github.com/users/alturkovic/followers","following_url":"https://api.github.com/users/alturkovic/following{/other_user}","gists_url":"https://api.github.com/users/alturkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/alturkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alturkovic/subscriptions","organizations_url":"https://api.github.com/users/alturkovic/orgs","repos_url":"https://api.github.com/users/alturkovic/repos","events_url":"https://api.github.com/users/alturkovic/events{/privacy}","received_events_url":"https://api.github.com/users/alturkovic/received_events","type":"User","site_admin":false},"body":"JIRA: https://jira.spring.io/browse/INT-4502\r\n\r\nWhen using `APPEND` or `APPEND_NO_FLUSH` and creating a new file, a callback should be called on the file to allow initial setup of the file, such as CSV header writing.\r\n","created_at":"2018-07-23T08:51:23Z","updated_at":"2018-07-23T20:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa09e88d2a99f71bd841e88aace0ee62d9970994","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509/commits","review_comments_url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509/comments","review_comment_url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration/issues/2509/comments","statuses_url":"https://api.github.com/repos/spring-projects/spring-integration/statuses/5b4a3ea65daee955ed51601a5f77c8cc9f845f25","head":{"label":"alturkovic:INT-4502","ref":"INT-4502","sha":"5b4a3ea65daee955ed51601a5f77c8cc9f845f25","user":{"login":"alturkovic","id":11464701,"node_id":"MDQ6VXNlcjExNDY0NzAx","avatar_url":"https://avatars3.githubusercontent.com/u/11464701?v=4","gravatar_id":"","url":"https://api.github.com/users/alturkovic","html_url":"https://github.com/alturkovic","followers_url":"https://api.github.com/users/alturkovic/followers","following_url":"https://api.github.com/users/alturkovic/following{/other_user}","gists_url":"https://api.github.com/users/alturkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/alturkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alturkovic/subscriptions","organizations_url":"https://api.github.com/users/alturkovic/orgs","repos_url":"https://api.github.com/users/alturkovic/repos","events_url":"https://api.github.com/users/alturkovic/events{/privacy}","received_events_url":"https://api.github.com/users/alturkovic/received_events","type":"User","site_admin":false},"repo":{"id":141976833,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE5NzY4MzM=","name":"spring-integration","full_name":"alturkovic/spring-integration","owner":{"login":"alturkovic","id":11464701,"node_id":"MDQ6VXNlcjExNDY0NzAx","avatar_url":"https://avatars3.githubusercontent.com/u/11464701?v=4","gravatar_id":"","url":"https://api.github.com/users/alturkovic","html_url":"https://github.com/alturkovic","followers_url":"https://api.github.com/users/alturkovic/followers","following_url":"https://api.github.com/users/alturkovic/following{/other_user}","gists_url":"https://api.github.com/users/alturkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/alturkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alturkovic/subscriptions","organizations_url":"https://api.github.com/users/alturkovic/orgs","repos_url":"https://api.github.com/users/alturkovic/repos","events_url":"https://api.github.com/users/alturkovic/events{/privacy}","received_events_url":"https://api.github.com/users/alturkovic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alturkovic/spring-integration","description":"Spring Integration provides an extension of the Spring programming model to support the well-known Enterprise Integration Patterns (EIP)","fork":true,"url":"https://api.github.com/repos/alturkovic/spring-integration","forks_url":"https://api.github.com/repos/alturkovic/spring-integration/forks","keys_url":"https://api.github.com/repos/alturkovic/spring-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alturkovic/spring-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alturkovic/spring-integration/teams","hooks_url":"https://api.github.com/repos/alturkovic/spring-integration/hooks","issue_events_url":"https://api.github.com/repos/alturkovic/spring-integration/issues/events{/number}","events_url":"https://api.github.com/repos/alturkovic/spring-integration/events","assignees_url":"https://api.github.com/repos/alturkovic/spring-integration/assignees{/user}","branches_url":"https://api.github.com/repos/alturkovic/spring-integration/branches{/branch}","tags_url":"https://api.github.com/repos/alturkovic/spring-integration/tags","blobs_url":"https://api.github.com/repos/alturkovic/spring-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alturkovic/spring-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alturkovic/spring-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/alturkovic/spring-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alturkovic/spring-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/alturkovic/spring-integration/languages","stargazers_url":"https://api.github.com/repos/alturkovic/spring-integration/stargazers","contributors_url":"https://api.github.com/repos/alturkovic/spring-integration/contributors","subscribers_url":"https://api.github.com/repos/alturkovic/spring-integration/subscribers","subscription_url":"https://api.github.com/repos/alturkovic/spring-integration/subscription","commits_url":"https://api.github.com/repos/alturkovic/spring-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/alturkovic/spring-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/alturkovic/spring-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/alturkovic/spring-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/alturkovic/spring-integration/contents/{+path}","compare_url":"https://api.github.com/repos/alturkovic/spring-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alturkovic/spring-integration/merges","archive_url":"https://api.github.com/repos/alturkovic/spring-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alturkovic/spring-integration/downloads","issues_url":"https://api.github.com/repos/alturkovic/spring-integration/issues{/number}","pulls_url":"https://api.github.com/repos/alturkovic/spring-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/alturkovic/spring-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/alturkovic/spring-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alturkovic/spring-integration/labels{/name}","releases_url":"https://api.github.com/repos/alturkovic/spring-integration/releases{/id}","deployments_url":"https://api.github.com/repos/alturkovic/spring-integration/deployments","created_at":"2018-07-23T07:20:07Z","updated_at":"2018-07-23T07:20:21Z","pushed_at":"2018-07-23T18:35:40Z","git_url":"git://github.com/alturkovic/spring-integration.git","ssh_url":"git@github.com:alturkovic/spring-integration.git","clone_url":"https://github.com/alturkovic/spring-integration.git","svn_url":"https://github.com/alturkovic/spring-integration","homepage":"http://projects.spring.io/spring-integration/","size":46828,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-projects:master","ref":"master","sha":"09d6b76748586262d3ec84af7210dc836f4a1ef1","user":{"login":"spring-projects","id":317776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzc3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/317776?v=4","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":2090979,"node_id":"MDEwOlJlcG9zaXRvcnkyMDkwOTc5","name":"spring-integration","full_name":"spring-projects/spring-integration","owner":{"login":"spring-projects","id":317776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzc3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/317776?v=4","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-projects/spring-integration","description":"Spring Integration provides an extension of the Spring programming model to support the well-known Enterprise Integration Patterns (EIP)","fork":false,"url":"https://api.github.com/repos/spring-projects/spring-integration","forks_url":"https://api.github.com/repos/spring-projects/spring-integration/forks","keys_url":"https://api.github.com/repos/spring-projects/spring-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-projects/spring-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-projects/spring-integration/teams","hooks_url":"https://api.github.com/repos/spring-projects/spring-integration/hooks","issue_events_url":"https://api.github.com/repos/spring-projects/spring-integration/issues/events{/number}","events_url":"https://api.github.com/repos/spring-projects/spring-integration/events","assignees_url":"https://api.github.com/repos/spring-projects/spring-integration/assignees{/user}","branches_url":"https://api.github.com/repos/spring-projects/spring-integration/branches{/branch}","tags_url":"https://api.github.com/repos/spring-projects/spring-integration/tags","blobs_url":"https://api.github.com/repos/spring-projects/spring-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-projects/spring-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-projects/spring-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-projects/spring-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-projects/spring-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-projects/spring-integration/languages","stargazers_url":"https://api.github.com/repos/spring-projects/spring-integration/stargazers","contributors_url":"https://api.github.com/repos/spring-projects/spring-integration/contributors","subscribers_url":"https://api.github.com/repos/spring-projects/spring-integration/subscribers","subscription_url":"https://api.github.com/repos/spring-projects/spring-integration/subscription","commits_url":"https://api.github.com/repos/spring-projects/spring-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-projects/spring-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-projects/spring-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-projects/spring-integration/contents/{+path}","compare_url":"https://api.github.com/repos/spring-projects/spring-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-projects/spring-integration/merges","archive_url":"https://api.github.com/repos/spring-projects/spring-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-projects/spring-integration/downloads","issues_url":"https://api.github.com/repos/spring-projects/spring-integration/issues{/number}","pulls_url":"https://api.github.com/repos/spring-projects/spring-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-projects/spring-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-projects/spring-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-projects/spring-integration/labels{/name}","releases_url":"https://api.github.com/repos/spring-projects/spring-integration/releases{/id}","deployments_url":"https://api.github.com/repos/spring-projects/spring-integration/deployments","created_at":"2011-07-22T21:47:27Z","updated_at":"2018-07-23T18:15:10Z","pushed_at":"2018-07-23T20:10:50Z","git_url":"git://github.com/spring-projects/spring-integration.git","ssh_url":"git@github.com:spring-projects/spring-integration.git","clone_url":"https://github.com/spring-projects/spring-integration.git","svn_url":"https://github.com/spring-projects/spring-integration","homepage":"http://projects.spring.io/spring-integration/","size":46815,"stargazers_count":741,"watchers_count":741,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":651,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":651,"open_issues":13,"watchers":741,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509"},"html":{"href":"https://github.com/spring-projects/spring-integration/pull/2509"},"issue":{"href":"https://api.github.com/repos/spring-projects/spring-integration/issues/2509"},"comments":{"href":"https://api.github.com/repos/spring-projects/spring-integration/issues/2509/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/2509/commits"},"statuses":{"href":"https://api.github.com/repos/spring-projects/spring-integration/statuses/5b4a3ea65daee955ed51601a5f77c8cc9f845f25"}},"author_association":"NONE"}}
{"actor":{"display_login":"alturkovic"}}