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

Repo ownership config is not detected when the artifact name and the repo name diverged #531

Closed
balakine opened this issue Jul 29, 2024 · 5 comments · Fixed by #554
Closed
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@balakine
Copy link

Noticed on tikal-multijob-plugin after the artifact was renamed to jenkins-multijob-plugin, but the repo itself and the developers team name remained tikal-multijob-plugin.

@alecharp
Copy link
Collaborator

I don't think this is a bug in Plugin Health Scoring. This is the normal behaviour. We expect to see the plugin artifactId used in the team name.

The plugin has some misconfigurations:

All those points to the "old" name.

@balakine
Copy link
Author

Thank you for pointing out the old names. The repo and the team have been renamed over the weekend to match the artifact name, which was changed years ago.
I should have probably mentioned this conversation that lead to me opening this issue.

@timja
Copy link
Member

timja commented Jul 29, 2024

Repository names and team names can evolve over time without the artifact id changing.

An example would be ssh-slaves where it is rebranded with agents in the name, the repository is renamed and likely the team as well

@alecharp
Copy link
Collaborator

So you would argue that the team should be composed of the repository name not of the artifactId @timja?
That I can understand and we can tweak the code for it.

We need to change

"@jenkinsci/%s-plugin-developers".formatted(plugin.getName())))
to use context.getRepositoryName() (with some other management as the method returns a Optional<String> but that's feasible.

However, I don't know when I'll be able to work on this.

@timja
Copy link
Member

timja commented Jul 29, 2024

I think repository name would be more accurate yeah.

@alecharp alecharp added good first issue Good for newcomers bug Something isn't working labels Aug 21, 2024
@alecharp alecharp added enhancement New feature or request and removed bug Something isn't working labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants