[llvm] workflows/pr-subscriber: Handle libc++ and libc++abi labels (PR #66029)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 12:46:50 PDT 2023
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/66029:
>From d32794fc9b458894fbe0df98502b6ad0131588d8 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Mon, 11 Sep 2023 16:28:37 -0700
Subject: [PATCH 1/3] workflows/pr-subscriber: Handle libc++ and libc++abi
labels
---
llvm/utils/git/github-automation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
index 7df20ea8457155b..3cea9861a9570cf 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -82,7 +82,7 @@ def __init__(self, token: str, repo: str, pr_number: int, label_name: str):
self.repo = github.Github(token).get_repo(repo)
self.org = github.Github(token).get_organization(self.repo.organization.login)
self.pr = self.repo.get_issue(pr_number).as_pull_request()
- self._team_name = "pr-subscribers-{}".format(label_name).lower()
+ self._team_name = "pr-subscribers-{}".format(label_name.replace('+', 'x')).lower()
def run(self) -> bool:
patch = None
>From 7c86dfea3ff46045662dbde4e71ccaab1ad816a0 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Mon, 11 Sep 2023 16:40:58 -0700
Subject: [PATCH 2/3] Fix formatting
---
llvm/utils/git/github-automation.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
index 3cea9861a9570cf..ac1dbd6c40bc856 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -82,7 +82,9 @@ def __init__(self, token: str, repo: str, pr_number: int, label_name: str):
self.repo = github.Github(token).get_repo(repo)
self.org = github.Github(token).get_organization(self.repo.organization.login)
self.pr = self.repo.get_issue(pr_number).as_pull_request()
- self._team_name = "pr-subscribers-{}".format(label_name.replace('+', 'x')).lower()
+ self._team_name = "pr-subscribers-{}".format(
+ label_name.replace('+', 'x')
+ ).lower()
def run(self) -> bool:
patch = None
>From 00bb53c89ba8d3109dd1d1dd3e93ac7b4e8838a9 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 12 Sep 2023 12:46:22 -0700
Subject: [PATCH 3/3] Fix formatting
---
llvm/utils/git/github-automation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
index ac1dbd6c40bc856..0aa1769eb3eb01e 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -83,7 +83,7 @@ def __init__(self, token: str, repo: str, pr_number: int, label_name: str):
self.org = github.Github(token).get_organization(self.repo.organization.login)
self.pr = self.repo.get_issue(pr_number).as_pull_request()
self._team_name = "pr-subscribers-{}".format(
- label_name.replace('+', 'x')
+ label_name.replace("+", "x")
).lower()
def run(self) -> bool:
More information about the llvm-commits
mailing list