lib/GitHub/Receiver/Activity/Watching.php
public function setRepositorySubscription(bool $subscribed = false, bool $ignored = false): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/subscription?:args',
            $this->getActivity()->getOwner(), $this->getActivity()->getRepo(), http_build_query([
                'subscribed' => $subscribed,
                'ignored'    => $ignored
            ])), Request::METHOD_PUT);
    }
public function setRepositorySubscription(bool $subscribed = false, bool $ignored = false): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/subscription?:args',
            $this->getActivity()->getOwner(), $this->getActivity()->getRepo(), http_build_query([
                'subscribed' => $subscribed,
                'ignored'    => $ignored
            ])), Request::METHOD_PUT);
    }
public function setRepositorySubscription ( bool $ subscribed = false , bool $ ignored = false ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/subscription?:args' , $ this -> getActivity ( ) -> getOwner ( ) , $ this -> getActivity ( ) -> getRepo ( ) , http_build_query ( [ 'subscribed' => $ subscribed , 'ignored' => $ ignored ] ) ) , Request :: METHOD_PUT ) ; }
Set a Repository Subscription

@link https://developer.github.com/v3/activity/watching/#set-a-repository-subscription

@param bool $subscribed
@param bool $ignored

@return array
Set a Repository Subscription