Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Mar 4, 2024
0 parents commit 1dd5059
Show file tree
Hide file tree
Showing 67 changed files with 13,074 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .crowdin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
files:
- source: /Resources/Private/Language/
translation: /%original_path%/%two_letters_code%.%original_file_name%
47 changes: 47 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# TS/JS-Files
[*.{ts,js}]
indent_size = 2

# JSON-Files
[*.json]
indent_style = tab

# YAML-Files
[*.{yaml,yml}]
indent_size = 2

# NEON-Files
[*.neon]
indent_size = 2
indent_style = tab

# TypoScript
[*.{typoscript,tsconfig}]
indent_size = 2

# XLF-Files
[*.xlf]
indent_style = tab

# SQL-Files
[*.sql]
indent_style = tab
indent_size = 2

# .htaccess
[{_.htaccess,.htaccess}]
indent_style = tab
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* text=auto
/.github export-ignore
/Tests export-ignore
/.crowdin.yaml export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.php export-ignore
/CODE_OF_CONDUCT.md export-ignore
/codecov.yml export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/packaging_exclude.php export-ignore
/phpstan.neon export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.functional.xml export-ignore
/phpunit.unit.xml export-ignore
/rector.php export-ignore
/renovate.json export-ignore
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Bug report
description: Create a report to help improve the extension.
title: "[BUG]"
labels:
- bug
body:
- type: input
id: typo3-version
attributes:
label: TYPO3 version
description: What TYPO3 version are you using?
placeholder: 'e.g. 11.5.25'
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP version
description: What PHP version are you using?
placeholder: 'e.g. 8.1.16'
validations:
required: true
- type: input
id: extension-version
attributes:
label: Extension version
description: What version of EXT:mailqueue are you using?
placeholder: 'e.g. 0.1.0'
validations:
required: true
- type: checkboxes
id: composer-mode
attributes:
label: Composer mode
description: Are you running TYPO3 in composer mode?
options:
- label: I'm running TYPO3 in composer mode.
- type: input
id: operating-system
attributes:
label: Operating system
description: What operating system are you using?
placeholder: 'e.g. macOS 13.2'
validations:
required: true
- type: textarea
attributes:
label: Current behavior
description: A clear and concise description of what the bug is.
- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
- type: textarea
attributes:
label: Steps to reproduce
description: If possible, describe steps to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
- type: textarea
attributes:
label: Additional context
description: Add any other context about the problem here.
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: >
By submitting this issue, you agree to follow our
[Code of Conduct](https://github.com/CPS-IT/mailqueue/blob/main/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct.
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Feature request
description: Suggest an idea for this extension.
title: "[FEATURE]"
labels:
- enhancement
body:
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: A clear and concise description of what the problem is.
placeholder: I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: >
A clear and concise description of any alternative solutions or features
you've considered.
- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: >
By submitting this issue, you agree to follow our
[Code of Conduct](https://github.com/CPS-IT/mailqueue/blob/main/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct.
required: true
31 changes: 31 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
changelog:
exclude:
labels:
- duplicate
- 'good first issue'
- 'help wanted'
- invalid
- question
- wontfix
categories:
- title: ⚡ Breaking
labels:
- breaking
- title: 🚀 Improved
labels:
- enhancement
- title: 🚑 Fixed
labels:
- bug
- title: 👷 Changed
labels:
- maintenance
- title: 📖 Documentation
labels:
- documentation
- title: ⚙️ Dependencies
labels:
- dependencies
- title: Other changes
labels:
- "*"
58 changes: 58 additions & 0 deletions .github/workflows/cgl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CGL
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
cgl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Prepare environment
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2, composer-require-checker, composer-unused
coverage: none

# Validation
- name: Validate composer.json
run: composer validate

# Install dependencies
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
composer-options: --no-plugins

# Check Composer dependencies
- name: Check dependencies
run: composer-require-checker check
- name: Re-install Composer dependencies
uses: ramsey/composer-install@v2
- name: Check for unused dependencies
run: composer-unused

# Linting
- name: Lint composer.json
run: composer lint:composer
- name: Lint Editorconfig
run: composer lint:editorconfig
- name: Lint PHP
run: composer lint:php

# SCA
- name: SCA PHP
run: composer sca:php -- --error-format github

# Migration
- name: Run Rector migration
run: composer migration:rector -- --dry-run
76 changes: 76 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Release
on:
push:
tags:
- '*'

jobs:
# Job: Create release
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
outputs:
release-notes-url: ${{ steps.create-release.outputs.url }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Check if tag is valid
- name: Check tag
run: |
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi
# Create release
- name: Create release
id: create-release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.RELEASE_TOKEN }}
generate_release_notes: true

# Job: Publish on TER
ter-publish:
if: startsWith(github.ref, 'refs/tags/')
needs: [release]
runs-on: ubuntu-latest
env:
TYPO3_EXTENSION_KEY: mailqueue
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
TYPO3_EXCLUDE_FROM_PACKAGING: packaging_exclude.php
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Check if tag is valid
- name: Check tag
run: |
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi
# Prepare version
- id: get-version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- id: get-comment
run: echo "comment=See release notes at ${{ needs.release.outputs.release-notes-url }}" >> $GITHUB_OUTPUT

# Prepare environment
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: intl, mbstring, json, zip, curl
tools: composer:v2, typo3/tailor

- name: Reset files
run: git reset --hard HEAD && git clean -dfx

# Release
- name: Publish to TER
run: |
php ~/.composer/vendor/bin/tailor set-version "${{ steps.get-version.outputs.version }}"
php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ steps.get-comment.outputs.comment }}" "${{ steps.get-version.outputs.version }}"
Loading

0 comments on commit 1dd5059

Please sign in to comment.