Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
06ec153
Remove unnecessary blank lines for improved readability in README.md
ibrahimAlphaSquad May 7, 2025
667c228
Update README.md
ibrahimAlphaSquad May 8, 2025
c4027ea
Add a newline at the end of README.md for better formatting
ibrahimAlphaSquad May 8, 2025
2d239f4
Add newline at the end of README.md for better formatting
ibrahimAlphaSquad May 8, 2025
a2b34ba
Remove unnecessary blank lines for improved readability in README.md
ibrahimAlphaSquad May 8, 2025
fad0d37
Add newlines at the end of README.md for better formatting
ibrahimAlphaSquad May 9, 2025
a9dd5e6
Test
ibrahimAlphaSquad May 9, 2025
dfe6709
Add newlines at the end of README.md for better formatting
ibrahimAlphaSquad May 9, 2025
ec52a49
Update README.md
ibrahimAlphaSquad May 12, 2025
28b2d2b
Update README.md
ibrahimAlphaSquad May 30, 2025
d7c34c1
Merge branch 'main' into slack-notifications-test
ibrahimAlphaSquad May 30, 2025
cee7ca6
feat: add Slack notifications for various PR events with detailed mes…
ibrahimAlphaSquad Jul 2, 2025
27e655b
feat: implement Slack notifications for PR events with message format…
ibrahimAlphaSquad Jul 2, 2025
06e4a90
chore: remove unnecessary blank lines from README.md
ibrahimAlphaSquad Jul 2, 2025
74a3aa5
changes
ibrahimAlphaSquad Jul 2, 2025
34f8684
changes
ibrahimAlphaSquad Jul 2, 2025
17d5a15
Merge branch 'main' of https://github.com/ibrahimAlphaSquad/playwrigh…
ibrahimAlphaSquad Jul 2, 2025
0659cec
fix: ensure SLACK_INCOMING_WEBHOOK_URL is set and clean up imports in…
ibrahimAlphaSquad Jul 2, 2025
60e6048
Merge branch 'main' of https://github.com/ibrahimAlphaSquad/playwrigh…
ibrahimAlphaSquad Jul 2, 2025
22cd8ee
chore: add spacing for improved readability in README.md
ibrahimAlphaSquad Jul 2, 2025
19271fc
chore: define environment for Slack notification job in workflow
ibrahimAlphaSquad Jul 2, 2025
6c9a383
Merge branch 'main' of https://github.com/ibrahimAlphaSquad/playwrigh…
ibrahimAlphaSquad Jul 2, 2025
521f007
changes
ibrahimAlphaSquad Jul 2, 2025
45fc299
chore: enhance Slack notification workflow to include discussion even…
ibrahimAlphaSquad Jul 2, 2025
baa6812
chore: add ZAP scan job to auto-tag workflow and create directory str…
ibrahimAlphaSquad Jul 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,48 @@ permissions:
pull-requests: read

jobs:
zap_scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create directories for ZAP
run: |
mkdir -p zap-reports zap-home
chmod -R 777 zap-reports zap-home # Ensure write permissions

- name: Run ZAP scan
run: |
echo "Starting ZAP scan..."
docker run -v $(pwd)/zap-reports:/zap/wrk:rw -v $(pwd)/zap-home:/zap/.ZAP:rw ghcr.io/zaproxy/zaproxy:stable zap.sh -cmd -quickurl https://your-target-app.com -quickout /zap/wrk/report.html
echo "ZAP scan completed"
ls -la zap-reports/

- name: Check ZAP scan results
run: |
echo "=== ZAP Scan Results ==="
ls -la zap-reports/
if [ -f zap-reports/report.html ]; then
echo "HTML report generated successfully"
else
echo "Warning: HTML report not found"
fi

- name: Upload ZAP scan reports
uses: actions/upload-artifact@v4
with:
name: zap-scan-reports-50
path: zap-reports/
if-no-files-found: warn
retention-days: 30
compression-level: 6
overwrite: false
include-hidden-files: false

tag_on_pr_merge:
if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -86,7 +124,6 @@ jobs:
tag_on_direct_push:
if: github.event_name == 'push' && github.actor != 'web-flow'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
29 changes: 26 additions & 3 deletions .github/workflows/slack-notify-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,30 @@ on:
- review_requested
- review_request_removed
pull_request_review:
types: [submitted, edited, dismissed]
types:
- submitted
- edited
- dismissed
pull_request_review_comment:
types: [created, edited, deleted]
types:
- created
- edited
- deleted
discussion:
types:
- created
- edited
- deleted
- answered
- unanswered
discussion_comment:
types:
- created
- edited
- deleted

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.sha }}-${{ github.run_id }}
cancel-in-progress: false

env:
Expand Down Expand Up @@ -75,6 +93,11 @@ jobs:
echo "TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
echo "TITLE_LINK=${{ github.event.pull_request.html_url }}" >> $GITHUB_ENV
echo "NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
elif [[ "$GITHUB_EVENT_NAME" == "discussion" || "$GITHUB_EVENT_NAME" == "discussion_comment" ]]; then
echo "THREAD_KEY=${{ github.repository }}-discussion-${{ github.event.discussion.number }}" >> $GITHUB_ENV
echo "TITLE=${{ github.event.discussion.title }}" >> $GITHUB_ENV
echo "TITLE_LINK=${{ github.event.discussion.html_url }}" >> $GITHUB_ENV
echo "NUMBER=${{ github.event.discussion.number }}" >> $GITHUB_ENV
fi

echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
Expand Down
18 changes: 18 additions & 0 deletions Directory Structure
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Directory Structure
# -------------------
# .github/
# β”œβ”€β”€ workflows/
# β”‚ └── slack-notify-v2.yml
# scripts/
# β”œβ”€β”€ send_to_slack.py
# β”œβ”€β”€ slack_utils.py
# └── thread_tracker.py

# File: scripts/send_to_slack.py

# File: scripts/slack_utils.py

# File: scripts/thread_tracker.py (not used in current flow, optional for local fallback)


# File: .github/workflows/slack-notify-v2.yml
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ pnpm create next-app --example with-playwright with-playwright-app
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).




Loading