From b62cba75d74fa44651831a25e4d04d3d9d4550e7 Mon Sep 17 00:00:00 2001 From: Avdhesh-Varshney <114330097+Avdhesh-Varshney@users.noreply.github.com> Date: Sat, 8 Jun 2024 00:23:22 +0530 Subject: [PATCH] added-workflows - Add Issue templates - Also PR templates - Some greetings workflows --- .github/ISSUE_TEMPLATE/bug-report.md | 28 +++++++++ .github/ISSUE_TEMPLATE/config.yml | 8 +++ .github/ISSUE_TEMPLATE/enhancement-request.md | 28 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 52 ++++++++++++++++ .github/workflows/auto-comment-pr-raise.yml | 36 +++++++++++ .github/workflows/codeql.yml | 59 +++++++++++++++++++ 6 files changed, 211 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/enhancement-request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/auto-comment-pr-raise.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..bb6c887 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,28 @@ +--- +name: Bug Report 🐞 +about: Reporting for any bug in the project. +title: '🐛: ' +labels: ["Up-for-Grabs ✋", "bug 🐛"] +assignees: + - '' + +--- + +:red_circle: **Title** : +:red_circle: **Bug** : +:red_circle: **Changes** : + + +### Screenshots 📷 + + + +*********************************************************************** +:white_check_mark: **To be Mentioned while taking the issue :** +- Full name : +- What is your participant role? (Mention the Open Source Program name. Eg. GSOC, GSSOC, SSOC, JWOC, etc.) + +*********************************************************************** +Happy Contributing 🚀 + +All the best. Enjoy your open source journey ahead. 😎 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..68ae13a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: true +contact_links: + - name: Questions + url: https://discord.gg/tSqtvHUJzE + about: You can join the discussions on Discord. + - name: Login does not work + url: https://github.com/Avdhesh-Varshney/Chanakya-Niti/blob/main/README.md + about: Before opening a new issue, please make sure to read README.md diff --git a/.github/ISSUE_TEMPLATE/enhancement-request.md b/.github/ISSUE_TEMPLATE/enhancement-request.md new file mode 100644 index 0000000..dbbe8da --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement-request.md @@ -0,0 +1,28 @@ +--- +name: Enhancement Request 🧑‍💻 +about: Improving any styling or documentation of the project. +title: '🧑‍💻: ' +labels: ["Up-for-Grabs ✋", "enhancement 🧑‍💻"] +assignees: + - '' + +--- + +:red_circle: **Title** : +:red_circle: **Enhancement Aim** : +:red_circle: **Changes** : + + +### Screenshots 📷 + + + +*********************************************************************** +:white_check_mark: **To be Mentioned while taking the issue :** +- Full name : +- What is your participant role? (Mention the Open Source Program name. Eg. GSOC, GSSOC, SSOC, JWOC, etc.) + +*********************************************************************** +Happy Contributing 🚀 + +All the best. Enjoy your open source journey ahead. 😎 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..43b8b52 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,52 @@ +Closes: + +- **Title** : +- **Name:** +- **Idenitfy yourself:** + + + + +### Describe the add-ons or changes you've made 📃 + +Give a clear description of what have you added or modifications made + + +### Type of change ☑️ + +What sort of change have you made: + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Code style update (formatting, local variables) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] This change requires a documentation update + +### How Has This Been Tested? ⚙️ + + + + +### Checklist: ☑️ + +- [ ] My code follows the [Contributing Guidelines](https://github.com/Avdhesh-Varshney/Chanakya-Niti/blob/main/README.md) & [Code of Conduct](https://github.com/Avdhesh-Varshney/Chanakya-Niti/blob/main/CODE_OF_CONDUCT.md) of this project. +- [ ] This PR does not contain plagiarized content. +- [ ] I have performed a self-review of my own code. +- [ ] I have commented my code, particularly wherever it was hard to understand. +- [ ] My changes generate no new warnings. + + +### Screenshots 📷 + + + +### Note to reviewers 📄 + + diff --git a/.github/workflows/auto-comment-pr-raise.yml b/.github/workflows/auto-comment-pr-raise.yml new file mode 100644 index 0000000..0d8e4ba --- /dev/null +++ b/.github/workflows/auto-comment-pr-raise.yml @@ -0,0 +1,36 @@ +name: Auto Comment on PR + +on: + pull_request_target: + types: [opened] + +permissions: + issues: write + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Add Comment to Pull Request + run: | + COMMENT=$(cat <