Skip to content

Commit

Permalink
Merge pull request #77 from Mehak-Mattoo/feature
Browse files Browse the repository at this point in the history
Chatbot settings
  • Loading branch information
MastanSayyad authored Jul 5, 2024
2 parents a01a63f + d51f097 commit a6b3638
Show file tree
Hide file tree
Showing 13 changed files with 775 additions and 584 deletions.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Bug Report 🐞
about: Report a bug to help us improve
title: "[BUG] "
labels: bug
assignees: ""
---

**Description**
(Description about the issue)

**Use Case**
(Use cases and benefits)

**Screenshots**
(Screenshots of the issue or reference)

**Additional Context**
(Any other context about the problem)
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Documentation 📄
about: Improve or add documentation
title: "[DOCS] "
labels: documentation
assignees: ""
---

**Description**
(Description about the issue)

**Use Case**
(Use cases and benefits)

**Screenshots**
(Screenshots of the issue or reference)

**Additional Context**
(Any other context about the problem)
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Request 💡
about: Suggest a new feature or enhancement
title: "[FEATURE] "
labels: enhancement
assignees: ""
---

**Description**
(Description about the issue)

**Use Case**
(Use cases and benefits)

**Screenshots**
(Screenshots of the issue or reference)

**Additional Context**
(Any other context about the problem)
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Description

<!--- Describe your changes in detail -->

## Issue number

<!--- Please include the issue number this PR addresses. If no issue exists, please create one to ensure this PR has a point of reference. -->

Issue fixes: #

## Screenshots (if any)

<!--- Provide screenshots of before and after changes. This will help in understanding the visual impact of your changes. -->
23 changes: 23 additions & 0 deletions .github/workflows/issue-welcome-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Issue Welcome Comment

on:
issues:
types: [opened]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Add Welcome Comment
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Thank you for creating an issue! 🎉 Please make sure to:
- Read our [CONTRIBUTING.md](https://github.com/${context.repo.owner}/${context.repo.repo}/blob/main/CONTRIBUTING.md) guide.
- Star our repo ⭐ if you find it useful.
Your contribution is appreciated!`
})
33 changes: 33 additions & 0 deletions .github/workflows/pr-thank-you.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PR Thank You Bot

on:
pull_request:
types: [opened, closed]

jobs:
thank_you:
runs-on: ubuntu-latest
steps:
- name: Send Welcome Comment
if: github.event.action == 'opened'
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for your contribution! 🎉 We appreciate your effort in making our project better. Please provide any additional information if needed.'
})
- name: Send Merge Comment
if: github.event.action == 'closed' && github.event.pull_request.merged == true
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for merging this PR! 🙌 Your contribution has been successfully integrated into the project. Great job!'
})
Loading

0 comments on commit a6b3638

Please sign in to comment.