Skip to content

Commit a71722a

Browse files
authored
feat: add workflows to align with cpp-linter org (#1)
2 parents 7933169 + 25293d9 commit a71722a

File tree

5 files changed

+57
-9
lines changed

5 files changed

+57
-9
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"
12+
groups:
13+
actions:
14+
patterns:
15+
- "*"

.github/workflows/clang-tools-release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build clang-tools wheels
22

33
on:
4+
45
workflow_dispatch:
56
inputs:
67
llvm_version:
@@ -262,7 +263,7 @@ jobs:
262263
run: |
263264
echo "${{ github.event.inputs.llvm_version }}.${{ github.event.inputs.wheel_version }}" > clang-format_version.txt
264265
cat clang-format_version.txt
265-
266+
266267
- name: Build SDist
267268
run: pipx run build --sdist
268269

@@ -416,7 +417,7 @@ jobs:
416417
create-draft-release:
417418
name: Create draft release on GitHub
418419
needs: [
419-
build-clang-format-wheels,
420+
build-clang-format-wheels,
420421
build-clang-tidy-wheels,
421422
build-clang-format-sdist,
422423
build-clang-tidy-sdist,
@@ -449,7 +450,7 @@ jobs:
449450
# Copy clang-tidy artifacts
450451
find clang-tidy-dist -name "*.whl" -exec cp {} release-assets/ \;
451452
find clang-tidy-dist -name "*.tar.gz" -exec cp {} release-assets/ \;
452-
453+
453454
echo "Release assets:"
454455
ls -la release-assets/
455456
@@ -462,22 +463,22 @@ jobs:
462463
name: "v${{ github.event.inputs.llvm_version }}"
463464
body: |
464465
# Clang Tools Python wheels
465-
466+
466467
This release contains both `clang-format` and `clang-tidy` wheel packages.
467-
468+
468469
## Included packages:
469470
- **clang-format**: Code formatting tool
470471
- **clang-tidy**: Static analysis and linting tool
471-
472+
472473
## Installation:
473474
```bash
474475
# Install clang-format
475476
pip install clang-format-${{ github.event.inputs.llvm_version }}-<platform>.whl
476-
477-
# Install clang-tidy
477+
478+
# Install clang-tidy
478479
pip install clang-tidy-${{ github.event.inputs.llvm_version }}-<platform>.whl
479480
```
480-
481+
481482
## Assets:
482483
- `.whl` files: Binary wheel packages for different platforms
483484
- `.tar.gz` files: Source distributions

.github/workflows/labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: PR Autolabeler
2+
3+
on:
4+
# pull_request event is required for autolabeler
5+
pull_request:
6+
types: [opened, reopened, synchronize]
7+
8+
jobs:
9+
draft-release:
10+
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main

.github/workflows/stale.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Close stale issues'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
permissions: {}
6+
7+
jobs:
8+
stale:
9+
permissions:
10+
contents: read
11+
issues: write
12+
pull-requests: write
13+
uses: cpp-linter/.github/.github/workflows/stale.yml@main

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: check-added-large-files
9+
- id: check-merge-conflict

0 commit comments

Comments
 (0)