Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
neeraj2021 authored and kumar-neeraj-001 committed Oct 17, 2023
1 parent 8758987 commit 6259a7c
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Problem/Feature/Solution

<!--
Describe your problem or feature request clearly.
Attach any ref external, page links, source code links
-->

## Priority/Severity

- [ ] Urgent
- [ ] Priority but not that urgent
- [ ] Can be taken as per free bandwidth

## Merge Type

- [ ] Rebase and Merge
- [x] Squash and Merge
25 changes: 25 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Description

_Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change._

Links :

No Link(s) added.

## Checklist

Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process.

- [x] Updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.
- [x] Added relevant reviewers.

## Breaking Change

- [x] No, no existing tests failed.
- [ ] Yes, this is a breaking change.

## Merge Type

- [ ] Rebase and Merge
- [x] Squash and Merge
21 changes: 21 additions & 0 deletions .github/workflows/main-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
name: Create a new release
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Create release
uses: actions/create-release@v1


22 changes: 22 additions & 0 deletions .github/workflows/pull_request_create_notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Notify on telegram/discord for pull request'
on:
pull_request:
types: ['opened', 'reopened', 'synchronize', 'edited']

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: TheTechNexus/pull_request_action@main
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
pull_number: ${{ github.event.number }}
github_api_key: ${{ secrets.CUSTOM_GITHUB_API_TOKEN }}
telegram_bot_token: ${{ secrets.iris_telegram_token }}
telegram_chat_id: -1001945935593
23 changes: 23 additions & 0 deletions .github/workflows/pull_request_reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# At 9:30 AM and 6:30 PM
name: 'Notify On Telegram About Open Pull Requests'
on:
schedule:
- cron: '0 4 * * *' # 9:30 AM
- cron: '0 13 * * *' # 6:30 PM

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: TheTechNexus/[email protected]
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
github_api_key: ${{ secrets.CUSTOM_GITHUB_API_TOKEN }}
telegram_bot_token: ${{ secrets.iris_telegram_token }}
telegram_chat_id: -1001945935593

0 comments on commit 6259a7c

Please sign in to comment.