This repo holds the code powering automation for the JGerman Team. As of today it has the following feature: Autocreate issues to the joomlagerman/joomla repo when an language changing PR at the joomla/joomla-cms repo got merged (using @jgerman-bot)
cd /repo/path/jgerman-bot
git clone [email protected]:joomlagerman/jgerman-bot.git .
cp includes/constants.dist.php includes/constants.php
nano includes/constants.php
(Add the access data)- Setup an daily cronjob on this script:
php cli/jgerman-github-bot.php
cd /repo/path/jgerman-bot
git reset --hard HEAD && git pull origin master
The Configuration is stored within the includes/constants.php
. For an initial setup please see the includes/constants.dist.php
file.
Holds user username that is used to connect to the GitHub API and who is used to create PRs
Holds the authtoken of the username to connect to the GitHub API
Holds the org name of the repo which should be watched by the bot
Holds the repository which should be watched by the bot
Holds the label which should be watched within the mentiond source repo
Holds the org name of the repo which the bot should be posting its issues at
Holds the repo where the bot should be posing its issues
Holds the label that should be set for the issues created by the bot
Holds an array of github usernames that should be assigned to the issues that the bot creates
Holds a template of the body to be posted by the bot. This string allows the following codes which will be replaced before the issue is posted:
[sourcePullRequestUrl]
=> The URL of the original PR against the source repo[sourcePullDiff]
=> The full diff of the original PR via an<details>
tab
True or False whether the Slack notification should be anabled
The webhook URL pointing to the slack channel where the message shoud be send to
THe Slack username the message should be send as
True or False whether the Slack notification should be anabled
The webhook URL pointing to the mattermost channel where the message should be send to
True or False whether the Slack notification should be anabled
The Telegram Channel Bot Token as which the message shoudl be send
The Telegram ChatID the message should be send to
The template of the message send to the channels as notification that a new issue has been created. This string allows the following codes which will be replaced before the message is send:
{title}
=> The title of the issue created by the bot{issueUrl}
=> The issue URL created in the translation repo.