Create a label from build number or tag

Hello,

Can someone tell me if and how it would be possible to create a label / label a commit based on a build / tag that triggered a build? So we can integrate builds with issues.

Thank you,

Andreas