From 2c48a4da2a753cee9c9f3623db150751d92ecc38 Mon Sep 17 00:00:00 2001 From: Nitya Pasrija <97171261+Nitya-Pasrija@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:13:21 +0530 Subject: [PATCH] workflow --- .github/workflows/greeting.yml | 16 ++++++++++++++++ .github/workflows/stale.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 46 insertions(+), 1 deletion(-) 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..99f80f8 --- /dev/null +++ b/.github/workflows/greeting.yml @@ -0,0 +1,16 @@ +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 diff --git a/README.md b/README.md index 819e51e..03d1bf2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![image](https://github.com/SnowScriptWinterOfCode/QuickQuiz/assets/97171261/bd54be3f-6450-42a3-993b-06f9972fe548) ## Maintainers -@i-am-SnehaChauhan and @Nitya-Pasrija +[@i-am-SnehaChauhan](https://github.com/i-am-SnehaChauhan) and [@Nitya-Pasrija](https://github.com/Nitya-Pasrija) Please reach out to the maintainers if you get stuck or wish to report someone.