Skip to content

Commit

Permalink
✨ feat: use "mostypc123bot" as commenting user
Browse files Browse the repository at this point in the history
  • Loading branch information
mostypc123 authored Dec 28, 2024
1 parent feb9e8d commit 068b0a1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
types: [opened, closed]
issues:
types: [opened]

jobs:
greeting:
runs-on: ubuntu-latest
Expand All @@ -15,9 +14,8 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Thanks for your issue!"
pr-message: "Thanks for the pull request!"

issue-message: "<!-- bot: mostypc123bot, avatar: https://avatars.githubusercontent.com/u/140317448?v=4 -->Thanks for your issue! <br>Just a reminder, we recommend to read existing issues and documentation."
pr-message: "<!-- bot: mostypc123bot, avatar: https://avatars.githubusercontent.com/u/140317448?v=4 -->Thanks for the pull request!"
- name: Check Contributor History
uses: actions/github-script@v7
with:
Expand All @@ -44,9 +42,9 @@ jobs:
let message = '';
if (totalContributions > 10) {
message = `Wow, you're still contributing @${contributor}!`;
message = `<!-- bot: mostypc123bot, avatar: https://avatars.githubusercontent.com/u/140317448?v=4 -->Wow, you're still contributing @${contributor}!`;
} else if (totalContributions > 1) {
message = "Whoa! Thanks for another contribution!";
message = "<!-- bot: mostypc123bot, avatar: https://avatars.githubusercontent.com/u/140317448?v=4 -->Whoa! Thanks for another contribution!";
}
if (message) {
Expand Down

0 comments on commit 068b0a1

Please sign in to comment.