Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This file is used by GitHub Actions to automatically label pull requests based on the files changed.
# See https://github.com/actions/labeler

# Documentation changes
documentation:
- changed-files:
- any-glob-to-any-file:
- '**/*.md'
- 'documentation/**/*'

# CLI-related changes
cli:
- changed-files:
- any-glob-to-any-file:
- 'crates/goose-cli/**/*'

# Rust backend changes
rust:
- changed-files:
- any-glob-to-any-file:
- 'crates/**/*'
- '**/*.rs'

# UI/Desktop application changes
ui:
- changed-files:
- any-glob-to-any-file:
- 'ui/desktop/**/*'
- '**/*.tsx'
- '**/*.ts'
- '**/*.js'
- '**/*.jsx'
Comment on lines +29 to +32
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to call out that the Goose docs are written in typescript, which might not fit under "ui". I'll let others provide their opinions


# Windows-specific changes
windows:
- changed-files:
- any-glob-to-any-file:
- 'ui/desktop/src/platform/windows/**/*'
- '**/*windows*'
- '**/*.bat'
- '**/*.ps1'

# Dependency updates
dependencies:
- changed-files:
- any-glob-to-any-file:
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/package.json'
- '**/package-lock.json'
- '**/yarn.lock'
- '**/pnpm-lock.yaml'


# Demonstration of labeler for initial Pull Request commit
labeler:
- changed-files:
- any-glob-to-any-file: '.github/labeler.yml'
Comment on lines +55 to +58
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose of adding this was so reviewers could better understand how the labeler works, but it looks like it needs approvals from maintainers to run. https://github.com/block/goose/actions/runs/15937664559

Let me know if I should remove this bit.

20 changes: 20 additions & 0 deletions .github/workflows/add-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Add Labels

on:
pull_request:
types: [opened]

jobs:
add_labels_on_opened:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Label PR (opened)
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
sync-labels: false
20 changes: 20 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync Labels

on:
pull_request:
types: [synchronize, reopened]

jobs:
sync_labels_on_updated:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Label PR (updated)
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
sync-labels: true
Loading