This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new ccce00ad8 ORC-2139: Improve `create_orc_jira.py` to provide no-commit 
feature
ccce00ad8 is described below

commit ccce00ad850435d158b3b51ab40b3e6a9e5acba0
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Mar 23 14:01:37 2026 -0700

    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 <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 dev/create_orc_jira.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev/create_orc_jira.py b/dev/create_orc_jira.py
index 4b3120bee..b7d3f1639 100755
--- a/dev/create_orc_jira.py
+++ b/dev/create_orc_jira.py
@@ -121,6 +121,7 @@ def main():
     parser.add_argument("-t", "--type", help="Issue type to create when no 
parent is specified (e.g. Bug). Defaults to Improvement.")
     parser.add_argument("-v", "--version", help="Version to use for the issue")
     parser.add_argument("-c", "--component", help="Component for the issue")
+    parser.add_argument("-n", "--no-commit", action="store_true", help="Skip 
creating a commit")
     args = parser.parse_args()
 
     if args.parent:
@@ -133,7 +134,10 @@ def main():
 
     create_and_checkout_branch(jira_id)
 
-    create_commit(jira_id, args.title)
+    if not args.no_commit:
+        create_commit(jira_id, args.title)
+    else:
+        print("Skipped commit creation")
 
 
 if __name__ == "__main__":

Reply via email to