ci: label each pull request by area from the files it changes (#272)
This commit was merged in pull request #272.
This commit is contained in:
1 parent
52d7cd6950
commit
0444c37c36
3 files changed
+71
No files matched your search
@@ -0,0 +1,51 @@
|
||||
# Labels a pull request by what it changes. The areas match the ones the
|
||||
# issues and the board use. A label is only ever added, never taken off.
|
||||
area:client:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['apps/sisyphus/**', 'packages/client/**']
|
||||
i18n:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['apps/sisyphus/src/renderer/src/i18n/**']
|
||||
area:protocol:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['proto/**']
|
||||
area:ai:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['packages/ai/**', 'apps/sisyphusd/planner/**', 'apps/sisyphusd/inference/**', 'apps/sisyphusd/assistant*.go']
|
||||
area:agents:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['apps/sisyphusd/mcpserver/**', 'skills/**']
|
||||
area:runtime:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['packages/runtime/**']
|
||||
area:storage:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['packages/storage/**', 'packages/kubo/**', 'packages/ipfscluster/**', 'packages/s3/**', 'packages/names/**', 'apps/sisyphusd/pinning/**', 'apps/sisyphusd/replication/**', 'apps/sisyphusd/blobclient/**']
|
||||
area:p2p:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['apps/sisyphusd/p2p/**', 'apps/sisyphusd/tunnel/**']
|
||||
area:daemon:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['apps/sisyphusd/*.go', 'apps/sisyphusd/coordinator/**', 'apps/sisyphusd/worker/**', 'apps/sisyphusd/api/**', 'apps/sisyphusd/access/**', 'packages/nodedb/**', 'packages/job-model/**', 'packages/jobrecord/**', 'packages/hardware/**']
|
||||
security:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['packages/sealed/**', 'apps/sisyphusd/access/**', 'SECURITY.md', 'docs/security-model.md']
|
||||
research:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['docs/research/**']
|
||||
documentation:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['**/*.md', 'docs/**']
|
||||
infra:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['.github/workflows/**', '.github/dependabot.yml', 'flake.*', 'Makefile', 'scripts/**', 'examples/rehearsal.sh']
|
||||
community:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['CODE_OF_CONDUCT.md', 'CONTRIBUTING.md', 'SUPPORT.md', 'CITATION.cff', '.github/ISSUE_TEMPLATE/**', '.github/pull_request_template.md']
|
||||
testing:
|
||||
- changed-files:
|
||||
- all-globs-to-all-files: ['**/*_test.go', 'apps/sisyphus/e2e/**', 'apps/sisyphus/dev/*.test.mjs']
|
||||
enhancement:
|
||||
- head-branch: ['^feat/']
|
||||
bug:
|
||||
- head-branch: ['^fix/']
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Labels
|
||||
|
||||
# Labels each pull request by the files it changes and the kind of branch it
|
||||
# comes from, so that the board and the milestones can be read by area.
|
||||
# pull_request_target runs this workflow as it is on dev, with the right to
|
||||
# label, and never checks out or runs the pull request's own code.
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- uses: actions/labeler@v7
|
||||
@@ -12,6 +12,7 @@ Sisyphus is an early prototype built in the open. Issues, questions and pull req
|
||||
- Branch from `dev` and open the pull request against `dev`. Nothing is pushed to `dev` directly.
|
||||
- A pull request merges by squash once its checks are green, so each commit on `dev` has passed.
|
||||
- Commit and pull request titles use a conventional prefix: `feat:`, `fix:`, `docs:`, `test:`, `chore:`.
|
||||
- A pull request is labelled by area from the files it changes (`.github/labeler.yml`); the maintainers add the milestone.
|
||||
- Keep documentation current in the same pull request: the root README, `apps/sisyphusd/README.md` and the files under `docs/`.
|
||||
|
||||
## What the checks expect
|
||||
|
||||
Reference in new issue
Block a user