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

Dev ops/feature/#100 #110

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Dev ops/feature/#100 #110

merged 2 commits into from
Nov 14, 2023

Conversation

Doosies
Copy link
Collaborator

@Doosies Doosies commented Nov 14, 2023

변경 사항

  • 머지시 브랜치 이름에 있는 이슈 closed로 변경
  • 이슈 본문에 적어둔 이슈들도 closed로 변경

고민과 해결 과정

  1. context에서 현재 PR의 브랜치 이름을 뽑아옴
  • context.payload.pull_request.head
  1. 브랜치 이름에서 issue number를 뽑아옴
  • github.rest.issues.get
  1. 이슈의 body에서 하위 issue number를 뽑아옴
  • github.rest.issues.get
  1. 이렇게 얻은 모든 issue들을 닫아줌(update 시켜줌)
  • github.rest.issues.update

@Doosies Doosies self-assigned this Nov 14, 2023
@Doosies Doosies merged commit d1a554a into dev Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant