jenkinsci / jenkinsci/scm-api-plugin

[JENKINS-64895] Cannot filter GitHub Pull Request jobs by title/description

Open
#425 0 comments 0 reactions 0 assignees View on GitHub
component:scm-api-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
33
Forks
87
PR merge metrics
No merged PRs in 30d

Description

I am using GitHub branch source plugin to build pull requests, which internally uses SCM API plugin to apply filters by name. However, the filter works only for Pull Request name, which is not helpful as the name is an auto-generated number created by GitHub.

The real benefit in case of a Pull Request would come if it supports filter by title or description e.g. If Pull Request title or description contains a specific word like "automated" then skip the build.

Is there a way this can be achieved ?

---
Originally reported by richmond, imported from: Cannot filter GitHub Pull Request jobs by title/description


  • status: Open
  • priority: Minor
  • component(s): scm-api-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251223-222157

Raw content of original issue

I am using GitHub branch source plugin to build pull requests, which internally uses SCM API plugin to apply filters by name. However, the filter works only for Pull Request name, which is not helpful as the name is an auto-generated number created by GitHub.

The real benefit in case of a Pull Request would come if it supports filter by title or description e.g. If Pull Request title or description contains a specific word like "automated" then skip the build.

Is there a way this can be achieved ?

environment

```
Jenkins LTS 2.263.2

GitHub Branch Source v2.9.0

SCM API Plugin 2.6.4
```

1 attachment

- [GitHub Branch Source filter configuration.png](https://issues.jenkins.io/secure/attachment/54016/GitHub%20Branch%20Source%20filter%20configuration.png)
> ![GitHub Branch Source filter configuration.png](https://issues.jenkins.io/secure/attachment/54016/GitHub%20Branch%20Source%20filter%20configuration.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.