-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gh service #75
Add gh service #75
Conversation
...n-modernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/github/GHService.java
Outdated
Show resolved
Hide resolved
...n-modernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/github/GHService.java
Outdated
Show resolved
Hide resolved
...n-modernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/github/GHService.java
Outdated
Show resolved
Hide resolved
...n-modernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/github/GHService.java
Outdated
Show resolved
Hide resolved
...ernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/impl/PluginModernizer.java
Outdated
Show resolved
Hide resolved
Some minor code issues/improvement and I think we can do ahead with this first integration with JGit/GitHub Also don't forget to document on the README.md the new parameter of needed environment variables |
Tested manually with dry run option. |
Thread.sleep(5000); // Ensure the completion of Fork | ||
LOG.info("Repository forked successfully."); | ||
} else { | ||
LOG.info("Repository already forked."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please track an issue to ensure the GH repo is in sync with upstream. It should be possible via API
I'm using generally the gh repo sync username/repo
Without sync existing repo there is a risk to open branches from outdated main branch
Added GH service class which allows us to fork and clone plugin, commit the changes (after transformation) and PR creation.
Note: GH token and username is passed through system env variables.
This is a rough PR, open to improvements. Thanks!
Testing done
This PR is automated with the tool starting from forking, cloning and PR creation
Log file
Submitter checklist