Commit 7892a43
committed
fix: filter push events by PR branch to prevent timer reset
When a PR was merged to master, the push event affected the merge timer
calculation for all other open PRs. This happened because getDates()
was fetching all repository events and using the most recent PushEvent
regardless of which branch it targeted.
Now the code filters push events to only include those where payload.ref
matches the PR's head branch (refs/heads/<branch-name>), preventing
merges to master or other branches from resetting unrelated PR timers.
Closes #7521 parent 7c7a7ce commit 7892a43
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments