Skip to content

Commit

Permalink
suggested changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank77maruti committed Oct 11, 2024
1 parent 7e69c88 commit beafa61
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/developer_onboarding_notification.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

name: PR Merge Comment
name: Celebrating Initial Contributions

on:
pull_request_target:
types: [closed]

permissions: write-all
permissions:
pull-requests: write

jobs:
comment-on-merge:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop'
comment_on_merged_pull_request:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set environment variables
- name: Set Environment Variables
env:
AUTHOR: ${{ github.event.pull_request.user.login }}
REPO: ${{ github.event.repository.name }}
Expand All @@ -25,8 +25,8 @@ jobs:
echo "REPO=${REPO}" >> $GITHUB_ENV
echo "OWNER=${OWNER}" >> $GITHUB_ENV
- name: Count merged PRs
id: count-prs
- name: Count Merged Pull Requests
id: count_merged_pull_requests
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,7 +40,7 @@ jobs:
const prCount = data.items.filter(pr => pr.pull_request.merged_at).length;
core.exportVariable('PR_COUNT', prCount);
- name: Comment on the PR
- name: Comment on the Merged Pull Request
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -70,4 +70,4 @@ jobs:
issue_number: prNumber,
body: message
});
}
}

0 comments on commit beafa61

Please sign in to comment.