Skip to content

Commit

Permalink
[TASK] Add GitHub issues and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Mar 20, 2023
1 parent a07fd7d commit b262f2f
Showing 10 changed files with 273 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* text=auto
/.github export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore 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:personio_jobs 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/typo3-personio-jobs/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/typo3-personio-jobs/blob/main/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct.
required: true
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

# Configuration: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
updates:
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
commit-message:
prefix: '[TASK]'
labels:
- dependencies
open-pull-requests-limit: 10
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:
- "*"
21 changes: 21 additions & 0 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Dependabot auto-merge
on:
pull_request:
types: [opened]

jobs:
dependabot-auto-merge:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Fetch metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: ${{ secrets.MERGE_TOKEN }}
- name: Comment with merge instructions
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
uses: mshick/add-pr-comment@v2
with:
repo-token: ${{ secrets.MERGE_TOKEN }}
message: '@dependabot merge'
59 changes: 59 additions & 0 deletions .github/workflows/cgl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CGL
on:
push:
branches:
- main
- develop
pull_request:
branches:
- '**'

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

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

# Validation
- name: Validate composer.json
run: composer validate --no-check-lock

# Install dependencies
- name: Install Composer dependencies
run: |
composer require --no-progress --no-plugins brotkrueml/schema:"^2.7"
# Check Composer dependencies
- name: Check dependencies
run: composer-require-checker check
- run: composer install --no-progress
- 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
- name: Lint TypoScript
run: composer lint:typoscript -- --fail-on-warnings

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

# Migration
- name: Run Rector migration
run: composer migration:rector -- --dry-run
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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@v3
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:
generate_release_notes: true
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@
"@lint:php:fix",
"@lint:typoscript"
],
"lint:composer": "@lint:composer --dry-run",
"lint:composer": "@lint:composer:fix --dry-run",
"lint:composer:fix": "@composer normalize --no-check-lock",
"lint:editorconfig": "ec --fix",
"lint:editorconfig:fix": "@lint:editorconfig --fix",

0 comments on commit b262f2f

Please # to comment.