fix: 충전소 리스트에서 로딩을 보여주지 않아도 되는 상황에 보여지는 현상을 개선한다 #145
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: append-storybook-link | |
on: | |
pull_request: | |
types: [labeled] | |
jobs: | |
append-storybook-link: | |
if: ${{ github.event.label.name == 'FE' }} | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: append storybook link | |
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 newBody = body + "\n\n" + "## 🚀 Storybook \n\n"+ "> https://storybook.carffe.in/"; | |
await github.pulls.update({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.issue.number, | |
body: newBody | |
}); |