Skip to content

Commit

Permalink
Adding CODEOWNERS, fixing first interaction for contributers and addi…
Browse files Browse the repository at this point in the history
…ng unathorized code check in PR (#196)

* Update pull-requests.yml

* Create pull-request-target.yml

* Create authorized-changes-detection.yml

* Create CODEOWNERS
  • Loading branch information
nishnatadebnath authored Dec 24, 2021
1 parent adb4fda commit 2c45be6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/authorized-changes-detection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Checking workflow files
on:
pull_request:
paths:
- '.github/**'

jobs:
Checking-for-unauthorized-file-changes:
name: Checking for unauthorized file changes
runs-on: ubuntu-latest
steps:
- name: Unauthorized file modification in PR
run: exit 1
16 changes: 16 additions & 0 deletions .github/workflows/pull-request-target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR target workflow
on:
pull_request_target:

jobs:
PR-Greeting:
name: Greeting Message to user
runs-on: ubuntu-latest

steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: "Congratulations on making your first PR! :confetti_ball: If you haven't already, check out our [Contributing Guidelines](https://github.com/PalisadoesFoundation/talawa/blob/master/CONTRIBUTING.md) and [PR Reporting Guidelines](https://github.com/PalisadoesFoundation/talawa/blob/master/PR-guidelines.md) to ensure that you are following our guidelines for contributing and creating PR."


11 changes: 1 addition & 10 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@ on:
branches:
- '**'
jobs:
PR-Greeting:
name: Greeting Message to user
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: "Congratulations on making your first PR! :confetti_ball: If you haven't already, check out our [Contributing Guidelines](https://github.com/PalisadoesFoundation/talawa/blob/master/CONTRIBUTING.md) and [PR Reporting Guidelines](https://github.com/PalisadoesFoundation/talawa/blob/master/PR-guidelines.md) to ensure that you are following our guidelines for contributing and creating PR."


Linter:
name: Lints the code
runs-on: ubuntu-latest
needs: PR-Greeting
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
Expand Down
2 changes: 2 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.github/ @palisadoes
CODEOWNERS @palisadoes

0 comments on commit 2c45be6

Please sign in to comment.