https://github.com/sanitizers/chronographer-github-app
Your severe chronographer robot who is watching you record all the news to change note files!
https://github.com/sanitizers/chronographer-github-app
change-fragments changelog chronographer-github github-app hacktoberfest news
Last synced: 6 months ago
JSON representation
Your severe chronographer robot who is watching you record all the news to change note files!
- Host: GitHub
- URL: https://github.com/sanitizers/chronographer-github-app
- Owner: sanitizers
- License: gpl-3.0
- Created: 2018-11-29T12:58:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-11T18:57:45.000Z (8 months ago)
- Last Synced: 2025-03-20T19:34:30.910Z (7 months ago)
- Topics: change-fragments, changelog, chronographer-github, github-app, hacktoberfest, news
- Language: Python
- Homepage: https://github.com/apps/chronographer
- Size: 604 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: security_advisory_event.json
Awesome Lists containing this project
README
# chronographer-github-app
Your severe chronographer who is watching you record all the news to change note files!# Configuring the installed app
Here's an example configuration file that a repository where Chronographer
is installed can use optionally, to set certain aspects of this
GitHub App's behavior:
```yaml
# .github/chronographer.yml
---action-hints:
# check-title-prefix: chng # default: `{{ branch-protection-check-name }}: `
external-docs-url: https://pip.pypa.io/how-to-changelog
inline-markdown: >
Check out https://pip.pypa.io/how-to-changelogbranch-protection-check-name: Timeline protection
enforce-name:
suffix: .rst # can be empty or `.md` tooexclude:
bots:
- dependabot-preview
- dependabot
- patchback
humans:
- pyup-botlabels:
fragment-provided: change note detected # default: `bot:chronographer:provided`, disable with `~`
skip-changelog: skip news # default: `bot:chronographer:skip`paths: # relative modified file paths that do or don't need changelog mention
exclude: []
include: []
towncrier-config-filename: ~ # default: `~`, which means checking both...
```# Running the app
## Local development
1. Copy a dotenv config template: `cp -v .env{.example,}`
2. Change `GITHUB_APP_IDENTIFIER` value and `GITHUB_PRIVATE_KEY` contents
* You should be able to inline the key using a trick like this:
```console
GITHUB_PRIVATE_KEY_PATH=~/Downloads/your-app-slug.2019-03-24.private-key.pem
cat $GITHUB_PRIVATE_KEY_PATH | python3.7 -c 'import sys; inline_private_key=r"\n".join(map(str.strip, sys.stdin.readlines())); print(f"GITHUB_PRIVATE_KEY='"'"'{inline_private_key}'"'"'", end="")' >> .env
```
3. `python3.7 -m chronographer`# Known issues/limitations
* Re-requesting a check run from Checks page in PRs doesn't always work.
For a mysterious reason, [sometimes GitHub attaches a list of PRs to the events but sometimes that list is empty
`[complain here]`](
https://github.community/t5/GitHub-API-Development-and/BUG-Sometimes-rerequested-check-run-events-don-t-contain-a-PR/m-p/26964/thread-id/2189
). The link is historic and the discussion contents seem to have been
lost during GitHub's platform migrations.