Skip to content

Commit 984d746

Browse files
committed
mian commit
1 parent 17ecfbf commit 984d746

37 files changed

+248
-3133
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 🐞 Bug report
2+
description: File a bug report to help us improve this project
3+
title: 'Bug: '
4+
labels: [bug]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
attributes:
12+
label: Current result, describe the bug
13+
description: Give a clear description of what the bug is and the current behavior.
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Expected behavior
19+
description: Explain the behavior you expected to see and why.
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Steps to reproduce
25+
description: Provide a step-by-step instructions to reproduce the bug. Include links to files, code snippets or preconditions.
26+
value: |
27+
Precondition:
28+
1. Go to '...'
29+
2. Click on '...'
30+
3. Scroll down to '...'
31+
4. See error
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: Screenshots or screen recordings
37+
description: Please provide screenshots or screen recordings to show the problem.
38+
validations:
39+
required: false
40+
- type: dropdown
41+
attributes:
42+
multiple: true
43+
label: Browsers
44+
description: What browsers are you seeing the problem on?
45+
options:
46+
- 'Chrome'
47+
- 'Firefox'
48+
- 'Safari'
49+
- 'Edge'
50+
- 'Opera'
51+
- 'Other (add additional context)'
52+
- type: checkboxes
53+
id: terms
54+
attributes:
55+
label: Code of Conduct
56+
description: By submitting this bug, you agree to follow our [Code of Conduct](https://github.com/petermsouzajr/cy-shadow-report/blob/main/CODE_OF_CONDUCT.md).
57+
options:
58+
- label: I agree to follow this project's Code of Conduct
59+
required: true
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: 🚀 Project Contribution
2+
description: Suggest a contribution or idea for this project
3+
title: 'Contribution: '
4+
labels: [contribution]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this project contribution form!
10+
- type: textarea
11+
attributes:
12+
label: Describe the contribution
13+
description: Provide a clear description of your contribution idea, including details and examples.
14+
value: |
15+
Tasks:
16+
[ ] Task one description...
17+
[ ] Task two description...
18+
[ ] Add more tasks as needed...
19+
validations:
20+
required: true
21+
- type: dropdown
22+
attributes:
23+
multiple: false
24+
label: Type of contribution
25+
description: Select the type of contribution you are proposing.
26+
options:
27+
- '✨ Feature'
28+
- '🐞 Fix'
29+
- '📝 Documentation'
30+
- '💻 Refactor'
31+
- '🏗️ Infrastructure'
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: Current behavior (if applicable)
37+
description: Describe the current behavior and how your contribution would change/improve it.
38+
validations:
39+
required: false
40+
- type: textarea
41+
attributes:
42+
label: Suggested solution and implementation (if applicable)
43+
description: Explain your solution and why this contribution would be beneficial.
44+
value: |
45+
Solutions:
46+
[ ] Solution one description...
47+
[ ] Solution two description...
48+
[ ] Add more solutions as needed...
49+
validations:
50+
required: false
51+
- type: input
52+
id: context
53+
attributes:
54+
label: Additional context
55+
description: Provide any additional context or references to similar features in other projects.
56+
validations:
57+
required: false
58+
- type: checkboxes
59+
id: terms
60+
attributes:
61+
label: Code of Conduct
62+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/petermsouzajr/cy-shadow-report/blob/main/CODE_OF_CONDUCT.md).
63+
options:
64+
- label: I agree to follow this project's Code of Conduct
65+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
## Description
3+
<!--
4+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
5+
-->
6+
7+
## Type of change
8+
9+
- [ ] New feature
10+
- [ ] Bug fix
11+
- [ ] Documentation update
12+
- [ ] Code Refactor
13+
14+
## Related Tickets & Documents
15+
16+
<!--
17+
Please use this format link issue numbers: Fixes/Relates to #123
18+
https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
19+
-->
20+
21+
## How Has This Been Tested?
22+
<!--
23+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
24+
-->
25+
26+
- Test A
27+
- Test B
28+
29+
## Checklist:
30+
31+
- [ ] My code follows the style guidelines of this project
32+
- [ ] I have performed a self-review of my own code
33+
- [ ] I have commented my code, particularly in hard-to-understand areas
34+
- [ ] I have made corresponding changes to the documentation
35+
- [ ] My changes generate no new warnings, run: `npm test`
36+
- [ ] My changes generate no new lint errors, run: `npm run lint`
37+
- [ ] Fix auto-fixable linting errors by running `npm run lint:fix`
38+
- [ ] Fix all other lint errors manually
39+
- [ ] I have added tests that prove my fix is effective or that my feature works
40+
- [ ] New and existing unit tests pass locally with my changes, run: `npm test`
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Label new issues
2+
on:
3+
issues:
4+
types:
5+
- reopened
6+
- opened
7+
jobs:
8+
label_issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
14+
env:
15+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
GH_REPO: ${{ github.repository }}
17+
NUMBER: ${{ github.event.issue.number }}
18+
LABELS: needs triage
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync Demo Branch
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
sync-demo-branch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout demo branch
13+
uses: actions/checkout@v2
14+
with:
15+
ref: 'demo'
16+
token: ${{ secrets.DEMO_UPDATE_PAT }} # Use the PAT for checkout
17+
18+
- name: Fetch changes from main branch
19+
run: git fetch origin main
20+
21+
- name: Checkout main branch files excluding .github, cypress-example, and playwright-example
22+
run: |
23+
git checkout origin/main -- . ':!/.github' ':!/cypress-example' ':!/playwright-example'
24+
25+
- name: Commit and push changes to demo branch
26+
run: |
27+
git config --global user.email "peter@petermsouzajr.com"
28+
git config --global user.name "Peter Souza"
29+
git commit -am "Sync changes from main branch to demo" || echo "No changes to commit"
30+
git push https://${{ secrets.DEMO_UPDATE_PAT }}@github.com/petermsouzajr/cy-shadow-report.git demo

.github/workflows/take.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Assign issue to contributor
2+
on:
3+
issue_comment:
4+
5+
jobs:
6+
assign:
7+
name: Take an issue
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
contents: read
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Check for 'needs triage' label
17+
id: check-label
18+
run: |
19+
LABELS=$(gh issue view ${{ github.event.issue.number }} --json labels --jq '.labels[].name')
20+
if [[ $LABELS == *"needs triage"* ]]; then
21+
echo "Issue has 'needs triage' label, not assigning."
22+
echo "::set-output name=should_assign::false"
23+
else
24+
echo "Issue does not have 'needs triage' label."
25+
echo "::set-output name=should_assign::true"
26+
fi
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Take the issue
31+
if: steps.check-label.outputs.should_assign == 'true'
32+
uses: bdougie/take-action@main
33+
with:
34+
message: Thanks for taking this issue! Let us know if you have any questions!
35+
trigger: .take
36+
token: ${{ secrets.GITHUB_TOKEN }}

cypress-example/cypress.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)