This application can be used to clone Quarkus issues from GitHub into product JIRA in a semi-automated interactive way. It finds PR candidates using the backport projects (for example, this one for the 3.20 branch.
WARNING: This script was written specifically for the Quarkus project and was not writen with other projects in mind. Therefore, there will be some parts of the code that only apply to the Quarkus process.
- You need to have permission to read projects in the quarkusio organization.
- You need to have permission to create issues in the product JIRA.
- Generate a GitHub (classic, not fine-grained!) token with the
projectpermission and set it as theIMPORTS_GITHUB_TOKENenvironment variable. - Generate a JIRA personal access token, convert it to base64 (
echo -n email@example.com:TOKEN | base64) and set it as theIMPORTS_JIRA_TOKENenvironment property. - Run the app (using whichever method you prefer -
mvn quarkus:dev,mvn package && java -jar ...,quarkus run,...).
Then, open the app (by default at http://localhost:8080) and follow the instructions. On the initial page, you will be asked to select a branch (3.20, 3.15,...) and a target release (3.20.3) for which you want to import issues.
Then, the app will show you a list of PRs that are candidates for import. You can then select which ones to import. For each PR, there are two buttons in the rightmost column - "Create as a bug" and "Create as a component upgrade". It is up to you to decide which issue type is more appropriate.