[Bug] : 모집하기, 글수정 페이지 기술스택 팝오버 사이즈변경 #248
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: create issue branch | |
on: | |
issues: | |
types: [opened, assigned] | |
jobs: | |
create-issue-branch: | |
name: "create issue branch" | |
runs-on: ubuntu-latest | |
if: github.event.action == 'opened' | |
steps: | |
- name: create the issue branch | |
uses: robvanderleek/create-issue-branch@main | |
id: create-issue-branch | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: choose a pr template | |
if: steps.create-issue-branch.outputs.branchName != '' | |
id: template | |
env: | |
BRANCH_NAME: ${{ steps.create-issue-branch.outputs.branchName }} | |
run: | | |
branch=$BRANCH_NAME | |
if [[ $branch =~ ^fix/ ]]; then \ | |
template="bug.md"; \ | |
elif [[ $branch =~ ^feat/ ]]; then \ | |
template="feature.md"; \ | |
elif [[ $branch =~ ^chore/ ]]; then \ | |
template="chore.md"; \ | |
elif [[ $branch =~ ^docs/ ]]; then \ | |
template="documentation.md"; \ | |
fi | |
echo "::set-output name=template-name::$template" | |
- name: add git command in comment | |
uses: mshick/add-pr-comment@v2 | |
if: steps.create-issue-branch.outputs.branchName != '' | |
with: | |
message-id: git-command-comment | |
message: | | |
### copy git command below | |
``` | |
git fetch origin | |
git checkout ${{ steps.create-issue-branch.outputs.branchName }} | |
``` | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: add pr link in comment | |
uses: mshick/add-pr-comment@v2 | |
if: steps.create-issue-branch.outputs.branchName != '' | |
env: | |
PULL_REQUEST_URL: ${{ format('https://github.com/{0}/compare/{1}...{2}?quick_pull=1&template={3}', github.repository, github.event.repository.default_branch, steps.create-issue-branch.outputs.branchName, steps.template.outputs.template-name) }} | |
TEMPLATE: ${{ steps.template.outputs.template-name }} | |
with: | |
message-id: pr-link-comment | |
message: | | |
## Pull Request  | |
[Create a pull request](${{ env.PULL_REQUEST_URL }}) for the issue branch using the `${{ env.TEMPLATE }}` template. | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |