Skip to content
Closed
Changes from all commits
Commits
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
9 changes: 5 additions & 4 deletions .github/workflows/owner-notification.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Owner Notification

on:
pull_request:
pull_request_target:
types: [opened, synchronize]

jobs:
Expand All @@ -11,7 +11,7 @@ jobs:
contents: read
pull-requests: write
issues: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -28,14 +28,15 @@ jobs:
- name: Find owners and notify
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const path = require('path');

// Get changed files
const changedFiles = `${{ steps.changed-files.outputs.all_changed_files }}`.split(' ');
console.log('Changed files:', changedFiles);

// Function to find OWNER file for a given file path
function findOwnerFile(filePath) {
const parts = filePath.split('/');
Expand Down
Loading