[SPARK-57862][INFRA] Allow create_spark_jira.py to set the issue description#56938
Open
MaxGekk wants to merge 1 commit into
Open
[SPARK-57862][INFRA] Allow create_spark_jira.py to set the issue description#56938MaxGekk wants to merge 1 commit into
MaxGekk wants to merge 1 commit into
Conversation
…ription ### What changes were proposed in this pull request? This PR extends `dev/create_spark_jira.py` (and its helper `dev/spark_jira_utils.py`) so the JIRA description can be set at creation time: - Add `-d`/`--description` and `--description-file` options (mutually exclusive) to `create_spark_jira.py`. - Add a `description` parameter to `create_jira_issue` and use it in the issue payload (previously hardcoded to an empty string). Backward compatible: without the new flags the behavior is unchanged. ### Why are the changes needed? `create_jira_issue` hardcoded `"description": ""`, so tickets created via the script had no body and the description had to be added manually afterwards. When creating many issues at once (e.g. a batch of sub-tasks under an umbrella), populating the description at creation time is much more efficient. ### Does this PR introduce _any_ user-facing change? No. This is a developer tooling change; without the new flags the behavior is unchanged. ### How was this patch tested? Manually created JIRA sub-tasks with `--description-file` and verified the description on the resulting issues. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Cursor
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR extends
dev/create_spark_jira.py(and its helperdev/spark_jira_utils.py) so the JIRA description can be set at creation time:-d/--descriptionand--description-fileoptions (mutually exclusive) tocreate_spark_jira.py.descriptionparameter tocreate_jira_issueand use it in the issue payload (previously hardcoded to an empty string).Backward compatible: without the new flags the behavior is unchanged.
Why are the changes needed?
create_jira_issuehardcoded"description": "", so tickets created via the script had no body and the description had to be added manually afterwards. When creating many issues at once (e.g. a batch of sub-tasks under an umbrella), populating the description at creation time is much more efficient.Does this PR introduce any user-facing change?
No. This is a developer tooling change; without the new flags the behavior is unchanged.
How was this patch tested?
Manually created JIRA sub-tasks with
--description-fileand verified the description on the resulting issues.Was this patch authored or co-authored using generative AI tooling?
Generated-by: Cursor