Approve and merge
Approve the request, watch it become one commit on main, and find that commit in the detection's history.
Goal
main carries your change as one commit that names the request and the person who approved it, and the branch is gone.
Before you start
Press Approve and merge. Studio asks first: Approve and merge this change? Under the question it lists what will happen: it records your approval, merges the change into
main, updates the detections, pushes the remote if one is set up, and deletes the branch. The last line is the one to read twice: This can't be undone from here.

Open the detection and read its History. In Forge → Detections, click SSH password guessing from one address. Under Query the line now ends
where users > 5onmain. Now open the History tab. At the top of Timeline is merge: raise-ssh-threshold, with your name. Under Git History the same commit is listed in full: its message starts with the name of the request, and after it come two things Studio wrote, Change-Request with the request's id and Reviewed-by with the approver.

Find the request again. In Workspaces → Change Requests, the Active tab is empty. Open Merged: your request is there, marked Merged, with View to open it. Its diff and your comment are kept with it.
You should now see
main ends where users > 5. The detection's Git History has one new commit, merge: raise-ssh-threshold, and Fire only above five users is nowhere in it.
Two things about what you just did are worth knowing.
- A request becomes one commit, and the commit takes the request's name. So name a branch for what the change does:
raise-ssh-thresholdwill still make sense to whoever reads this history next year. - That commit answers three questions at once: what changed, which request it came from, and who approved it. The request itself keeps the rest: the diff, the impact line and the discussion.
Quick check
Go deeper
- Diff, beside a commit in Git History, shows what that commit changed: on the merge, the query line ending
> 3above the one ending> 5, with the unchanged lines folded away. - Restore, beside an older commit, puts that version of the file back as a pending change, with a notice that reads Detection restored. Nothing reaches
mainuntil you commit it, and Pending changes → Discard all takes it back. - Git & YAML, for every field in a detection file.
