Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR 생성 자동화 중에 asignees를 제대로 찾지 못하는 버그 존재 #9

Open
unchaptered opened this issue Jan 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@unchaptered
Copy link
Member

PR 생성 자동화안에 asignees를 제대로 찾지 못하는 버그가 존재합니다.

image

GitHub 안에 유사하게 생긴 2종류의 username이 존재해서 발생하는 것 같습니다.

image

실제 로그인에 사용되는 username은 playhuck인데, GitHub에서 commit 등 활동에 사용되는 이름은 Playhuck입니다.

이런 경우에 대한 예외처리를 추가하겠습니다.


현재 commiter를 %an 프로퍼티를 이용해서 꺼내서 쓰고 있었습니다.

이 부분을 git log --pretty-format: docs 참고하여, asignees가 없다면 이를 찾거나 email을 기준으로 asignees를 찾고 등록해야 할 것 같습니다.

@unchaptered unchaptered added the bug Something isn't working label Jan 29, 2024
@unchaptered
Copy link
Member Author

github account_name(playhuck)과 username(Playhuck)이 달라서 발생한 문제입니다.

git log --pretty=format:"%an   %aN  %cn    %cN"

GitHub에서 커밋은 username을 기준으로 붙지만, asignees는 account_name을 기준으로 잡고 있습니다.
따라서 둘 중 하나의 값이 다를 경우, git log format 인자로 이를 꺼내서 파싱하기 어렵습니다.

이 부분 수정에 들어가는 리소스가 aisgnees를 제외하는 것에 비해 너무 커서, 해당 구문은 주석처리해두겠습니다.

@unchaptered unchaptered pinned this issue Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants