Skip to content

Commit ee80286

Browse files
committed
try and add documentation label to changelog PR
1 parent d6a1f76 commit ee80286

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jupyter_releaser/lib.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ def make_changelog_pr(auth, branch, repo, title, commit_message, body, dry_run=F
182182
# title, head, base, body, maintainer_can_modify, draft, issue
183183
pull = gh.pulls.create(title, head, base, body, maintainer_can_modify, False, None)
184184

185+
# Try to add the documentation label to the PR.
186+
number = pull.number
187+
try:
188+
gh.issues.add_labels(number, ["documentation"])
189+
except Exception as e:
190+
print(e)
191+
185192
util.actions_output("pr_url", pull.html_url)
186193

187194

0 commit comments

Comments
 (0)