Skip to content

Commit 7f9c487

Browse files
committed
Add issue templates and GH Actions from main project
1 parent f900edc commit 7f9c487

File tree

7 files changed

+183
-1
lines changed

7 files changed

+183
-1
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: "\U0001F41BBug report"
3+
about: Report a bug in the OWASP Juice Shop CTF Extension
4+
title: '[🐛] '
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
11+
12+
To expedite issue processing please search open and closed issues before submitting a new one.
13+
Existing issues often contain information about workarounds, resolution, or progress updates.
14+
15+
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
16+
17+
# :bug: Bug report
18+
19+
## Description
20+
21+
<!-- ✍️-->
22+
A clear and concise description of the problem...
23+
24+
25+
### Is this a regression?
26+
27+
<!-- Did this behavior use to work in the previous version? -->
28+
<!-- ✍️-->
29+
Yes, the previous version in which this bug was not present was: `x.y.z`
30+
31+
32+
## :microscope: Minimal Reproduction
33+
34+
<!-- ✍️Simple steps to reproduce this bug.
35+
36+
Issues that don't have enough info and can't be reproduced will be will be labeled with "missing information" and closed shortly afterwards.
37+
-->
38+
39+
40+
## :fire: Exception or Error
41+
42+
<pre><code>
43+
<!-- If the issue is accompanied by an exception or an error, please share your log below: -->
44+
<!-- ✍️-->
45+
46+
</code></pre>
47+
48+
49+
## :deciduous_tree: Your Environment
50+
51+
<pre><code>
52+
<!-- run `node -v && npm -v` and paste output below -->
53+
<!-- ✍️-->
54+
55+
</code></pre>
56+
57+
58+
### Additional Information
59+
60+
<!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->
61+
<!-- ✍️Do any of these matter: operating system, Docker environment, cloud environment, ...? If so, please mention it below. -->
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: "\U0001F680Feature request"
3+
about: Suggest a feature for the OWASP Juice Shop CTF Extension
4+
title: '[🚀] '
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
11+
12+
To expedite issue processing please search open and closed issues before submitting a new one.
13+
Existing issues often contain information about workarounds, resolution, or progress updates.
14+
15+
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
16+
17+
# :rocket: Feature request
18+
19+
### Description
20+
21+
<!-- ✍️--> A clear and concise description of the problem or missing capability...
22+
23+
24+
### Solution ideas
25+
26+
<!-- ✍️--> If you have a solution in mind, please describe it.
27+
28+
29+
### Possible alternatives
30+
31+
<!-- ✍️--> Have you considered any alternative solutions or workarounds?
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: "❓Support request"
3+
about: Questions and requests for support
4+
title: '[❓] '
5+
labels: 'support'
6+
assignees: ''
7+
8+
---
9+
10+
:stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign:
11+
12+
Please **do not** file questions or support requests on the GitHub issues tracker.
13+
14+
You can get your questions answered using other communication channels.
15+
16+
1. Please first check [our extensive CTF manual](https://pwning.owasp-juice.shop/part1/ctf.html).
17+
2. If that did not solve your issue, please ask for help _either_ on [Gitter](https://gitter.im/bkimminich/juice-shop) _or_ on [Reddit](https://www.reddit.com/r/owasp_juiceshop).
18+
19+
Thank you!
20+
21+
:stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign::stop_sign:

.github/workflows/greetings.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
issue-message: 'Thanks a lot for opening your first issue with us! 🧡 We''ll get back to you shortly! ⏳ If it was a _Support Request_, please check [our extensive CTF manual](https://pwning.owasp-juice.shop/part1/ctf.html) first. Also, please consider asking on the [community chat](../#troubleshooting-) next time! 💬'
13+
pr-message: 'Thanks a lot for your contribution! 💖 This seems to be you first PR! 🌠 If it''s getting merged & complies with our [contribution guidelines](../blob/master/CONTRIBUTING.md), you are probably eligible to some free stickers! 🎁'

.github/workflows/lint-fixer.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Let me lint:fix that for you"
2+
3+
on: [push]
4+
5+
jobs:
6+
LMLFTFY:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out Git repository
10+
uses: actions/checkout@v2
11+
- name: 'Install Linter'
12+
run: |
13+
npm install --ignore-scripts
14+
- name: 'Fix everything which can be fixed'
15+
run: 'npm run lint:fix'
16+
- uses: stefanzweifel/[email protected]
17+
with:
18+
commit_message: "Auto-fix linting issues"
19+
20+
# Optional name of the branch the commit should be pushed to
21+
# Required if Action is used in Workflow listening to the `pull_request` event
22+
branch: ${{ github.head_ref }}
23+
24+
# Optional git params
25+
commit_options: '--signoff'
26+
27+
# Optional commit user and author settings
28+
commit_user_name: JuiceShopBot
29+
commit_user_email: [email protected]
30+
commit_author: JuiceShopBot <[email protected]>

.github/workflows/rebase.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Automatic Rebase
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
rebase:
9+
name: Rebase
10+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
with:
15+
fetch-depth: 0
16+
- name: Automatic Rebase
17+
uses: cirrus-actions/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
21+
always_job:
22+
name: Always run job
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Always run
26+
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"scripts": {
4343
"lint": "standard",
44-
"fix": "standard --fix",
44+
"lint:fix": "standard --fix",
4545
"test": "nyc --reporter=html --reporter=text mocha test/unit",
4646
"e2e": "nyc --reporter=text mocha test/e2e --slow=15000 --timeout=30000",
4747
"coverage": "nyc report --reporter=text-lcov | coveralls"

0 commit comments

Comments
 (0)