Skip to content

Commit

Permalink
Merge branch 'main' into whitesource/configure
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger authored Nov 18, 2024
2 parents 6d30894 + fafe625 commit 97993f2
Show file tree
Hide file tree
Showing 23 changed files with 600 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docker:
- docker

documentation:
- documentation
- docs
11 changes: 11 additions & 0 deletions .github/pullrequest-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
github:
- changed-files:
- any-glob-to-any-file: .github/**/*

documentation:
- changed-files:
- any-glob-to-any-file: docs/**/*

docker:
- changed-files:
- any-glob-to-any-file: docker/**/*
17 changes: 17 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Issue Labeler"
on:
issues:
types: [opened, edited]

permissions:
issues: write
contents: read

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: MaximilianAnzinger/issue-labeler@1.0.1
with:
configuration-path: .github/issue-labeler.yml
repo-token: ${{ github.token }}
12 changes: 12 additions & 0 deletions .github/workflows/pullrequest-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Pull Request Labeler
on: [pull_request_target]

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pullrequest-labeler.yml
sync-labels: true
13 changes: 13 additions & 0 deletions .github/workflows/pullrequest-opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request Opened
on:
pull_request_target:
types: [opened]

jobs:
assign:
runs-on: ubuntu-latest
steps:
- name: Assign Pull Request to its Author
uses: technote-space/assign-author@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/pullrequest-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Stale
on:
schedule:
- cron: "0 12 * * *"

jobs:
stale:
if: github.repository_owner == 'ls1intum'
runs-on: ubuntu-latest
steps:
- name: Check for stale PRs
uses: actions/stale@v9
with:
days-before-stale: 7
days-before-close: 14
# Disable issue checking, only PR
days-before-issue-stale: -1
remove-stale-when-updated: true
stale-pr-label: "stale"
exempt-pr-labels: "no-stale"
labels-to-remove-when-stale: "ready for review, ready to merge"
stale-pr-message: >
There hasn't been any activity on this pull request recently.
Therefore, this pull request has been automatically marked as stale
and will be closed if no further activity occurs within **seven** days.
Thank you for your contributions.
15 changes: 15 additions & 0 deletions .github/workflows/validate-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

name: Validate PR Title

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, edited]

jobs:
validate-pr-title:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: Slashgear/action-check-pr-title@v4.3.0
with:
regexp: '^`(Development|General)`:\s[A-Z].*$'
85 changes: 85 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
######################
# Eclipse
######################
*.pydevproject
.project
.metadata
tmp/
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
.factorypath
/src/main/resources/rebel.xml

# External tool builders
.externalToolBuilders/**

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

######################
# Intellij
######################
.idea/*
!.idea/runConfigurations/
!.idea/icon.svg
*.iml
*.iws
*.ipr
*.ids
*.orig
classes/
.IntelliJIdea*/
.local/share/JetBrains/
.java/
out/

######################
# Visual Studio Code
######################
.vscode/

######################
# Windows
######################
# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini

######################
# Mac OSX
######################
.DS_Store
.svn

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

######################
# Directories
######################
/bin/
/deploy/

######################
# Logs
######################
*.log*
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_build/
.venv/
.idea/
__pycache__/
.env
venv
12 changes: 12 additions & 0 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"
sphinx:
fail_on_warning: true
python:
install:
- requirements: docs/requirements.txt
15 changes: 15 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM sphinxdoc/sphinx

WORKDIR /docs
# create non-root user to be able to edit the generated files without root access later
RUN groupadd -g 1000 sphinx-user \
&& useradd -ms /bin/bash -u 1000 -g 1000 sphinx-user \
&& chown 1000:1000 /docs
ADD requirements.txt /docs
RUN pip3 install -r requirements.txt

USER sphinx-user
EXPOSE 8000
# use the autobuild as default command
ENV SPHINXOPTS="--port 8000 --host 0.0.0.0"
CMD exec make livehtml
24 changes: 24 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
# -W: treat warnings as errors
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Loading

0 comments on commit 97993f2

Please sign in to comment.