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 cleanup option to remove local data and delete forks #144

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

jonesbusy
Copy link
Collaborator

Add 2 options for local data and forks cleanup. Use with caution, but we will only delete forks if no open PR are open from them.

I think we should optimize to only fork when there is actual changes to be pushed.

Probably we should only change the order

  • Clone/fetch always from upstream
  • Create local branch
  • If there is any commit fork and change the origin
  • Push the branch and create PR

This PR also add some automated tests for the Plugin class

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@jonesbusy jonesbusy added enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted tests This PR adds/removes/updates test cases labels Aug 2, 2024
@jonesbusy jonesbusy requested a review from a team as a code owner August 2, 2024 09:08
@jonesbusy jonesbusy merged commit 6e92f85 into jenkins-infra:main Aug 2, 2024
13 checks passed
@jonesbusy jonesbusy deleted the feature/cleanup-options branch August 2, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted tests This PR adds/removes/updates test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants