Last active
December 12, 2015 03:18
-
-
Save masahitojp/4705314 to your computer and use it in GitHub Desktop.
diff => github issuneの登録の流れ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install github3.py | |
| curl -O http://download.playframework.org/releases/play-2.0.4.zip | |
| curl -O http://download.playframework.org/releases/play-2.1-RC4.zip | |
| unzip play-2.0.4.zip | |
| unzip play-2.1-RC4.zip | |
| # | |
| diff -q -r play-2.0.4/documentation play-2.1-RC4/documentation > for_diff.txt | |
| python diff.py ./for_diff.txt > result.csv | |
| # add issue | |
| python create_issue.py result.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/b:in/env python | |
| # -*- coding: utf-8 -*- | |
| from github3 import login | |
| import csv | |
| user = 'user' | |
| password = 'password' | |
| repo_user = "repo_user" | |
| repo = "repo" | |
| # TODO token | |
| gh= login(user, password) | |
| repo = gh.repository(repo_user, repo) | |
| # create_issue | |
| reader = csv.reader(open('result.csv', 'r'), delimiter=',') | |
| for row in reader: | |
| title = row[0].decode('utf_8') | |
| body = row[1].decode('utf_8') | |
| repo.create_issue(title=title , body=body, milestone=7, labels=["2.1"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/b:in/env python | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| def changeFormat(str): | |
| rtn = str.replace("\\", "/") | |
| rtn = rtn.replace("play-2.1-RC4/documentation/", "") | |
| return rtn | |
| def result(title, body): | |
| def result(title, body): | |
| if title.find("_Sidebar.md") < 0: | |
| print("%s, %s" % (title, "https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/" + body)) | |
| #print("title :" + title) | |
| #print("body : https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/" + body) | |
| def main(): | |
| parser = argparse.ArgumentParser(description='diff To csv for github Issue add') | |
| parser.add_argument('file_name') | |
| args = parser.parse_args() | |
| file_name = args.file_name | |
| with open(file_name) as f: | |
| lines = f.readlines() | |
| for line in lines: | |
| op = line.split(" ") | |
| if op[0] == "Only": | |
| if op[2].find("2.0.4") < 0: | |
| title = op[-1].strip() + "の新規翻訳" | |
| str = changeFormat(op[2]).replace(":", "/") | |
| body = str + op[3].strip() | |
| result(title, body) | |
| else: | |
| title = op[3].split("\\")[-1] + "の翻訳" | |
| str = changeFormat(op[3]).replace(":", "/") | |
| body = str | |
| result(title, body) | |
| if __name__ == "__main__": | |
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| サイドバー翻訳 | http://playdocja.appspot.com/documentation/2.0.2/Home にあるサイドバーの内容と同じ物が各ページにあるので、まとめて翻訳する。 | |
|---|---|---|
| Bookの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/book/Book | |
| Assets.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/assets/Assets.md | |
| AssetsCoffeeScript.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/assets/AssetsCoffeeScript.md | |
| AssetsGoogleClosureCompiler.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/assets/AssetsGoogleClosureCompiler.md | |
| AssetsLess.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/assets/AssetsLess.md | |
| RequireJS-support.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/assets/RequireJS-support.md | |
| Build.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/build/Build.md | |
| SBTDependencies.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/build/SBTDependencies.md | |
| SBTSettings.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/build/SBTSettings.md | |
| SBTSubProjects.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/build/SBTSubProjects.md | |
| SettingsJDBC.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/configuration/SettingsJDBC.md | |
| SettingsLogger.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/configuration/SettingsLogger.md | |
| databaseの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/database | |
| Evolutions.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/evolutions/Evolutions.md | |
| Deploying-CloudFoundry.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/Deploying-CloudFoundry.md | |
| Deploying-to-CloudBees.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/Deploying-to-CloudBees.md | |
| HTTPServer.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/HTTPServer.md | |
| Production.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/Production.md | |
| ProductionConfiguration.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/ProductionConfiguration.md | |
| ProductionDist.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/ProductionDist.md | |
| ProductionHeroku.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/detailledTopics/production/ProductionHeroku.md | |
| Anatomy.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/gettingStarted/Anatomy.md | |
| IDE.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/gettingStarted/IDE.md | |
| Installing.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/gettingStarted/Installing.md | |
| NewApplication.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/gettingStarted/NewApplication.md | |
| PlayConsole.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/gettingStarted/PlayConsole.md | |
| Samples.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/gettingStarted/Samples.md | |
| BuildingFromSource.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/hacking/BuildingFromSource.md | |
| Guidelines.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/hacking/Guidelines.md | |
| Issues.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/hacking/Issues.md | |
| Highlights.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/Highlights.md | |
| Home.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/Home.md | |
| JavaHome.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/JavaHome.md | |
| JavaAkka.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/akka/JavaAkka.md | |
| JavaAsync.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/async/JavaAsync.md | |
| JavaComet.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/async/JavaComet.md | |
| JavaStream.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/async/JavaStream.md | |
| JavaWebSockets.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/async/JavaWebSockets.md | |
| JavaCache.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/cache/JavaCache.md | |
| JavaFormHelpers.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/forms/JavaFormHelpers.md | |
| JavaForms.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/forms/JavaForms.md | |
| JavaGlobal.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/global/JavaGlobal.md | |
| JavaInterceptors.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/global/JavaInterceptors.md | |
| JavaActions.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaActions.md | |
| JavaActionsComposition.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaActionsComposition.md | |
| JavaBodyParsers.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaBodyParsers.md | |
| JavaContentNegotiation.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaContentNegotiation.md | |
| JavaResponse.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaResponse.md | |
| JavaRouting.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaRouting.md | |
| JavaSessionFlash.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/http/JavaSessionFlash.md | |
| JavaI18N.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/i18n/JavaI18N.md | |
| injectの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/inject | |
| JavaJsonRequests.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/json/JavaJsonRequests.md | |
| JavaDatabase.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/sql/JavaDatabase.md | |
| JavaEbean.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/sql/JavaEbean.md | |
| JavaFunctionalTest.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/tests/JavaFunctionalTest.md | |
| JavaTest.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/tests/JavaTest.md | |
| JavaFileUpload.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/upload/JavaFileUpload.md | |
| JavaOpenID.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/ws/JavaOpenID.md | |
| JavaXmlRequests.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/main/xml/JavaXmlRequests.md | |
| JavaTodoList.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/tutorials/todolist/JavaTodoList.md | |
| zentasksの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/javaGuide/tutorials/zentasks | |
| Migration.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/Migration.md | |
| Modules.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/Modules.md | |
| Javacaching.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/sandbox/Javacaching.md | |
| Javaplugin.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/sandbox/Javaplugin.md | |
| Scalacache.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/sandbox/Scalacache.md | |
| Scalahttp.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/sandbox/Scalahttp.md | |
| Scalaplugin.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/sandbox/Scalaplugin.md | |
| Tips.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/sandbox/Tips.md | |
| httpの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/advanced/http | |
| Enumeratees.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/advanced/iteratees/Enumeratees.md | |
| Enumerators.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/advanced/iteratees/Enumerators.md | |
| Iteratees.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/advanced/iteratees/Iteratees.md | |
| routingの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/advanced/routing | |
| ScalaAkka.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/akka/ScalaAkka.md | |
| ScalaAsync.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/async/ScalaAsync.md | |
| ScalaWebSockets.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/async/ScalaWebSockets.md | |
| ScalaCache.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/cache/ScalaCache.md | |
| ScalaFormHelpers.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/forms/ScalaFormHelpers.md | |
| ScalaForms.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/forms/ScalaForms.md | |
| ScalaGlobal.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/global/ScalaGlobal.md | |
| ScalaInterceptors.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/global/ScalaInterceptors.md | |
| ScalaActions.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/http/ScalaActions.md | |
| ScalaActionsComposition.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/http/ScalaActionsComposition.md | |
| ScalaBodyParsers.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/http/ScalaBodyParsers.md | |
| ScalaContentNegotiation.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/http/ScalaContentNegotiation.md | |
| ScalaRouting.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/http/ScalaRouting.md | |
| ScalaSessionFlash.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/http/ScalaSessionFlash.md | |
| ScalaI18N.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/i18n/ScalaI18N.md | |
| ScalaJson.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/json/ScalaJson.md | |
| ScalaJsonCombinators.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/json/ScalaJsonCombinators.md | |
| ScalaJsonInception.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/json/ScalaJsonInception.md | |
| ScalaJsonRequests.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/json/ScalaJsonRequests.md | |
| ScalaJsonTransformers.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/json/ScalaJsonTransformers.md | |
| ScalaAnorm.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/sql/ScalaAnorm.md | |
| ScalaDatabase.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/sql/ScalaDatabase.md | |
| ScalaDatabaseOthers.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/sql/ScalaDatabaseOthers.md | |
| ScalaTemplates.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/templates/ScalaTemplates.md | |
| ScalaFunctionalTest.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/tests/ScalaFunctionalTest.md | |
| ScalaTest.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/tests/ScalaTest.md | |
| ScalaFileUpload.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/upload/ScalaFileUpload.md | |
| ScalaOAuth.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/ws/ScalaOAuth.md | |
| ScalaWS.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/main/ws/ScalaWS.md | |
| ScalaHome.mdの翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/scalaGuide/ScalaHome.md | |
| User-Groups-around-the-World.mdの新規翻訳 | https://github.com/garbagetown/playdocja/blob/master/documentation/2.1/manual/User-Groups-around-the-World.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment