mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Remove actionable label from docathon label sync script (#155713)
Make sure we don't propagate actionable label in docathon sync label script. Pull Request resolved: https://github.com/pytorch/pytorch/pull/155713 Approved by: https://github.com/clee2000
This commit is contained in:
parent
1e9ddf510f
commit
e15686b40d
4
.github/scripts/docathon-label-sync.py
vendored
4
.github/scripts/docathon-label-sync.py
vendored
|
|
@ -39,7 +39,9 @@ def main() -> None:
|
||||||
pull_request_label_names = [label.name for label in pull_request_labels]
|
pull_request_label_names = [label.name for label in pull_request_labels]
|
||||||
issue_label_names = [label.name for label in issue_labels]
|
issue_label_names = [label.name for label in issue_labels]
|
||||||
labels_to_add = [
|
labels_to_add = [
|
||||||
label for label in issue_label_names if label not in pull_request_label_names
|
label
|
||||||
|
for label in issue_label_names
|
||||||
|
if label not in pull_request_label_names and label != "actionable"
|
||||||
]
|
]
|
||||||
if not labels_to_add:
|
if not labels_to_add:
|
||||||
print("The pull request already has the same labels.")
|
print("The pull request already has the same labels.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user