Skip to content

Commit 455b98b

Browse files
committed
Allow changing labels description
The GitHub API allows to change labels description: https://docs.github.com/en/rest/reference/issues#update-a-label
1 parent 02ec883 commit 455b98b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/github_api/client/issues/labels.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
module Github
66
class Client::Issues::Labels < API
77

8-
VALID_LABEL_INPUTS = %w[ name color ].freeze
8+
VALID_LABEL_INPUTS = %w[ name color description ].freeze
99

1010
# List all labels for a repository
1111
#

spec/fixtures/issues/label.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
33
"name": "bug",
4-
"color": "f29513"
4+
"color": "f29513",
5+
"description": "Something isn't working"
56
}

0 commit comments

Comments
 (0)