Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEyo1 committed Apr 11, 2024
1 parent 7c00b6e commit 7e26f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/new-contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
const repoOwner = context.repo.owner;
const repoName = context.repo.repo;
const currentPR = context.payload.pull_request.number;
const mergedPRs = await github.paginate(
const previouslyMergedPRsByAuthor = await github.paginate(
github.rest.pulls.list,
{
owner: repoOwner,
Expand All @@ -33,7 +33,7 @@ jobs:
},
(response) => response.data.filter(pr => pr.merged_at != null && pr.user.login === prAuthor && pr.number !== currentPR)
);
if (mergedPRs.length == 0) {
if (previouslyMergedPRsByAuthor.length == 0) {
const welcomeMessage = `**Welcome**, @${prAuthor}! 🎉 Thank you for your contribution to the MarkBind project!\n\n@${prMerger}, please remember to add @${prAuthor} as an official contributor to our repository.\n\nSee the full list of contributors [here](https://markbind.org/about.html). ✨`;
github.rest.issues.createComment({
issue_number: currentPR,
Expand Down

0 comments on commit 7e26f6f

Please sign in to comment.