mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-11 08:32:21 +03:00
Auto-format YAML in the .github folder
This commit is contained in:
parent
401b4a6f23
commit
6542067138
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
|
@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
|
||||||
liberapay: # Replace with a single Liberapay username
|
liberapay: # Replace with a single Liberapay username
|
||||||
issuehunt: # Replace with a single IssueHunt username
|
issuehunt: # Replace with a single IssueHunt username
|
||||||
otechie: # Replace with a single Otechie username
|
otechie: # Replace with a single Otechie username
|
||||||
custom: ['https://www.patreon.com/browniebroke']
|
custom: ["https://www.patreon.com/browniebroke"]
|
||||||
|
|
27
.github/workflows/django-issue-checker.yml
vendored
27
.github/workflows/django-issue-checker.yml
vendored
|
@ -5,24 +5,23 @@ name: Django Issue Checker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "28 5 * * *"
|
- cron: "28 5 * * *"
|
||||||
# Manual trigger
|
# Manual trigger
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
issue-manager:
|
issue-manager:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Create Django Major Issue
|
- name: Create Django Major Issue
|
||||||
run: python scripts/create_django_issue.py
|
run: python scripts/create_django_issue.py
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
72
.github/workflows/issue-manager.yml
vendored
72
.github/workflows/issue-manager.yml
vendored
|
@ -15,7 +15,7 @@ name: Issue Manager
|
||||||
on:
|
on:
|
||||||
# Every day at midnight
|
# Every day at midnight
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
# Manual trigger
|
# Manual trigger
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -23,40 +23,40 @@ jobs:
|
||||||
issue-manager:
|
issue-manager:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: tiangolo/issue-manager@0.4.0
|
- uses: tiangolo/issue-manager@0.4.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
config: >
|
config: >
|
||||||
{
|
{
|
||||||
"answered": {
|
"answered": {
|
||||||
"delay": 864000,
|
"delay": 864000,
|
||||||
"message": "Assuming the original issue was solved, it will be automatically closed now.",
|
"message": "Assuming the original issue was solved, it will be automatically closed now.",
|
||||||
"users": [
|
"users": [
|
||||||
"pydanny",
|
"pydanny",
|
||||||
"audreyr",
|
"audreyr",
|
||||||
"luzfcb",
|
"luzfcb",
|
||||||
"theskumar",
|
"theskumar",
|
||||||
"jayfk",
|
"jayfk",
|
||||||
"burhan",
|
"burhan",
|
||||||
"webyneter",
|
"webyneter",
|
||||||
"browniebroke",
|
"browniebroke",
|
||||||
"sfdye"
|
"sfdye"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"waiting": {
|
"waiting": {
|
||||||
"delay": 864000,
|
"delay": 864000,
|
||||||
"message": "Automatically closing. To re-open, please provide the additional information requested.",
|
"message": "Automatically closing. To re-open, please provide the additional information requested.",
|
||||||
"users": [
|
"users": [
|
||||||
"pydanny",
|
"pydanny",
|
||||||
"audreyr",
|
"audreyr",
|
||||||
"luzfcb",
|
"luzfcb",
|
||||||
"theskumar",
|
"theskumar",
|
||||||
"jayfk",
|
"jayfk",
|
||||||
"burhan",
|
"burhan",
|
||||||
"webyneter",
|
"webyneter",
|
||||||
"browniebroke",
|
"browniebroke",
|
||||||
"sfdye"
|
"sfdye"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
39
.github/workflows/pre-commit-autoupdate.yml
vendored
39
.github/workflows/pre-commit-autoupdate.yml
vendored
|
@ -1,36 +1,35 @@
|
||||||
# Run pre-commit autoupdate every day at midnight
|
# Run pre-commit autoupdate every day at midnight
|
||||||
# and create a pull request if any changes
|
# and create a pull request if any changes
|
||||||
|
|
||||||
|
|
||||||
name: Pre-commit auto-update
|
name: Pre-commit auto-update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch: # to trigger manually
|
workflow_dispatch: # to trigger manually
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-update:
|
auto-update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
|
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
|
|
||||||
- name: Run pre-commit autoupdate
|
- name: Run pre-commit autoupdate
|
||||||
working-directory: "{{cookiecutter.project_slug}}"
|
working-directory: "{{cookiecutter.project_slug}}"
|
||||||
run: pre-commit autoupdate
|
run: pre-commit autoupdate
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3.11.0
|
uses: peter-evans/create-pull-request@v3.11.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: update/pre-commit-autoupdate
|
branch: update/pre-commit-autoupdate
|
||||||
title: Auto-update pre-commit hooks
|
title: Auto-update pre-commit hooks
|
||||||
commit-message: Auto-update pre-commit hooks
|
commit-message: Auto-update pre-commit hooks
|
||||||
body: Update versions of tools in pre-commit configs to latest version
|
body: Update versions of tools in pre-commit configs to latest version
|
||||||
labels: update
|
labels: update
|
||||||
|
|
34
.github/workflows/update-changelog.yml
vendored
34
.github/workflows/update-changelog.yml
vendored
|
@ -15,21 +15,21 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Set git details
|
- name: Set git details
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions"
|
git config --global user.name "github-actions"
|
||||||
git config --global user.email "action@github.com"
|
git config --global user.email "action@github.com"
|
||||||
- name: Update list
|
- name: Update list
|
||||||
run: python scripts/update_changelog.py
|
run: python scripts/update_changelog.py
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
32
.github/workflows/update-contributors.yml
vendored
32
.github/workflows/update-contributors.yml
vendored
|
@ -10,21 +10,21 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Update list
|
- name: Update list
|
||||||
run: python scripts/update_contributors.py
|
run: python scripts/update_contributors.py
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4.12.0
|
uses: stefanzweifel/git-auto-commit-action@v4.12.0
|
||||||
with:
|
with:
|
||||||
commit_message: Update Contributors
|
commit_message: Update Contributors
|
||||||
file_pattern: CONTRIBUTORS.md .github/contributors.json
|
file_pattern: CONTRIBUTORS.md .github/contributors.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user