lablup / lablup/testion

Incorrect branch name displayed in notifications

Open
#1 0 comments 1 reaction 1 assignee Claimed by @E-nuri View on GitHub
bug
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently testion extracts the branch name from `head` proeprty of the pygit2's Repository object after checking out [(link to code)](https://github.com/lablup/testion/blob/78220a8/testion/reporter/base.py#L226-L234), but sometimes those branch names are **wrong**.

Example:
![image](https://cloud.githubusercontent.com/assets/555156/19880235/dc3b4982-a03e-11e6-8028-fe79127c43f5.png)
![image](https://cloud.githubusercontent.com/assets/555156/19880245/e5d2428e-a03e-11e6-8c8f-a0242804319d.png)

Let's check out why this happens and fix up.
Note that if the last commit is a merge commit, then both 'master' and other branch may point the same commit --- we should check if this applies in our cases as well.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.