Skip to content

Commit

Permalink
XXX: Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Jul 16, 2024
1 parent 663d958 commit 7bf7809
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/issue-subscriber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
15 changes: 7 additions & 8 deletions llvm/utils/git/github-automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 7bf7809

Please sign in to comment.