Skip to content
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

Set homepage as plugins.jenkins.io for new plugins and update defaults #3798

Merged
merged 4 commits into from Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -201,7 +201,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.318</version>
<version>1.319</version>
</dependency>
<dependency>
<groupId>org.javatuples</groupId>
Expand Down
Expand Up @@ -251,6 +251,11 @@ boolean forkGitHub(String owner, String repo, String newName, List<String> maint
private static void setupRepository(GHRepository r, boolean useGHIssues) throws IOException {
r.enableIssueTracker(useGHIssues);
r.enableWiki(false);
r.setHomepage("https://plugins.jenkins.io/" + r.getName().replace("-plugin", "") + "/");
r.setEmailServiceHook("jenkinsci-commits@googlegroups.com");
NotMyFault marked this conversation as resolved.
Show resolved Hide resolved
NotMyFault marked this conversation as resolved.
Show resolved Hide resolved
if (!r.getDefaultBranch().equals("main")) {
r.setDefaultBranch("main");
}
Comment on lines +255 to +257
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub recommends creating new repositories with main over master, and it's the selected default if you do that through GitHub.
I'd like to build upon that and ensure we don't introduce new degenerative terms.

}

/**
Expand Down