From b7c88e2d105ebc35c8be83ea9c484cd4b5e4ed0e Mon Sep 17 00:00:00 2001 From: Nitya Pasrija <97171261+Nitya-Pasrija@users.noreply.github.com> Date: Thu, 28 Dec 2023 15:49:45 +0530 Subject: [PATCH] workflow --- .github/workflows/greeting.yml | 17 +++++++++++++++++ .github/workflows/stale.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/greeting.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/greeting.yml b/.github/workflows/greeting.yml new file mode 100644 index 0000000..a3f93b2 --- /dev/null +++ b/.github/workflows/greeting.yml @@ -0,0 +1,17 @@ +# .github/workflows/greetings.yml +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.TOKEN }} + issue-message: "Woohoo! Your first ever issue with us in this repository has been created🎊🎊!!" + pr-message: "Perfection! Advancing through the open-source world!🎊🎊 :) Please be patient while our maintainers and reviewers check the code." diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..cdea7d9 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,29 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '23 20 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.TOKEN }} + stale-issue-message: 'We noticed that this Issue has been inactive for quite some time. πŸ₯Ί' + stale-pr-message: 'This PR has no activity, Maintainers and Reviewers we need help here πŸ’–' + stale-issue-label: 'inactive-issue' + stale-pr-label: 'pr-review-asap' + days-before-issue-stale: 5 + days-before-pr-stale: 3