fix(resolver): Allow using github.token in Actions and fix base_domain handling (#7934)

This commit is contained in:
Tei1988
2025-04-19 05:50:59 +09:00
committed by GitHub
parent 0e0f043e59
commit 523c6d03c1
4 changed files with 11 additions and 3 deletions

View File

@@ -584,6 +584,12 @@ def main() -> None:
parser = argparse.ArgumentParser(
description='Send a pull request to Github or Gitlab.'
)
parser.add_argument(
'--selected-repo',
type=str,
default=None,
help='repository to send pull request in form of `owner/repo`.',
)
parser.add_argument(
'--token',
type=str,
@@ -677,7 +683,7 @@ def main() -> None:
)
username = my_args.username if my_args.username else os.getenv('GIT_USERNAME')
platform = identify_token(token, None, my_args.base_domain)
platform = identify_token(token, my_args.selected_repo, my_args.base_domain)
if platform == Platform.INVALID:
raise ValueError('Token is invalid.')