Skip to content

Commit

Permalink
Merge pull request #3 from msyyc/create_pr
Browse files Browse the repository at this point in the history
Update token
  • Loading branch information
BigCat20196 authored Aug 5, 2021
2 parents a4ef616 + 29a7d79 commit 920db36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/auto_release/create_auto_release_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

from ghapi.all import GhApi


ISSUE_LINK = ''
PULL_NUMBER = 0
NEW_BRANCH = ''
TARGET_BRANCH = ''

_LOG = logging.getLogger()
USER_TOKEN = os.getenv('USER_TOKEN', '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')
USER_TOKEN = os.getenv('USR_ TOKEN')


def create_auto_release_pr(api):
Expand All @@ -38,7 +37,6 @@ def main():
# api.pulls.update(pull_number=PULL_NUMBER, body=ISSUE_LINK)



if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Add Issue link',
Expand All @@ -59,6 +57,5 @@ def main():
USER_NAME = args.user_name
ISSUE_LINK = args.issue_link


main()
# python create_auto_release_pr.py "$(new_branch)" "$(target_branch)" $USER_NAME $ISSUE_LINK

0 comments on commit 920db36

Please sign in to comment.