Skip to content

Commit ac945c5

Browse files
authored
Add GitHub Actions workflows for automated PR labeling, contributor recognition, and validation
Add GitHub Actions workflows for automated PR labeling, contributor recognition, and validation
2 parents 1f023f8 + 28518f0 commit ac945c5

36 files changed

Lines changed: 5723 additions & 0 deletions

.dockerignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Docker ignore file for Gravity-Lang
2+
3+
# Git
4+
.git
5+
.gitignore
6+
.gitattributes
7+
8+
# Build artifacts
9+
build/
10+
*.o
11+
*.obj
12+
*.so
13+
*.dylib
14+
*.dll
15+
*.exe
16+
17+
# CMake
18+
CMakeCache.txt
19+
CMakeFiles/
20+
cmake_install.cmake
21+
Makefile
22+
23+
# IDE
24+
.vscode/
25+
.idea/
26+
*.swp
27+
*.swo
28+
*~
29+
.DS_Store
30+
31+
# Documentation build
32+
_site/
33+
.jekyll-cache/
34+
.sass-cache/
35+
Gemfile.lock
36+
37+
# Output artifacts
38+
artifacts/*.csv
39+
artifacts/*.svg
40+
artifacts/*.json
41+
*.csv
42+
*.svg
43+
44+
# GitHub
45+
.github/
46+
47+
# Docs (include in image as examples)
48+
# docs/
49+
50+
# Keep examples lightweight
51+
# examples/
52+
53+
# Package manager
54+
node_modules/
55+
vendor/
56+
57+
# Python
58+
__pycache__/
59+
*.pyc
60+
*.pyo
61+
*.pyd
62+
.Python
63+
venv/
64+
env/
65+
66+
# Temporary files
67+
*.tmp
68+
*.log
69+
*.bak
70+
.cache/
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug or unexpected behavior
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Bug Description
10+
11+
A clear and concise description of what the bug is.
12+
13+
## To Reproduce
14+
15+
Steps to reproduce the behavior:
16+
17+
1. Create a `.gravity` file with the following content:
18+
```gravity
19+
# Paste your script here
20+
```
21+
22+
2. Run the command:
23+
```bash
24+
./build/gravity run script.gravity
25+
```
26+
27+
3. Observe the error/unexpected behavior
28+
29+
## Expected Behavior
30+
31+
A clear description of what you expected to happen.
32+
33+
## Actual Behavior
34+
35+
What actually happened. Include error messages, warnings, or incorrect output.
36+
37+
```
38+
# Paste error messages or output here
39+
```
40+
41+
## Environment
42+
43+
- **OS**: [e.g., Ubuntu 22.04, macOS 14, Windows 11]
44+
- **Compiler**: [e.g., GCC 11.4, Clang 15, MSVC 2022]
45+
- **CMake Version**: [e.g., 3.22]
46+
- **Gravity-Lang Version/Commit**: [e.g., v0.1.0 or commit hash]
47+
48+
## Additional Context
49+
50+
Add any other context about the problem here, such as:
51+
- Does this work with a different integrator?
52+
- Does this happen with simpler scripts?
53+
- Any relevant physics background or expected behavior
54+
55+
## Possible Solution
56+
57+
If you have ideas about what might be causing the issue or how to fix it, please share them here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: GitHub Discussions
4+
url: https://github.com/dill-lk/Gravity-Lang/discussions
5+
about: Ask questions and discuss ideas with the community
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a new feature or enhancement
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## Feature Description
10+
11+
A clear and concise description of the feature you'd like to see.
12+
13+
## Motivation
14+
15+
Why would this feature be useful? What problem does it solve?
16+
17+
## Proposed Solution
18+
19+
Describe how you envision this feature working. Include:
20+
21+
### DSL Syntax (if applicable)
22+
23+
```gravity
24+
# Example of how the feature might be used in a .gravity script
25+
sphere Body1 at [0,0,0][m] mass 1e24[kg] radius 6371[km]
26+
# Your proposed syntax here
27+
```
28+
29+
### CLI Usage (if applicable)
30+
31+
```bash
32+
# Example command-line usage
33+
./build/gravity run script.gravity --new-flag
34+
```
35+
36+
## Alternatives Considered
37+
38+
Have you considered any alternative solutions or workarounds? If so, what are they and why is your proposed solution better?
39+
40+
## Additional Context
41+
42+
Add any other context, mockups, references to papers, or examples from other tools that support this feature.
43+
44+
## Implementation Notes
45+
46+
If you have technical insights about how this could be implemented, please share them here. This is optional but helpful.
47+
48+
## Backward Compatibility
49+
50+
Would this feature require breaking changes to existing scripts or APIs? If so, how could we minimize the impact?

.github/ISSUE_TEMPLATE/question.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Question
3+
about: Ask a question about using Gravity-Lang
4+
title: '[QUESTION] '
5+
labels: question
6+
assignees: ''
7+
---
8+
9+
## Question
10+
11+
What would you like to know about Gravity-Lang?
12+
13+
## Context
14+
15+
Please provide context about what you're trying to accomplish:
16+
17+
- What are you trying to simulate?
18+
- What have you tried so far?
19+
- Where are you stuck?
20+
21+
## Code/Script (if applicable)
22+
23+
If relevant, include your `.gravity` script or the command you're running:
24+
25+
```gravity
26+
# Your script here
27+
```
28+
29+
```bash
30+
# Command you're running
31+
./build/gravity run script.gravity
32+
```
33+
34+
## Documentation
35+
36+
Have you checked the following resources?
37+
- [ ] README.md
38+
- [ ] CONTRIBUTING.md
39+
- [ ] Example scripts in `examples/`
40+
- [ ] Existing issues
41+
42+
## Additional Information
43+
44+
Any other details that might help us answer your question.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
## Description
2+
3+
<!-- Provide a clear and concise description of what this PR does -->
4+
5+
## Type of Change
6+
7+
<!-- Mark the relevant option with an 'x' -->
8+
9+
- [ ] Bug fix (non-breaking change that fixes an issue)
10+
- [ ] New feature (non-breaking change that adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Documentation update
13+
- [ ] Performance improvement
14+
- [ ] Code refactoring
15+
- [ ] Test addition/improvement
16+
- [ ] Build/CI improvement
17+
18+
## Related Issues
19+
20+
<!-- Link to related issues: Fixes #123, Closes #456, Related to #789 -->
21+
22+
## Changes Made
23+
24+
<!-- List the specific changes you made -->
25+
26+
-
27+
-
28+
-
29+
30+
## Testing
31+
32+
<!-- Describe the tests you ran and how to reproduce them -->
33+
34+
### Test Environment
35+
36+
- **OS**:
37+
- **Compiler**:
38+
- **CMake Version**:
39+
40+
### Test Commands
41+
42+
```bash
43+
# Build
44+
cmake -S . -B build
45+
cmake --build build -j
46+
47+
# Run tests
48+
cd build
49+
ctest --output-on-failure
50+
51+
# Manual testing (if applicable)
52+
./build/gravity run examples/your_test.gravity
53+
```
54+
55+
### Test Results
56+
57+
<!-- Paste relevant test output or screenshots -->
58+
59+
```
60+
# Test output here
61+
```
62+
63+
## Checklist
64+
65+
<!-- Mark completed items with an 'x' -->
66+
67+
- [ ] My code follows the project's coding standards
68+
- [ ] I have performed a self-review of my code
69+
- [ ] I have commented my code, particularly in hard-to-understand areas
70+
- [ ] I have updated the documentation accordingly
71+
- [ ] My changes generate no new warnings
72+
- [ ] I have added tests that prove my fix is effective or that my feature works
73+
- [ ] New and existing unit tests pass locally with my changes
74+
- [ ] Any dependent changes have been merged and published
75+
76+
## DSL Changes (if applicable)
77+
78+
<!-- If you've changed the .gravity DSL syntax, provide examples -->
79+
80+
### Before
81+
82+
```gravity
83+
# Old syntax
84+
```
85+
86+
### After
87+
88+
```gravity
89+
# New syntax
90+
```
91+
92+
## Breaking Changes
93+
94+
<!-- If this PR introduces breaking changes, describe them and provide migration instructions -->
95+
96+
## Additional Notes
97+
98+
<!-- Any additional information that reviewers should know -->
99+
100+
## Screenshots (if applicable)
101+
102+
<!-- Add screenshots, plots, or animations showing the changes in action -->

.github/labeler.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Configuration for path-based labeling
2+
# See: https://github.com/actions/labeler
3+
4+
# Documentation changes
5+
documentation:
6+
- changed-files:
7+
- any-glob-to-any-file: ['docs/**/*', '*.md', 'README.md', 'CONTRIBUTING.md']
8+
9+
# C++ source code
10+
cpp:
11+
- changed-files:
12+
- any-glob-to-any-file: ['cpp/**/*.cpp', 'cpp/**/*.h', 'cpp/**/*.hpp']
13+
14+
# Examples
15+
examples:
16+
- changed-files:
17+
- any-glob-to-any-file: ['examples/**/*.gravity']
18+
19+
# Build system
20+
build:
21+
- changed-files:
22+
- any-glob-to-any-file: ['CMakeLists.txt', 'cmake/**/*']
23+
24+
# CI/CD
25+
ci/cd:
26+
- changed-files:
27+
- any-glob-to-any-file: ['.github/workflows/**/*', '.github/actions/**/*']
28+
29+
# Docker
30+
docker:
31+
- changed-files:
32+
- any-glob-to-any-file: ['Dockerfile', 'docker-compose.yml', '.dockerignore']
33+
34+
# Tests
35+
tests:
36+
- changed-files:
37+
- any-glob-to-any-file: ['tests/**/*', 'test/**/*']
38+
39+
# Tools and scripts
40+
tools:
41+
- changed-files:
42+
- any-glob-to-any-file: ['tools/**/*', 'scripts/**/*']
43+
44+
# Dependencies
45+
dependencies:
46+
- changed-files:
47+
- any-glob-to-any-file: ['**/package.json', '**/requirements.txt', '**/Gemfile', 'Formula/**/*']
48+
49+
# GitHub templates
50+
github-templates:
51+
- changed-files:
52+
- any-glob-to-any-file: ['.github/ISSUE_TEMPLATE/**/*', '.github/PULL_REQUEST_TEMPLATE.md']
53+
54+
# Configuration files
55+
configuration:
56+
- changed-files:
57+
- any-glob-to-any-file: ['_config.yml', '.gitignore', '.dockerignore', '*.yml', '*.yaml']

0 commit comments

Comments
 (0)