TruCol / Self-host-GitLab-CI-for-GitHub

Installs your own GitLab CI and runs it on all your GitHub repos, in a single command.
GNU Affero General Public License v3.0
4 stars 3 forks source link

Only export branch icon if it is head of branch. #98

Closed a-t-0 closed 2 years ago

a-t-0 commented 2 years ago

Get the commit sha of head of branch, then check if the current commit sha equals that sha, and if yes, then export the branch icon, otherwise don't export branch icon.

Do this for run_ci_on_commit.sh (Can also do for run_ci_on_github_repo however, in that case the two commit sha's should always be equal as it only runs on head there.)

a-t-0 commented 2 years ago

Done.