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 maintenance label #40

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add maintenance label #40

wants to merge 3 commits into from

Conversation

TimonPost
Copy link
Member

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Fixes: #39

This adds a maintenance label that if added to PR it will block merging even if all other conditions are med. In addition, octoborus can be configured with a maintenance cron job time that if set will merge all PRs with the maintenance label at the scheduled time.

self.config
.maintenance_time
.as_ref()
.and_then(|maintenance_time| {
Copy link
Member Author

Choose a reason for hiding this comment

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

need to change this a bit

@TimonPost TimonPost requested a review from repi October 25, 2022 10:16
@TimonPost
Copy link
Member Author

A bit divided if we should add scheduling in octobors or if we may get away by using something like: https://github.com/marketplace/actions/schedule-job-action

@TimonPost
Copy link
Member Author

Can get pretty advanced if we want to do this in octoborus

  1. Iterate all PR with maintainence label.
  2. Check if maintenece time
  3. Merge PR if approved and maintenence time is med.
  4. Rebase PR if a preious PR is med.
  5. Update protocol version
  6. Push changes
  7. Next PR

@TimonPost
Copy link
Member Author

Alright, the simplest first effort I think is to just remove the maintenance label to unblock a merge. Then its up to the dev to take care of rebasing properly.

@repi repi removed their request for review March 14, 2023 09:00
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.

Add maintenance label.
1 participant