-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from YAPP-Github/chore/TNT-69
[TNT-69] νμ ν΄ μΈν
- Loading branch information
Showing
12 changed files
with
499 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'μ΄μ μμ±' | ||
description: 'μ΄μλ₯Ό μμ±ν©λλ€. μμ±λ μ΄μλ Jira task λ‘ μλ μμ±λ©λλ€.' | ||
labels: [order] | ||
title: 'μ΄μλͺ μ μ λ ₯ν΄μ£ΌμΈμ.' | ||
body: | ||
- type: input | ||
id: parentKey | ||
attributes: | ||
label: 'Epic/Story Ticket Number' | ||
description: 'Ticket Numberλ₯Ό κΈ°μ ν΄μ£ΌμΈμ.' | ||
placeholder: 'TNT-00' | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: description | ||
attributes: | ||
label: 'μ΄μ λ΄μ©' | ||
description: 'μ΄μμ λν΄ κ°λ΅νκ² μ€λͺ ν΄μ£ΌμΈμ.' | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: tasks | ||
attributes: | ||
label: '체ν¬λ¦¬μ€νΈ(Tasks)' | ||
description: 'ν΄λΉ μ΄μμ μ°κ΄λ μμ λͺ©λ‘μ μμ±ν΄μ£ΌμΈμ' | ||
value: | | ||
- [ ] Task1 | ||
- [ ] Task2 | ||
validations: | ||
required: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## π μμ λ΄μ© | ||
|
||
- Closes # | ||
|
||
|
||
|
||
## πΈ μ€ν νλ©΄ | ||
|
||
|
||
|
||
|
||
## ππ» 리뷰 μμ² μ¬ν | ||
|
||
|
||
|
||
## π λ νΌλ°μ€ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Auto Assign' | ||
on: | ||
pull_request: | ||
types: [opened, ready_for_review] | ||
|
||
jobs: | ||
add-reviews: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- uses: kentaro-m/[email protected] | ||
with: | ||
configuration-path: .github/workflows/auto_assign.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Close Jira issue | ||
on: | ||
issues: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
close-issue: | ||
name: Close Jira issue | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@v3 | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
|
||
- name: Find in Jira ticket | ||
id: jira-ticket | ||
run: | | ||
ISSUE_TITLE="${{ github.event.issue.title }}" | ||
JIRA_KEY=$(echo "$ISSUE_TITLE" | grep -oE '[A-Z]+-[0-9]+') | ||
echo "JIRA_KEY=$JIRA_KEY" >> $GITHUB_ENV | ||
- name: Close Jira issue | ||
if: env.JIRA_KEY != '' | ||
uses: atlassian/gajira-transition@v3 | ||
with: | ||
issue: ${{ env.JIRA_KEY }} | ||
transition: μλ£ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: Create Jira issue | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
create-issue: | ||
name: Create Jira issue | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout develop code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: develop | ||
|
||
- name: Get Jira Assignee From PR Author | ||
id: jira-assignee | ||
run: | | ||
AUTHOR=${{ github.event.issue.user.login }} | ||
if [ "$AUTHOR" == "hoyahozz" ]; then | ||
echo "::set-output name=accountId::${{ secrets.HOYAHOZZ_ACCOUNT_ID }}" | ||
else | ||
echo "::set-output name=accountId::${{ secrets.SEONJEONGK_ACCOUNT_ID }}" | ||
fi | ||
- name: Login | ||
uses: atlassian/gajira-login@v3 | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
|
||
- name: Issue Parser | ||
uses: stefanbuck/github-issue-praser@v3 | ||
id: issue-parser | ||
with: | ||
template-path: .github/ISSUE_TEMPLATE/issue-form.yaml | ||
|
||
- name: Log Issue Parser | ||
run: | | ||
echo '${{ steps.issue-parser.outputs.jsonString }}' | ||
- name: Convert markdown to Jira Syntax | ||
uses: peter-evans/jira2md@v1 | ||
id: md2jira | ||
with: | ||
input-text: | | ||
### Github Issue Link | ||
- ${{ github.event.issue.html_url }} | ||
${{ github.event.issue.body }} | ||
mode: md2jira | ||
|
||
- name: Create SubTask | ||
id: create-subtask | ||
uses: atlassian/gajira-create@v3 | ||
with: | ||
project: TNT | ||
issuetype: SubTask | ||
summary: "${{ github.event.issue.title }}" | ||
description: "${{ steps.md2jira.outputs.output-text }}" | ||
fields: | | ||
{ | ||
"parent": { | ||
"key": "${{ steps.issue-parser.outputs.issueparser_parentKey }}" | ||
}, | ||
"assignee" : { | ||
"id" : "${{ steps.jira-assignee.outputs.accountId }}" | ||
} | ||
} | ||
- name: Create Issue | ||
id: create-issue | ||
if: failure() | ||
uses: atlassian/gajira-create@v3 | ||
with: | ||
project: TNT | ||
issuetype: Task | ||
summary: "${{ github.event.issue.title }}" | ||
description: "${{ steps.md2jira.outputs.output-text }}" | ||
fields: | | ||
{ | ||
"parent": { | ||
"key": "${{ steps.issue-parser.outputs.issueparser_parentKey }}" | ||
}, | ||
"assignee" : { | ||
"id" : "${{ steps.jira-assignee.outputs.accountId }}" | ||
} | ||
} | ||
- name: Update issue title | ||
if: always() && (steps.create-subtask.conclusion == 'success' || steps.create-issue.conclusion == 'success') | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: "update-issue" | ||
token: ${{ secrets.ACCESS_GITHUB_TOKEN }} | ||
title: "[${{ steps.create-subtask.outputs.issue || steps.create-issue.outputs.issue }}] ${{ github.event.issue.title }}" | ||
|
||
- name: Add comment with Jira issue link | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.ACCESS_GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: 'Jira Issue Created: [${{ steps.create.outputs.issue }}](${{ secrets.JIRA_BASE_URL }}/browse/${{ steps.create.outputs.issue }})' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Opened Issue Notification | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
create-issue: | ||
name: Discord notification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Issue | ||
uses: Ilshidur/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: μνκ³° BOT | ||
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | ||
DISCORD_EMBEDS: | | ||
[ | ||
{ | ||
"title": "μλ‘μ΄ μ΄μκ° λ±λ‘λμμ΅λλ ! π\n${{ github.event.issue.title }}", | ||
"color": 10478271, | ||
"description": "${{ github.event.issue.html_url }}", | ||
"fields": [ | ||
{ | ||
"name": "Issue Number", | ||
"value": "#${{ github.event.issue.number }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "Author", | ||
"value": "${{ github.event.issue.user.login }}", | ||
"inline": true | ||
} | ||
] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Opened PR Notification | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Send notification | ||
uses: Ilshidur/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: μνκ³° BOT | ||
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | ||
DISCORD_EMBEDS: | | ||
[ | ||
{ | ||
"author": { | ||
"name": "${{ github.event.pull_request.user.login }}", | ||
"url": "https://github.com/user-attachments/assets/2e1aadea-149e-4bef-ab67-1c6c6b8c21cd", | ||
"icon_url": "${{ github.event.pull_request.user.avatar_url }}" | ||
}, | ||
"title": "μ κ· PRμ΄ λ±λ‘λμμ΅λλ ! 24μκ°λ΄λ‘ 리뷰ν΄μ£ΌμΈμ! π₯³\n#${{ github.event.pull_request.number }} : ${{ github.event.pull_request.title }}", | ||
"color": 10478271, | ||
"description": "${{ github.event.pull_request.html_url }}", | ||
"fields": [ | ||
{ | ||
"name": "Base Branch", | ||
"value": "${{ github.base_ref }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "Compare Branch", | ||
"value": "${{ github.head_ref }}", | ||
"inline": true | ||
} | ||
] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
approved: | ||
if: github.event.review.state == 'APPROVED' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Approve Message | ||
uses: Ilshidur/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: μνκ³° BOT | ||
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | ||
DISCORD_EMBEDS: | | ||
[ | ||
{ | ||
"title": "PRμ΄ μΉμΈλμμ΅λλ ! λ¨Έμ§ν΄μ£ΌμΈμ ~! π₯³\n${{ github.event.pull_request.title }}", | ||
"color": 10478271, | ||
"description": "${{ github.event.review.html_url }}", | ||
"fields": [ | ||
{ | ||
"name": "Reviewer", | ||
"value": "${{ github.event.review.user.login }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "Comment", | ||
"value": "${{ github.event.review.body }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "State", | ||
"value": "${{ github.event.review.state }}", | ||
"inline": true | ||
} | ||
] | ||
} | ||
] | ||
changes_requested: | ||
if: github.event.review.state == 'changes_requested' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Comment Message | ||
uses: Ilshidur/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: μνκ³° BOT | ||
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | ||
DISCORD_EMBEDS: | | ||
[ | ||
{ | ||
"title": "PRμ λν μμ μμ²μ΄ λ€μ΄μμ΅λλ . νμΈν΄μ£ΌμΈμ! β οΈ\n${{ github.event.pull_request.title }}", | ||
"color": 13458524, | ||
"description": "${{ github.event.review.html_url }}", | ||
"fields": [ | ||
{ | ||
"name": "Reviewer", | ||
"value": "${{ github.event.review.user.login }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "Comment", | ||
"value": "${{ github.event.review.body }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "State", | ||
"value": "${{ github.event.review.state }}", | ||
"inline": true | ||
} | ||
] | ||
} | ||
] | ||
commented: | ||
if: github.event.review.state == 'commented' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Comment Message | ||
uses: Ilshidur/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: μνκ³° BOT | ||
DISCORD_AVATAR: https://github.com/user-attachments/assets/4f1d10bc-f782-42ef-af63-fba0f51907c5 | ||
DISCORD_EMBEDS: | | ||
[ | ||
{ | ||
"title": "PRμ λν μ½λ©νΈκ° λ±λ‘λμμ΅λλ ! νμΈν΄μ£ΌμΈμ! β \n${{ github.event.pull_request.title }}", | ||
"color": 16187019, | ||
"description": "${{ github.event.review.html_url }}", | ||
"fields": [ | ||
{ | ||
"name": "Reviewer", | ||
"value": "${{ github.event.review.user.login }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "State", | ||
"value": "${{ github.event.review.state }}", | ||
"inline": true | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.