fix: 서버 클러스터 마커를 클릭했을 때 충전소 마커가 나오지 않고 위치만 이동하는 오류를 개선한다 #385
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: assign_issue_number_to_pr_body | |
on: | |
pull_request: | |
types: [ opened ] | |
branches-ignore: | |
- main | |
jobs: | |
append_issue_number_to_pr_body: | |
runs-on: ubuntu-latest | |
steps: | |
- name: append feature number to pr body pr branch = feat/(issueNumber) | |
uses: actions/github-script@v4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const pr = await github.pulls.get({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.issue.number | |
}); | |
const body = pr.data.body; | |
const issueNumber= pr.data.head.ref.split('/')[1]; | |
const newBody = body + "\n\n" + "close #" + issueNumber; | |
await github.pulls.update({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.issue.number, | |
body: newBody | |
}); |