import requests
from bs4 import BeautifulSoup
import re


def pr_names(link):
    """
    Returns all the contributors involved in every PR.

    Parameters:
        link (url): Url of the Pull Request
    
    Returns:
        name (list) : List containing the contributors.

    """
    name=[]
    r=requests.get(url=link)
    soup=BeautifulSoup(r.content,'html.parser')
    div_tags=soup.findAll('div',class_="participation")
    for _,i in enumerate(div_tags):
        for a in i.findAll('a'):
            name.append(re.sub('/' ,"",a['href']))
    return name