Skip to content

Commit ccce00a

Browse files
committed
ORC-2139: Improve create_orc_jira.py to provide no-commit feature
### What changes were proposed in this pull request? Add `-n`/`--no-commit` option to `dev/create_orc_jira.py` to skip the commit step after branch creation. ### Why are the changes needed? When there are no changes to commit, `git commit -a` fails. This option allows users to create a JIRA issue and branch without forcing a commit. ### How was this patch tested? Manual testing with `--help` to verify the new option is displayed, and with `-n` flag to confirm the commit step is skipped. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.6) Closes #2590 from dongjoon-hyun/ORC-2139. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent ef96e73 commit ccce00a

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)