Skip to content

Commit 9def129

Browse files
committed
ORC-2139: Improve create_orc_jira.py to provide no-commit feature
1 parent ef96e73 commit 9def129

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

dev/create_orc_jira.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def main():
121121
parser.add_argument("-t", "--type", help="Issue type to create when no parent is specified (e.g. Bug). Defaults to Improvement.")
122122
parser.add_argument("-v", "--version", help="Version to use for the issue")
123123
parser.add_argument("-c", "--component", help="Component for the issue")
124+
parser.add_argument("-n", "--no-commit", action="store_true", help="Skip creating a commit")
124125
args = parser.parse_args()
125126

126127
if args.parent:
@@ -133,7 +134,10 @@ def main():
133134

134135
create_and_checkout_branch(jira_id)
135136

136-
create_commit(jira_id, args.title)
137+
if not args.no_commit:
138+
create_commit(jira_id, args.title)
139+
else:
140+
print("Skipped commit creation")
137141

138142

139143
if __name__ == "__main__":

0 commit comments

Comments
 (0)