mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Add issue-and-pr-template autopatch
This commit is contained in:
parent
454a0edccf
commit
cfa545f45b
4 changed files with 21 additions and 4 deletions
|
@ -161,16 +161,16 @@ def main():
|
|||
Example usage:
|
||||
|
||||
# Init local git clone for all apps
|
||||
./autopatch --build-cache
|
||||
./autopatch.py --build-cache
|
||||
|
||||
# Apply patch in all local clones
|
||||
./autopatch --apply explicit-php-version-in-deps
|
||||
./autopatch.py --apply explicit-php-version-in-deps
|
||||
|
||||
# Inspect diff for all apps
|
||||
./autopatch --diff
|
||||
./autopatch.py --diff
|
||||
|
||||
# Push and create pull requests on all apps with non-empty diff
|
||||
./autopatch --push explicit-php-version-in-deps
|
||||
./autopatch.py --push explicit-php-version-in-deps
|
||||
""")
|
||||
|
||||
elif action == "--build-cache":
|
||||
|
|
14
autopatches/patches/issue-and-pr-template/patch.sh
Normal file
14
autopatches/patches/issue-and-pr-template/patch.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
[ ! -e issue_template.md ] || git rm issue_template.md
|
||||
[ ! -e pull_request_template.md ] || git rm pull_request_template.md
|
||||
|
||||
[ ! -e .github ] || git rm -rf .github
|
||||
mkdir -p .github
|
||||
|
||||
# Sleep 1 to avoid too many requests on github (there's a rate limit anyway)
|
||||
sleep 1
|
||||
|
||||
wget -O .github/ISSUE_TEMPLATE.md https://raw.githubusercontent.com/YunoHost/example_ynh/master/.github/ISSUE_TEMPLATE.md
|
||||
wget -O .github/PULL_REQUEST_TEMPLATE.md https://raw.githubusercontent.com/YunoHost/example_ynh/master/.github/PULL_REQUEST_TEMPLATE.md
|
||||
|
||||
git add .github
|
2
autopatches/patches/issue-and-pr-template/pr_body.md
Normal file
2
autopatches/patches/issue-and-pr-template/pr_body.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
This is an ***automated*** patch to sync the issue and PR template with the official templates in https://github.com/YunoHost/example_ynh/tree/master/.github
|
1
autopatches/patches/issue-and-pr-template/pr_title.md
Normal file
1
autopatches/patches/issue-and-pr-template/pr_title.md
Normal file
|
@ -0,0 +1 @@
|
|||
Update issue and PR templates
|
Loading…
Add table
Reference in a new issue