I am new to Azure DevOps and I am trying to link the deployment status of my releases to the work items. I have tried going to classic release pipelines -> options -> integrations -> Report Deployment status to boards and have mapped the environments.
But I want to link these deployments only when the deployment is done through a specific branch like the Master and not from all the branches. I don't see any option in pipelines to select a specific branch.
Currently the deployment status of all branches are being displayed in the deployment section of workItems, which is making it hard to follow the deployments we care about.

I have tried looking into the documentation but I couldn't find anything that helps. I am sure there must be some way to achieve this.
Any help is appreciated.

Release pipelines check associated with builds work items and assign them to corresponding Boards status. To work only with the master branch, you may add CI triggers and branch filter:
In this case, builds started from the master branch will raise a new release after completion. The release will associate build work items from the master.