Update PRManager.py
authorJay Cho <chojoong@gmail.com>
Tue, 18 Sep 2018 06:20:27 +0000 (15:20 +0900)
committerGitHub <noreply@github.com>
Tue, 18 Sep 2018 06:20:27 +0000 (15:20 +0900)
tools/scripts/CodeChecker/PRManager.py

index 3b4abdd..9035ff2 100644 (file)
@@ -2,10 +2,9 @@ import os
 from github import Github
 
 gitHubRepo = "Samsung/TizenFX"
-token = os.environ['TizenAPI-Bot-Token']
 
 class PRManager:
-    def __init__(self, prNumber):
+    def __init__(self, token, prNumber):
         self._gh = Github(token)
         self.pr = self._gh.get_repo(gitHubRepo).get_pull(prNumber)
 
@@ -59,4 +58,4 @@ if __name__ == "__main__":
     gh = PRManager(pr)
     for file in gh.changedFiles:
         print("Chaged File: " + file.filename)
-    
\ No newline at end of file
+