Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feature', 'feature']

# Add 'bug' label to any PR where the head branch name starts with `bug` or has a `bug` section in the name
bug:
- head-branch: ['^bug', 'bug']

# Add 'docs' label to any PR where the head branch name starts with `docs` or has a `docs` section in the name
docs:
- head-branch: ['^docs', 'docs']
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5.0.0
1 change: 1 addition & 0 deletions .struct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ folders:
- github/prompts/struct
- github/workflows/pre-commit
- github/workflows/release-drafter
- github/workflows/labeler
- configs/prettier
- configs/editor-config
18 changes: 18 additions & 0 deletions struct_module/contribs/github/chatmodes/plan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
files:
- ./github/chatmodes/plan.chatmode.md:
content: |
---
description: Generate an implementation plan for new features or refactoring existing code.
tools: ['codebase', 'fetch', 'findTestFiles', 'githubRepo', 'search', 'usages']
model: Claude Sonnet 4
---
# Planning mode instructions
You are in planning mode. Your task is to generate an implementation plan for a new feature or for refactoring existing code.
Don't make any code edits, just generate a plan.

The plan consists of a Markdown document that describes the implementation plan, including the following sections:

* Overview: A brief description of the feature or refactoring task.
* Requirements: A list of requirements for the feature or refactoring task.
* Implementation Steps: A detailed list of steps to implement the feature or refactoring task.
* Testing: A list of tests that need to be implemented to verify the feature or refactoring task.
96 changes: 52 additions & 44 deletions struct_module/contribs/github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,58 +1,66 @@
files:
- .github/labeler.yml:
content: |
# Add 'root' label to any root file changes
# Quotation marks are required for the leading asterisk
root:
- changed-files:
- any-glob-to-any-file: '*'

# Add 'AnyChange' label to any changes within the entire repository
AnyChange:
- changed-files:
- any-glob-to-any-file: '**'
content: |
# Add 'root' label to any root file changes
# Quotation marks are required for the leading asterisk
root:
- changed-files:
- any-glob-to-any-file: '*'

# Add 'Documentation' label to any changes within 'docs' folder or any subfolders
Documentation:
- changed-files:
- any-glob-to-any-file: docs/**
# Add 'AnyChange' label to any changes within the entire repository
AnyChange:
- changed-files:
- any-glob-to-any-file: '**'

# Add 'Documentation' label to any file changes within 'docs' folder
Documentation:
- changed-files:
- any-glob-to-any-file: docs/*
# Add 'Documentation' label to any changes within 'docs' folder or any subfolders
Documentation:
- changed-files:
- any-glob-to-any-file: docs/**

# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
Documentation:
- changed-files:
- any-glob-to-any-file:
- docs/*
- guides/*
# Add 'Documentation' label to any file changes within 'docs' folder
Documentation:
- changed-files:
- any-glob-to-any-file: docs/*

## Equivalent of the above mentioned configuration using another syntax
Documentation:
- changed-files:
- any-glob-to-any-file: ['docs/*', 'guides/*']
# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
Documentation:
- changed-files:
- any-glob-to-any-file:
- docs/*
- guides/*

# Add 'Documentation' label to any change to .md files within the entire repository
Documentation:
- changed-files:
- any-glob-to-any-file: '**/*.md'
## Equivalent of the above mentioned configuration using another syntax
Documentation:
- changed-files:
- any-glob-to-any-file: ['docs/*', 'guides/*']

# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- all:
# Add 'Documentation' label to any change to .md files within the entire repository
Documentation:
- changed-files:
- any-glob-to-any-file: 'src/**/*'
- all-globs-to-all-files: '!src/docs/*'
- any-glob-to-any-file: '**/*.md'

# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- all:
- changed-files:
- any-glob-to-any-file: 'src/**/*'
- all-globs-to-all-files: '!src/docs/*'

# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feature', 'feature']

# Add 'release' label to any PR that is opened against the `{{@ current_repo() | default_branch @}}` branch
release:
- base-branch: '{{@ current_repo() | default_branch @}}'

# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feature', 'feature']
# Add 'bug' label to any PR where the head branch name starts with `bug` or has a `bug` section in the name
bug:
- head-branch: ['^bug', 'bug']

# Add 'release' label to any PR that is opened against the `{{@ current_repo() | default_branch @}}` branch
release:
- base-branch: '{{@ current_repo() | default_branch @}}'
# Add 'docs' label to any PR where the head branch name starts with `docs` or has a `docs` section in the name
docs:
- head-branch: ['^docs', 'docs']
- .github/workflows/labeler.yaml:
content: |
name: "labeler"
Expand Down
24 changes: 24 additions & 0 deletions struct_module/contribs/project/custom-structures.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
files:
- README.md:
content: |
# Custom Struct Structures
- custom-mappings.yaml:
content: |
# Custom Struct Mappings
# This file defines custom mappings for the Struct.
mappings:
aws_account_ids:
nonprod: "123456789012"
prod: "987654321098"

- structures/.gitkeep:
content: ""
folders:
- ./:
struct:
- configs/devcontainer
- configs/editor-config
- configs/prettier
- github/workflows/run-struct
- github/workflows/release-drafter
- github/workflows/pre-commit
Loading