Skip to content

Commit 9bc8280

Browse files
πŸ”„ synced file(s) with JesperDramsch/github-files (#1)
* πŸ”„ created local '.github/workflows/' from remote 'workflows/code-quality/' * πŸ”„ created local '.github/dependabot.yml' from remote 'configs/dependabot.yml' * πŸ”„ created local '.github/workflows/labeler.yml' from remote 'workflows/issue-pr/labeler.yml' * πŸ”„ created local '.github/labeler.yml' from remote 'configs/labeler.yml'
1 parent 3d4e699 commit 9bc8280

File tree

5 files changed

+126
-0
lines changed

5 files changed

+126
-0
lines changed

β€Ž.github/dependabot.ymlβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

β€Ž.github/labeler.ymlβ€Ž

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Tests:
2+
- changed-files:
3+
- any-glob-to-any-file: [ "tests/**/*" ]
4+
5+
Dependencies:
6+
- changed-files:
7+
- any-glob-to-any-file:
8+
- "requirements.txt"
9+
- "setup.py"
10+
- "pyproject.toml"
11+
- "poetry.lock"
12+
- "pixi.toml"
13+
- "pixi.lock"
14+
- "Pipfile"
15+
- "Pipfile.lock"
16+
- "requirements/*.txt"
17+
- "requirements/*.in"
18+
19+
Build:
20+
- changed-files:
21+
- any-glob-to-any-file:
22+
- "Dockerfile*"
23+
- "docker-compose*.yml"
24+
- "Makefile"
25+
26+
Documentation:
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- "docs/**/*"
30+
- "*.md"
31+
- "*.rst"
32+
33+
Config:
34+
- changed-files:
35+
- any-glob-to-any-file:
36+
- ".pre-commit-config.yaml"
37+
- "config/**/*"
38+
- "settings/**/*"
39+
- "*.ini"
40+
- "*.cfg"
41+
- "*.conf"
42+
43+
CI/CD:
44+
- changed-files:
45+
- any-glob-to-any-file:
46+
- ".github/**/*"
47+
- "tox.ini"
48+
- ".coveragerc"
49+
50+
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
51+
feature:
52+
- head-branch:
53+
- '^feature'
54+
- 'feature'
55+
56+
# Add 'bugfix' label to branches with bug/fix/hotfix prefixes
57+
bugfix:
58+
- head-branch: [ '^bug', '^fix', '^hotfix' ]
59+
60+
# Add 'breaking' label for major version bumps or breaking change commits
61+
breaking:
62+
- title: [ '^BREAKING CHANGE', 'BREAKING-CHANGE' ]
63+
- body: [ 'BREAKING CHANGE:', 'BREAKING-CHANGE:' ]

β€Ž.github/workflows/codeql.ymlβ€Ž

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# .github/workflows/codeql.yml
2+
name: CodeQL Analysis
3+
4+
on:
5+
push:
6+
branches: [ main, master ]
7+
pull_request:
8+
branches: [ main, master ]
9+
schedule:
10+
- cron: '0 0 * * 0'
11+
12+
jobs:
13+
analyze:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Initialize CodeQL
21+
uses: github/codeql-action/init@v3
22+
with:
23+
languages: python
24+
- name: Perform CodeQL Analysis
25+
uses: github/codeql-action/analyze@v3
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Dependabot PR CI
2+
on:
3+
schedule:
4+
- cron: "0 */6 * * *" # Every six hours
5+
workflow_dispatch:
6+
jobs:
7+
auto-merge:
8+
name: Auto Merge
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Merge minor/patch updates
12+
uses: koj-co/dependabot-pr-action@v1
13+
with:
14+
token: ${{ secrets.GH_PAT }}
15+
merge-minor: true
16+
merge-patch: true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5

0 commit comments

Comments
Β (0)