}
return redirect(routes.BoardApp.post(project.owner, project.name, post.getNumber()));
}
private static void commitReadmeFile(Project project, Posting post){
BareCommit bare = new BareCommit(project, UserApp.currentUser());
try{
bare.commitTextFile("README.md", post.body, post.title);
} catch (IOException e) {
e.printStackTrace();
play.Logger.error(e.getMessage());
}
}