Skip to content

Commit

Permalink
Update greetings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mostypc123 authored Nov 30, 2024
1 parent 63053f1 commit c3cca17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Contribution Greetings
on:
pull_request_target:
branches: [ main ]
types: [opened, closed]
issues:
types: [ opened ]
types: [opened]

jobs:
greeting:
Expand All @@ -26,6 +26,9 @@ jobs:
const { owner, repo } = context.repo;
const contributor = context.payload.sender.login;
// Only run on PR or issue open events
if (!(context.payload.action === 'opened')) return;
// Fetch total PR and Issue count for this contributor
const [prResponse, issueResponse] = await Promise.all([
github.rest.search.issuesAndPullRequests({
Expand Down

0 comments on commit c3cca17

Please sign in to comment.