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

feat: add successSearchQuery option #558

Closed
wants to merge 1 commit into from

Conversation

raffis
Copy link

@raffis raffis commented Nov 4, 2022

Current situation

semantic-relase spams all pull requests every created in a repository with a released comment.
This is quite problematic in older repositories with many prs merged.
As far as I can tell there is no way currently to exclude pr older than, or prs with certain labels.

Proposal

Add an option successSearchQuery which enables user to override the github query.

For example the following filter allows me to pre label all old pr's with released, and after introducing semantic-release
in my repo, old pr's don't get spammed with comments.

    [
      "@semantic-release/github",
      {
        "successSearchQuery": "repo:${owner}/${repo}+type:pr+is:merged -label:released"
      }
    ]

This change is fully backwards compatible as it falls back to the default query.

Note this achieves something similar as proposed in #360

@raffis
Copy link
Author

raffis commented Nov 18, 2022

Any feedback?

@raffis raffis closed this Nov 21, 2023
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.

1 participant