From 7b7c8617b1d2cf29fbbafd83edc567a17ac90772 Mon Sep 17 00:00:00 2001 From: Md Imran Date: Fri, 22 Sep 2023 17:29:49 +0530 Subject: [PATCH 1/2] Delete .github/workflows/auto-assign-reviewer-and-assignee.yaml --- .../auto-assign-reviewer-and-assignee.yaml | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/auto-assign-reviewer-and-assignee.yaml diff --git a/.github/workflows/auto-assign-reviewer-and-assignee.yaml b/.github/workflows/auto-assign-reviewer-and-assignee.yaml deleted file mode 100644 index 3dda5874e..000000000 --- a/.github/workflows/auto-assign-reviewer-and-assignee.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Auto Assign Reviewer and Assignee -on: - pull_request: - types: - - opened - -jobs: - auto_assign: - runs-on: ubuntu-latest - - steps: - - name: Assign Reviewer and Assignee - uses: actions/github-script@v5 - with: - script: | - const { data: pullRequest } = await github.pulls.get({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.issue.number - }); - - // Assign the person who raised the PR as the assignee - const creatorUsername = pullRequest.user.login; - await github.pulls.createReviewRequest({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.issue.number, - reviewers: ["narmidm","bharath-avesha","YachikaRalhan","Rahul-D78","rahulsawra98","gourishkb","mridulgain"], // Replace "username" with the desired reviewer - assignees: [creatorUsername] - }); - token: ${{ secrets.GITHUB_TOKEN }} From b7a5dedb8d56f65bcd4f11c2b4a19ac5499e7504 Mon Sep 17 00:00:00 2001 From: Md Imran Date: Fri, 22 Sep 2023 17:32:10 +0530 Subject: [PATCH 2/2] Create CODEOWNERS --- CODEOWNERS | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 000000000..66e439793 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,67 @@ +# This is a comment. +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +# @global-owner1 and @global-owner2 will be requested for +# review when someone opens a pull request. +* @global-owner1 @global-owner2 + +# Order is important; the last matching pattern takes the most +# precedence. When someone opens a pull request that only +# modifies JS files, only @js-owner and not the global +# owner(s) will be requested for a review. +*.js @js-owner #This is an inline comment. + +# You can also use email addresses if you prefer. They'll be +# used to look up users just like we do for commit author +# emails. +*.go docs@example.com + +# Teams can be specified as code owners as well. Teams should +# be identified in the format @org/team-name. Teams must have +# explicit write access to the repository. In this example, +# the octocats team in the octo-org organization owns all .txt files. +*.txt @octo-org/octocats + +# In this example, @doctocat owns any files in the build/logs +# directory at the root of the repository and any of its +# subdirectories. +/build/logs/ @doctocat + +# The `docs/*` pattern will match files like +# `docs/getting-started.md` but not further nested files like +# `docs/build-app/troubleshooting.md`. +docs/* docs@example.com + +# In this example, @octocat owns any file in an apps directory +# anywhere in your repository. +apps/ @octocat + +# In this example, @doctocat owns any file in the `/docs` +# directory in the root of your repository and any of its +# subdirectories. +/docs/ @doctocat + +# In this example, any change inside the `/scripts` directory +# will require approval from @doctocat or @octocat. +/scripts/ @doctocat @octocat + +# In this example, @octocat owns any file in a `/logs` directory such as +# `/build/logs`, `/scripts/logs`, and `/deeply/nested/logs`. Any changes +# in a `/logs` directory will require approval from @octocat. +**/logs @octocat + +# In this example, @octocat owns any file in the `/apps` +# directory in the root of your repository except for the `/apps/github` +# subdirectory, as its owners are left empty. +/apps/ @octocat +/apps/github + +# In this example, @octocat owns any file in the `/apps` +# directory in the root of your repository except for the `/apps/github` +# subdirectory, as this subdirectory has its own owner @doctocat +/apps/ @octocat +/apps/github @doctocat + +* @narmidm @bharath-avesha @YachikaRalhan @Rahul-D78 @rahulsawra98 @gourishkb @mridulgain