Skip to content

Add issue-based merge queue pause#901

Open
qefir wants to merge 6 commits into
chdsbd:masterfrom
qefir:stop-by-issue-label
Open

Add issue-based merge queue pause#901
qefir wants to merge 6 commits into
chdsbd:masterfrom
qefir:stop-by-issue-label

Conversation

@qefir

@qefir qefir commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@netlify

netlify Bot commented Nov 26, 2025

Copy link
Copy Markdown

👷 Deploy request for kodiak-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2975fde

@netlify

netlify Bot commented Nov 26, 2025

Copy link
Copy Markdown

👷 Deploy request for kodiak-dashboard-staging pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2975fde

@chdsbd

chdsbd commented Nov 26, 2025

Copy link
Copy Markdown
Owner

Hey @qefir,

Thank you for the pull request!

Can you explain more about your use case?

My understanding is you want to disable merging pull requests whenever an issue has a certain label. Is that correct?

I'm just curious about your workflow and how you use this day-to-day

@qefir

qefir commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

Hey @chdsbd! It’s mainly for incident situations when we don’t want anything merged into master. Being able to automatically block merges based on a label helps ensure nothing goes out while we’re handling the issue. Prow/Tide offers a similar feature, and I’ve found it very handy in practice

@chdsbd

chdsbd commented Nov 28, 2025

Copy link
Copy Markdown
Owner

@qefir I'm looking to merge your PRs but it'll take me some time to review them and test them out.

Comment thread bot/kodiak/queries/__init__.py Outdated
@qefir

qefir commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author

@qefir I'm looking to merge your PRs but it'll take me some time to review them and test them out.

No worries, take your time. I'm already happy you're helping at all!😄

@qefir

qefir commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

Hey @chdsbd! I tested your changes (add graphql variable) and noticed they don’t work as expected - GitHub rejects empty filters

ERROR kodiak.queries:__init__.py:1095 event='could not fetch event info' install='95353051' owner='qefir' pr=133 repo='kodiak-test-repo' res={'errors': [{'extensions': {'value': None, 'problems': [{'path': [], 'explanation': 'Expected value to not be null'}]}, 'locations': [{'line': 2, 'column': 70}], 'message': 'Variable $issueLabels of type [String!]! was provided invalid value'}]} sentry_id=None

Since this filter isn’t used anymore, maybe it’s best to remove it entirely. We currently just check for blocking labels in the last 100 issues

@qefir
qefir requested a review from chdsbd December 3, 2025 11:48
squashMergeAllowed
deleteBranchOnMerge
isPrivate
issues(first: 100, states: [OPEN], orderBy: {field: UPDATED_AT, direction: DESC}) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Adding this field increases the GraphQL rate limit consumption from 4 per request to 5.

@qefir qefir Dec 14, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Alright, that’s not good. In that case, maybe it’s better to use a separate label taken from the env instead of kodiak.toml, and only filter issues with that label. That should be more lightweight and avoid the extra GraphQL rate-limit hit, right?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think that's a good solution. Do you plan to self-host this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, we’re planning to self-host it. For our needs, getting the label from the env is sufficient, though it might not be the ideal approach for Kodiak in general

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.

3 participants