We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3511efb commit d619aceCopy full SHA for d619ace
gitown/gitown.py
@@ -105,7 +105,7 @@ def main():
105
parser.add_argument('--codeowners_filename')
106
args = parser.parse_args()
107
files = args.filenames[0]
108
- ownership_threshold = int(args.ownership_threshold)
+ ownership_threshold = int(args.ownership_threshold or DEFAULT_OWNERSHIP_THRESHOLD)
109
codeowners_filename = args.codeowners_filename
110
111
if len(files) == 0:
@@ -120,7 +120,7 @@ def main():
120
codeowners = CodeOwnersUpdater(
121
files,
122
owners,
123
- ownership_threshold=ownership_threshold or DEFAULT_OWNERSHIP_THRESHOLD,
+ ownership_threshold=ownership_threshold,
124
codeowners_filename=codeowners_filename or DEFAULT_CODEOWNERS_FILE
125
)
126
codeowners.main()
0 commit comments