Skip to content

Commit 7d15218

Browse files
Added the workflows
1 parent c19dc1d commit 7d15218

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/comment_on_pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Comment on Pull Request
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
comment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/github-script@v6
12+
with:
13+
script: |
14+
github.rest.issues.createComment({
15+
issue_number: context.issue.number,
16+
owner: context.repo.owner,
17+
repo: context.repo.repo,
18+
body: 'Greetings! This is an automated message from GitHub Actions. :robot:\nYour pull request has been received and is awaiting for a review by the repository owner or a maintainer. This may take some time, so please be patient.\nWhile you wait, you can continue to work on other issues or pull requests, or explore the project further. Or you can simply relax and enjoy your day.\nThank you for your contribution to this project! You are awesome! :star:'
19+
})

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
run-linters:
7+
name: Run linters
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out Git repository
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.8
18+
19+
- name: Install Python dependencies
20+
run: pip install black flake8
21+
22+
- name: Run linters
23+
uses: wearerequired/lint-action@v2
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
black: true
27+
auto_fix: true

0 commit comments

Comments
 (0)