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

Add new command of 'add github labels to REPO' to bot (WIP) #72

Closed
wants to merge 1 commit into from

Conversation

halkeye
Copy link
Member

@halkeye halkeye commented Dec 20, 2019

WIP to support jenkinsci/.github#27

@halkeye
Copy link
Member Author

halkeye commented Dec 20, 2019

also need @bitwiseman's help to add support for updating labels, but waiting to hear back about the desired builder pattern for it.

@halkeye
Copy link
Member Author

halkeye commented Dec 20, 2019

YAY! updating labels - hub4j/github-api#649

@halkeye
Copy link
Member Author

halkeye commented Dec 20, 2019

IDEA: change this to rebase repo, and make sure we have github topics of "jenkins" and "jenkins-plugin" setup

@bitwiseman
Copy link
Contributor

bitwiseman commented Apr 1, 2020

@halkeye
See hub4j/github-api#724 . If you update to v1.109 you can give this a try.

pom.xml Outdated
@@ -86,7 +86,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.89</version>
<version>1.101</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<version>1.101</version>
<version>1.109</version>

Comment on lines +866 to +964
/*
* when updateLabel is published
* repo.updateLabel(
* Strings.isNullOrEmpty(label.oldname) ? label.name : label.oldname,
* label.name, // newname
* label.color,
* label.description
* )
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

From hub4j/github-api#724 :

Suggested change
/*
* when updateLabel is published
* repo.updateLabel(
* Strings.isNullOrEmpty(label.oldname) ? label.name : label.oldname,
* label.name, // newname
* label.color,
* label.description
* )
*/
ghLabels.get(Strings.isNullOrEmpty(label.oldname) ? label.name : label.oldname)
.update()
.name(label.name) // newname
.color(label.color)
.description(label.description)
.done();

@slide
Copy link
Contributor

slide commented Sep 16, 2020

Is this still a WIP?

@halkeye
Copy link
Member Author

halkeye commented Sep 16, 2020

Yea I rebased it but it needs a permanent location for the yaml and tests

private static final RepoLabels labelsYAML;
static {
try {
URL url = new URL("https://raw.githubusercontent.com/jenkinsci/.github/4f59a6219705df14067688df4f2a503e143cfa92/labels.yaml");
Copy link
Member

Choose a reason for hiding this comment

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

Point to master branch?

Copy link
Member Author

Choose a reason for hiding this comment

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

master doesn't have the file so it would 404, but yea the plan would be master

@oleg-nenashev
Copy link
Contributor

Would be nice to get it over the line to avoid further merge conflicts

@halkeye
Copy link
Member Author

halkeye commented Jun 1, 2021

https://plugins-self-service-3ir4b.ondigitalocean.app/ is way easier

@halkeye halkeye closed this Jun 1, 2021
@oleg-nenashev
Copy link
Contributor

oleg-nenashev commented Jun 1, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants