Skip to content

Commit fe23c86

Browse files
gounthardependabot[bot]PalashChitnavisjonesbusy
authored andcommitted
fix(jte): Add custom PR title and body (jenkins-infra#626)
* chore(deps): bump org.kohsuke.stapler:stapler Bumps [org.kohsuke.stapler:stapler](https://github.com/jenkinsci/stapler) from 1940.v41211a_a_b_b_d8b_ to 1942.v708e07325402. - [Release notes](https://github.com/jenkinsci/stapler/releases) - [Changelog](https://github.com/jenkinsci/stapler/blob/master/CHANGELOG.md) - [Commits](https://github.com/jenkinsci/stapler/commits) --- updated-dependencies: - dependency-name: org.kohsuke.stapler:stapler dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Update README.md * Cleanup and fix tests * Add a Java ISO visitor for metadata collection * Demonstrate test for jenkins-infra#580 * Reduce build time by skipping by default slow integration tests and setup Junit 5 parallel * WiP * fix(jte): Use conventional commit for the title, and create a custom body for the Dependabot recipe. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Palash Chitnavis <[email protected]> Co-authored-by: Valentin Delaye <[email protected]>
1 parent 735e143 commit fe23c86

File tree

5 files changed

+59
-2
lines changed

5 files changed

+59
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@import io.jenkins.tools.pluginmodernizer.core.model.Plugin
2+
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe
3+
@param Plugin plugin
4+
@param Recipe recipe
5+
Hello `${plugin.getName()}` developers! :wave:
6+
7+
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:
8+
<details aria-label="Recipe details for ${recipe.getDisplayName()}">
9+
<summary>${recipe.getDisplayName()}</summary>
10+
<p><em>${recipe.getName()}</em></p>
11+
<blockquote>${recipe.getDescription()}</blockquote>
12+
</details>
13+
14+
## Why is this important?
15+
16+
To improve GitHub integration and enhance the [plugin health score](https://plugins.jenkins.io/${plugin.getName()}/healthscore/).
17+
18+
## Testing Done
19+
20+
None. We rely on GitHub checks of the pull request.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@import io.jenkins.tools.pluginmodernizer.core.model.Plugin
2+
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe
3+
@param Plugin plugin
4+
@param Recipe recipe
5+
Hello `${plugin.getName()}` developers! :wave:
6+
7+
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:
8+
<details aria-label="Recipe details for ${recipe.getDisplayName()}">
9+
<summary>${recipe.getDisplayName()}</summary>
10+
<p><em>${recipe.getName()}</em></p>
11+
<blockquote>${recipe.getDescription()}</blockquote>
12+
</details>
13+
14+
### Why Automate with Dependabot?
15+
16+
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:
17+
18+
- **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.
19+
20+
- **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.
21+
22+
- **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.
23+
24+
- **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.
25+
26+
- **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.
27+
28+
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.
29+
30+
Your insights and feedback are invaluable to us, and we'll be here to support you through this transition as needed.
31+
32+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import io.jenkins.tools.pluginmodernizer.core.model.Plugin
2+
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe
3+
@param Plugin plugin
4+
@param Recipe recipe
5+
chore(github): Add CODEOWNERS

plugin-modernizer-core/src/main/jte/pr-title-SetupDependabot.jte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe
33
@param Plugin plugin
44
@param Recipe recipe
5-
Automate dependency updates with Dependabot
5+
chore(dependencies): Automate dependency updates with Dependabot

plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/TemplateUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public void testFriendlyPrTitleSetupDependabot() {
363363
String result = TemplateUtils.renderPullRequestTitle(plugin, recipe);
364364

365365
// Assert
366-
assertEquals("Automate dependency updates with Dependabot", result);
366+
assertEquals("chore(dependencies): Automate dependency updates with Dependabot", result);
367367
}
368368

369369
@Test

0 commit comments

Comments
 (0)