diff --git a/.github/workflows/issue-subscriber.yml b/.github/workflows/issue-subscriber.yml index ef4fdf44181938d..e57a80aeb73ec88 100644 --- a/.github/workflows/issue-subscriber.yml +++ b/.github/workflows/issue-subscriber.yml @@ -11,7 +11,6 @@ permissions: jobs: auto-subscribe: runs-on: ubuntu-latest - if: github.repository == 'llvm/llvm-project' steps: - name: Checkout Automation Script uses: actions/checkout@v4 @@ -32,6 +31,7 @@ jobs: run: | python3 ./github-automation.py \ --token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \ + --repo $GITHUB_REPO \ issue-subscriber \ --issue-number '${{ github.event.issue.number }}' \ --label-name "$LABEL_NAME" diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py index 3e382548591c482..89208eff1cffb42 100755 --- a/llvm/utils/git/github-automation.py +++ b/llvm/utils/git/github-automation.py @@ -71,19 +71,18 @@ def __init__(self, token: str, repo: str, issue_number: int, label_name: str): self._team_name = "issue-subscribers-{}".format(label_name).lower() def run(self) -> bool: - team = _get_current_team(self.team_name, self.org.get_teams()) - if not team: - print(f"couldn't find team named {self.team_name}") - return False +# team = _get_current_team(self.team_name, self.org.get_teams()) +# if not team: +# print(f"couldn't find team named {self.team_name}") +# return False comment = "" - if team.slug == "issue-subscribers-good-first-issue": - comment = "{}\n".format(beginner_comment) - self.issue.create_comment(comment) +# if team.slug == "issue-subscribers-good-first-issue": +# comment = "{}\n".format(beginner_comment) +# self.issue.create_comment(comment) body = escape_description(self.issue.body) comment = f""" -@llvm/{team.slug} Author: {self.issue.user.name} ({self.issue.user.login})