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
119
119
# Instantiate an Octokit client, authenticated as an installation of a
120
120
# GitHub App, to run API operations.
121
121
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)
125
125
end
126
126
127
127
# 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
113
113
# Instantiate an Octokit client, authenticated as an installation of a
114
114
# GitHub App, to run API operations.
115
115
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)
119
119
end
120
120
121
121
# Check X-Hub-Signature to confirm that this webhook was generated by
You can’t perform that action at this time.
0 commit comments