forked from bazelbuild/bazel-central-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bazelbuild#12 from bazelbuild/maintainer
Update README.md and fix add_modules.py about module maintainer
- Loading branch information
Showing
2 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,22 +130,21 @@ def from_user_input(): | |
|
||
def get_maintainers_from_input(): | ||
maintainers = [] | ||
while True: | ||
prefix = "a" | ||
explain = " (See https://github.com/bazelbuild/bazel-central-registry/tree/main#module-maintainer)" | ||
while yes_or_no(f"Do you want to add {prefix} maintainer for this module?{explain}", False): | ||
maintainer = {} | ||
name = ask_input( | ||
"Please enter maintainer name [default: The Bazel Team]: ") or "The Bazel Team" | ||
name = ask_input("Please enter maintainer name: ") | ||
maintainer["name"] = name | ||
email = ask_input( | ||
"Please enter the maintainer's email address [default: [email protected]]: ") \ | ||
or "[email protected]" | ||
email = ask_input("Please enter the maintainer's email address: ") | ||
maintainer["email"] = email | ||
username = ask_input( | ||
"(Optional) Please enter the maintainer's github username: ") | ||
if username: | ||
maintainer["github"] = username | ||
maintainers.append(maintainer) | ||
if not yes_or_no("Do you want to add another maintainer?", False): | ||
break | ||
prefix = "another" | ||
explain = "" | ||
return maintainers | ||
|
||
|
||
|