This repository was archived by the owner on Jun 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ def authenticate_app
119119 # Instantiate an Octokit client, authenticated as an installation of a
120120 # GitHub App, to run API operations.
121121 def authenticate_installation ( payload )
122- installation_id = payload [ 'installation' ] [ 'id' ]
123- installation_token = @app_client . create_app_installation_access_token ( installation_id ) [ :token ]
124- @installation_client = Octokit ::Client . new ( bearer_token : installation_token )
122+ @ installation_id = payload [ 'installation' ] [ 'id' ]
123+ @ installation_token = @app_client . create_app_installation_access_token ( @ installation_id) [ :token ]
124+ @installation_client = Octokit ::Client . new ( bearer_token : @ installation_token)
125125 end
126126
127127 # Check X-Hub-Signature to confirm that this webhook was generated by
Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ def authenticate_app
113113 # Instantiate an Octokit client, authenticated as an installation of a
114114 # GitHub App, to run API operations.
115115 def authenticate_installation ( payload )
116- installation_id = payload [ 'installation' ] [ 'id' ]
117- installation_token = @app_client . create_app_installation_access_token ( installation_id ) [ :token ]
118- @installation_client = Octokit ::Client . new ( bearer_token : installation_token )
116+ @ installation_id = payload [ 'installation' ] [ 'id' ]
117+ @ installation_token = @app_client . create_app_installation_access_token ( @ installation_id) [ :token ]
118+ @installation_client = Octokit ::Client . new ( bearer_token : @ installation_token)
119119 end
120120
121121 # Check X-Hub-Signature to confirm that this webhook was generated by
You can’t perform that action at this time.
0 commit comments