Configure automated build-pipelines

I am trying to configure automated build pipelines by connecting to GitHub. But the connection to Github is disabled, though after I am having admin access.
So, here my query is should the name of GitHub repo and repository name in DockerHub be same for sure to configure build pipelines. If so, do we have any alternative to configure even after being repository names of GitHub and DockerHub are different.