diff --git a/plugin-modernizer-core/src/main/jte/pr-body-AddCodeOwner.jte b/plugin-modernizer-core/src/main/jte/pr-body-AddCodeOwner.jte new file mode 100644 index 000000000..ef1733331 --- /dev/null +++ b/plugin-modernizer-core/src/main/jte/pr-body-AddCodeOwner.jte @@ -0,0 +1,20 @@ +@import io.jenkins.tools.pluginmodernizer.core.model.Plugin +@import io.jenkins.tools.pluginmodernizer.core.model.Recipe +@param Plugin plugin +@param Recipe recipe +Hello `${plugin.getName()}` developers! :wave: + +This is an automated pull request created by the [Jenkins Plugin Modernizer](https://github.com/jenkins-infra/plugin-modernizer-tool) tool. The tool has applied the following recipes to modernize the plugin: +
+ ${recipe.getDisplayName()} +

${recipe.getName()}

+
${recipe.getDescription()}
+
+ +## Why is this important? + +To improve GitHub integration and enhance the [plugin health score](https://plugins.jenkins.io/${plugin.getName()}/healthscore/). + +## Testing Done + +None. We rely on GitHub checks of the pull request. diff --git a/plugin-modernizer-core/src/main/jte/pr-body-SetupDependabot.jte b/plugin-modernizer-core/src/main/jte/pr-body-SetupDependabot.jte new file mode 100644 index 000000000..92638e7da --- /dev/null +++ b/plugin-modernizer-core/src/main/jte/pr-body-SetupDependabot.jte @@ -0,0 +1,32 @@ +@import io.jenkins.tools.pluginmodernizer.core.model.Plugin +@import io.jenkins.tools.pluginmodernizer.core.model.Recipe +@param Plugin plugin +@param Recipe recipe +Hello `${plugin.getName()}` developers! :wave: + +This is an automated pull request created by the [Jenkins Plugin Modernizer](https://github.com/jenkins-infra/plugin-modernizer-tool) tool. The tool has applied the following recipes to modernize the plugin: +
+ ${recipe.getDisplayName()} +

${recipe.getName()}

+
${recipe.getDescription()}
+
+ +### Why Automate with Dependabot? + +Managing dependencies can be a time-consuming and challenging task, especially when maintaining a Jenkins plugin. By automating this process with Dependabot, you open the door to a host of advantages: + +- **Keep Pace with Innovation:** Dependabot ensures your plugin stays at the cutting edge by promptly updating it with the latest features and improvements from upstream libraries. + +- **Strengthen Security:** Staying current with dependency updates is critical for security. Dependabot automatically flags and updates any vulnerable dependencies, helping to shield your plugin from potential exploits. + +- **Save Time and Effort:** Spend less time managing dependencies and more time innovating. Dependabot automatically submits pull requests for new releases, allowing you to effortlessly review and integrate updates. + +- **Enhance Compatibility and Stability:** Regular updates enhance both performance and compatibility with other plugins and the Jenkins core, ensuring a smooth experience for your users. + +- **Focus on What Matters:** With Dependabot, you can concentrate on developing new features and fixing bugs, while it takes care of keeping everything up-to-date under the hood. + +Setting up Dependabot exemplifies a proactive approach to modern software maintenance, aligning your plugin with the best practices in the industry. We invite you to test these updates and embrace a maintenance workflow that is efficient and secure. + +Your insights and feedback are invaluable to us, and we'll be here to support you through this transition as needed. + + diff --git a/plugin-modernizer-core/src/main/jte/pr-title-AddCodeOwner.jte b/plugin-modernizer-core/src/main/jte/pr-title-AddCodeOwner.jte new file mode 100644 index 000000000..cb4dd0a88 --- /dev/null +++ b/plugin-modernizer-core/src/main/jte/pr-title-AddCodeOwner.jte @@ -0,0 +1,5 @@ +@import io.jenkins.tools.pluginmodernizer.core.model.Plugin +@import io.jenkins.tools.pluginmodernizer.core.model.Recipe +@param Plugin plugin +@param Recipe recipe +chore(github): Add CODEOWNERS diff --git a/plugin-modernizer-core/src/main/jte/pr-title-SetupDependabot.jte b/plugin-modernizer-core/src/main/jte/pr-title-SetupDependabot.jte index c2fe0e5a9..f3db609e2 100644 --- a/plugin-modernizer-core/src/main/jte/pr-title-SetupDependabot.jte +++ b/plugin-modernizer-core/src/main/jte/pr-title-SetupDependabot.jte @@ -2,4 +2,4 @@ @import io.jenkins.tools.pluginmodernizer.core.model.Recipe @param Plugin plugin @param Recipe recipe -Automate dependency updates with Dependabot \ No newline at end of file +chore(dependencies): Automate dependency updates with Dependabot diff --git a/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/TemplateUtilsTest.java b/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/TemplateUtilsTest.java index ff499d40b..1408d3c9c 100644 --- a/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/TemplateUtilsTest.java +++ b/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/TemplateUtilsTest.java @@ -363,7 +363,7 @@ public void testFriendlyPrTitleSetupDependabot() { String result = TemplateUtils.renderPullRequestTitle(plugin, recipe); // Assert - assertEquals("Automate dependency updates with Dependabot", result); + assertEquals("chore(dependencies): Automate dependency updates with Dependabot", result); } @Test