Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing related PRs when cherry-picking (#33261)
The `airflow-github` tooling had a check if PR has been already merged, but the PR did not work well when there was already a PR cherry-picked that referred the PR in question in their log message. The check was done via `git log --grep=#PR` essentially and so it happenes that `--grep` matches not only the first line of the message but the whole log message. So if the log message contained reference to the cherry-picked PR it was seen as merged. This change adds ( ) around and $ to the regexp to match not only the PR number but also parentheses around. (cherry picked from commit eb07618)
- Loading branch information