https://github.com/yuu-eguci/continuouspr
This program posts Pull Request using api.github.com. It is worth using when you want to notify only about the PRs about project release.
https://github.com/yuu-eguci/continuouspr
github-actions github-api python3 slack
Last synced: 10 months ago
JSON representation
This program posts Pull Request using api.github.com. It is worth using when you want to notify only about the PRs about project release.
- Host: GitHub
- URL: https://github.com/yuu-eguci/continuouspr
- Owner: yuu-eguci
- Created: 2021-02-04T08:38:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T00:24:03.000Z (over 4 years ago)
- Last Synced: 2023-03-03T13:12:31.413Z (almost 3 years ago)
- Topics: github-actions, github-api, python3, slack
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ContinuousPR
===
This program posts Pull Request using api.github.com.
You can do this only by hitting one api with curl. And also by using hub command or gh command.
But if you want the feature below, this program helps.
- Send notification only about the PRs posted by this program,to Slack channel
It is worth using when you want to notify **only** about the PRs about project release.

## Installation
```bash
pipenv install
pipenv shell
python main.py --head dev --base master
```
## Usage
```plaintext
# python main.py -h
usage: main.py [-h] [-H HEAD] [-B BASE] [-S SLACK_NOTIFICATION] [-D DATE]
optional arguments:
-h, --help show this help message and exit
-H HEAD, --head HEAD head -> base
-B BASE, --base BASE head -> base
-S SLACK_NOTIFICATION, --slack-notification SLACK_NOTIFICATION
Send release note message to Slack
-D DATE, --date DATE Run this program only on this date
```
## .env
```
# 実際にプログラムが動く環境で必要な env(Heroku を想定)
OWNER = ''
REPO = ''
TOKEN_REPO_SCOPE = ''
SLACK_BOT_TOKEN = ''
SLACK_MESSAGE_CHANNEL = ''
PR_BODY = ""
# CI/CD 環境で必要な env(GitHub Actions を想定)
HEROKU_API_KEY = ''
HEROKU_APP_NAME = ''
HEROKU_EMAIL = ''
```
## .env
```
# 実際にプログラムが動く環境で必要な env(Heroku を想定)
OWNER = ''
REPO = ''
TOKEN_REPO_SCOPE = ''
SLACK_BOT_TOKEN = ''
SLACK_MESSAGE_CHANNEL = ''
PR_BODY = ""
# CI/CD 環境で必要な env(GitHub Actions を想定)
HEROKU_API_KEY = ''
HEROKU_APP_NAME = ''
HEROKU_EMAIL = ''
```