Skip to content

Commit 8d794e3

Browse files
committed
adds docs-identity monitoriing capability to repo mon
1 parent f2574c5 commit 8d794e3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs-repo-monitor/app.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,15 @@
5353
print "PR created."
5454
end
5555

56+
end
57+
58+
post '/sso' do
59+
60+
client = Octokit::Client.new :access_token => ENV['git_token']
61+
@pr = JSON.parse(request.body.read)
62+
if @pr['action'] == "opened"
63+
@repo = @pr['repo']['full_name']
64+
@num = @pr['number']
65+
client.add_comment(@repo, @num, "Docs team: find out if these changes need to be made to the master-pws branch as well, if so cherry-pick them.")
66+
end
5667
end

0 commit comments

Comments
 (0)