Skip to content

Commit d3048a4

Browse files
committed
chore: add GitHub Issue template and action bot
Signed-off-by: harry li <[email protected]>
1 parent 79d1e09 commit d3048a4

File tree

7 files changed

+144
-0
lines changed

7 files changed

+144
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'issue-translator'
2+
on:
3+
issue_comment:
4+
types: [created]
5+
issues:
6+
types: [opened]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: usthe/[email protected]
13+
with:
14+
IS_MODIFY_TITLE: true
15+
CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

.github/workflows/prow-github.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Run specified actions or jobs for issue and PR comments
2+
3+
name: "Prow github actions"
4+
on:
5+
issue_comment:
6+
types: [created]
7+
8+
jobs:
9+
prow-execute:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: jpmcb/[email protected]
13+
with:
14+
prow-commands: '/assign
15+
/unassign
16+
/approve
17+
/retitle
18+
/area
19+
/kind
20+
/priority
21+
/remove
22+
/lgtm
23+
/close
24+
/reopen
25+
/lock
26+
/milestone
27+
/hold
28+
/cc
29+
/uncc'
30+
github-token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This Github workflow will check every hour for PRs with the lgtm label and will attempt to automatically merge them.
2+
# If the hold label is present, it will block automatic merging.
3+
4+
name: "Prow merge on lgtm label"
5+
on:
6+
schedule:
7+
- cron: "0 * * * *" # every hour
8+
9+
jobs:
10+
auto-merge:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: jpmcb/[email protected]
14+
with:
15+
jobs: 'lgtm'
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
17+
merge-method: 'squash'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This workflow will remove the lgtm label from a PR that gets updated.
2+
# This prevents any un-reviewed code from being automatically merged by the lgtm-merger mechanism.
3+
4+
name: "Prow remove lgtm label"
5+
on: pull_request
6+
7+
jobs:
8+
remove-lgtm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: jpmcb/[email protected]
12+
with:
13+
jobs: 'lgtm'
14+
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)