mirror of
https://github.com/bayandin/awesome-awesomeness.git
synced 2025-04-14 17:33:02 -04:00
Update Dangerfile
This commit is contained in:
parent
f94c4c9e17
commit
a6d32589d8
1 changed files with 9 additions and 2 deletions
11
Dangerfile
11
Dangerfile
|
@ -28,5 +28,12 @@ if has_readme_changes
|
|||
markdown j['message']
|
||||
end
|
||||
end
|
||||
json = pr_json
|
||||
require ".danger/danger.rb"
|
||||
if has_readme_changes
|
||||
require 'rubygems'
|
||||
require 'json'
|
||||
require 'octokit'
|
||||
client = Octokit::Client.new(:access_token => GITHUB_DANGER_API_TOKEN)
|
||||
user = client.user
|
||||
user.login
|
||||
data = JSON.parse(json)
|
||||
Octokit.add_labels_to_an_issue("bayandin/awesome-awesomeness", data['number'], ['Changes Required'])
|
||||
|
|
Loading…
Add table
Reference in a new issue