Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/scripts/label_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
LABEL_ERR_MSG = f"""# {LABEL_ERR_MSG_TITLE}
If your changes are user facing and intended to be a part of release notes, please use a label starting with `release notes:`.

If not, please add the `release notes: n/a (exclude)` label.
If not, please add the `release notes: none` label.

To add a label, you can comment to pytorchbot, for example
`@pytorchbot label "release notes: n/a (exclude)"`
`@pytorchbot label "release notes: none"`

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.
Expand Down Expand Up @@ -115,7 +115,7 @@ def has_required_labels(pr: "GitHubPR") -> bool:
pr_labels = pr.get_labels()
# Check if PR is not user facing
is_not_user_facing_pr = any(
label.strip() == "release notes: n/a (exclude)" for label in pr_labels
label.strip() == "release notes: none" for label in pr_labels
)
return is_not_user_facing_pr or any(
label.strip() in get_release_notes_labels(pr.org, pr.project)
Expand Down
Loading