Slide 21
Slide 21 text
実装の紹介
● ラベルの追加
● Githubの情報
# Add new label to repo. Use octolit api.
def add_label(name, color='fef2c0')
github.api.add_label(repo, name, color)
end
def labels
@labels ||= github.api.labels(repo)
end
def repo
@repository ||= github.pr_json[:base][:repo][:full_name]
end
Pull requestのjsonが返る