Skip to content

Commit c7fcfa7

Browse files
authored
Add files via upload
1 parent 69a3fda commit c7fcfa7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

addons/github-integration/scripts/Commit.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func connect_signals():
116116
func request_completed(result, response_code, headers, body ):
117117
get_parent().print_debug_message("REQUEST TO API : Request exited with code %s" % response_code)
118118
if response_code == 422:
119-
get_parent().print_debug_message(str(JSON.parse(body.get_string_from_utf8()).result))
119+
get_parent().print_debug_message(JSON.parse(body.get_string_from_utf8()).result)
120120
if result == 0:
121121
match requesting:
122122
REQUESTS.UPLOAD:
@@ -209,7 +209,7 @@ func request_completed(result, response_code, headers, body ):
209209
Loading.hide()
210210

211211

212-
func load_branches(br : Array, s_r : RepositoryItem, ct : Array, gitignore : Dictionary) :
212+
func load_branches(br : Array, s_r : PanelContainer, ct : Array, gitignore : Dictionary) :
213213
_branch.clear()
214214
repo_selected = s_r._repository
215215
branches_contents = ct

addons/github-integration/scripts/Repo.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var contributor_class : PackedScene = load("res://addons/github-integration/scen
6868
enum REQUESTS { REPOS = 0, GISTS = 1, UP_REPOS = 2, UP_GISTS = 3, DELETE = 4, COMMIT = 5, BRANCHES = 6, CONTENTS = 7, TREES = 8, DELETE_RESOURCE = 9, END = -1 , FILE_CONTENT = 10 ,NEW_BRANCH = 11 , PULLING = 12, COLLABORATOR = 13 }
6969
var requesting
7070

71-
var current_repo : RepositoryItem
71+
var current_repo : PanelContainer
7272
var html : String
7373
var current_branch
7474
var branches = []
@@ -146,7 +146,7 @@ func load_icons(r : Dictionary):
146146
git_lfs.set_button_icon(IconLoaderGithub.load_icon_from_name("git_lfs-gray"))
147147
add_collaborator_btn.set_button_icon(IconLoaderGithub.load_icon_from_name("add-gray"))
148148

149-
func open_repository(repository_item : RepositoryItem) -> void:
149+
func open_repository(repository_item : PanelContainer) -> void:
150150
_clear()
151151

152152
# Load repository's info ....

addons/github-integration/scripts/UserPanel.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func new_repo():
161161
RepoDialog.popup()
162162

163163
# Items clicked ...............................
164-
func repo_clicked(clicked_repo : RepositoryItem):
164+
func repo_clicked(clicked_repo : PanelContainer):
165165
for repository in repository_list:
166166
if repository!=clicked_repo:
167167
repository.deselect()
@@ -172,7 +172,7 @@ func gist_clicked(clicked_gist : GistItem):
172172
gist.deselect()
173173

174174
# Items selected ...............................
175-
func repo_selected(repository : RepositoryItem):
175+
func repo_selected(repository : PanelContainer):
176176
get_parent().print_debug_message("opening selected repository...")
177177
get_parent().loading(true)
178178
get_parent().Repo.open_repository(repository)

0 commit comments

Comments
 (0)