We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441d23d commit 4b6092bCopy full SHA for 4b6092b
app/ruby/app-issue-creator/server.rb
@@ -5,15 +5,17 @@
5
require 'octokit'
6
7
begin
8
- GITHUB_APP_ID = contents["app_id"]
+ GITHUB_APP_ID = ENV.fetch("GITHUB_APP_ID")
9
path_to_pem = './private-key.pem'
10
GITHUB_PRIVATE_KEY = File.read(path_to_pem)
11
rescue KeyError
12
$stderr.puts "To run this script, please set the following environment variables:"
13
$stderr.puts "- GITHUB_APP_ID: GitHub App ID"
14
+ exit 1
15
rescue Exception => e
- $stderr.puts "To run this script, please copy you App's private key to this directory"
16
+ $stderr.puts "To run this script, please copy your App's private key to this directory"
17
$stderr.puts " and rename it to `private_key.pem`"
18
19
end
20
21
@client = nil
0 commit comments