[ 
https://issues.apache.org/jira/browse/PHOENIX-6314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17265021#comment-17265021
 ] 

ASF GitHub Bot commented on PHOENIX-6314:
-----------------------------------------

virajjasani commented on a change in pull request #1088:
URL: https://github.com/apache/phoenix/pull/1088#discussion_r557549720



##########
File path: dev/misc_utils/git_jira_fix_version_check.py
##########
@@ -0,0 +1,107 @@
+#!/usr/bin/env python
+############################################################################
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+############################################################################
+
+
+import inspect
+import os
+import re
+import subprocess
+
+from jira import JIRA
+
+first_exclude_commit_hash = input("First commit hash to start excluding 
commits from history: ")
+fix_version = input("Fix Version: ")
+
+jira = JIRA({"server": "https://issues.apache.org/jira"})

Review comment:
       Btw I believe this line might remain same because Jira server address 
remains same regardless of projects. However, `project name` and `repository 
directory` are parameters.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Utility to identify git commit / Jira fixVersion discrepancies for RC 
> preparation
> ---------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6314
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6314
>             Project: Phoenix
>          Issue Type: Task
>    Affects Versions: 5.0.0, 4.15.0
>            Reporter: Viraj Jasani
>            Assignee: Viraj Jasani
>            Priority: Major
>             Fix For: 5.1.0, 4.16.0
>
>
> As part of RC preparation,  we need to identify all git commits that landed 
> on release branch, however their corresponding Jira is either not resolved 
> yet or does not contain expected fixVersions. Only when we have git commits 
> and corresponding Jiras with expected fixVersion resolved, we get all such 
> Jiras included in auto-generated CHANGES.md as per Yetus changelog generator.
> Proposal of this Jira is to provide such script that can be useful for all 
> upcoming RC preparations and list down all Jiras where we need manual 
> intervention. This utility script should use Jira API to retrieve individual 
> fields and use git log to loop through commit history.
> The script should identify these issues:
>  # commit is reverted as per commit message
>  # commit does not contain Jira number format PHOENIX-XXXX in message
>  # Jira does not have expected fixVersion
>  # Jira has expected fixVersion, but it is not yet resolved
> It can take inputs as:
>  # First commit hash to start excluding commits from history
>  # Fix Version



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to