Skip to content

Commit

Permalink
changed the token scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak5598 committed Jul 11, 2024
1 parent 18d3322 commit 3e7770c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sammich/plugins/create_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@

import settings

# Load secrets
secrets = dotenv_values(".secrets")
github_token = secrets["github_token"]


class CreateIssuePlugin(MachineBasePlugin):
@command("/ghissue")
async def createissue(self, command):
channel_id = command._cmd_payload["channel_id"]
title = command.text.strip()

github_token = secrets["github_token"]
github = Github(github_token)

try:
Expand Down

0 comments on commit 3e7770c

Please sign in to comment.