Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reactivate project #306

Merged
merged 4 commits into from
Jul 4, 2023
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
36 changes: 22 additions & 14 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,31 @@
*.txt text eol=lf
*.ini text eol=lf
*.sh text eol=lf
*.stub text eol=lf
*.tmp text eol=lf

# binary files
*.zip -text binary

# files/folders to ignore
/.* export-ignore
.editorconfig export-ignore text eol=lf
.gitattributes export-ignore text eol=lf
.gitignore export-ignore text eol=lf
.php-cs-fixer.php export-ignore text eol=lf
codecov.yml export-ignore text eol=lf
infection.json export-ignore text eol=lf
phpcs.xml export-ignore text eol=lf
phpmd.ruleset.xml export-ignore text eol=lf
phpstan.neon export-ignore text eol=lf
phpunit.xml export-ignore text eol=lf
rector.php export-ignore text eol=lf
/tests export-ignore
/.github export-ignore
/.* export-ignore
.github/CODEOWNERS export-ignore text eol=lf
.editorconfig export-ignore text eol=lf
.gitattributes export-ignore text eol=lf
.gitignore export-ignore text eol=lf
.markdown-link-check.json export-ignore text eol=lf
.mega-linter.yml export-ignore text eol=lf
.php-cs-fixer.php export-ignore text eol=lf
.phplint.yml export-ignore text eol=lf
.yamllint.yml export-ignore text eol=lf
codecov.yml export-ignore text eol=lf
infection.json export-ignore text eol=lf
infection.json5 export-ignore text eol=lf
phpcs.xml export-ignore text eol=lf
phpmd.ruleset.xml export-ignore text eol=lf
phpstan.neon export-ignore text eol=lf
phpunit.xml export-ignore text eol=lf
psalm.xml export-ignore text eol=lf
rector.php export-ignore text eol=lf
/tests export-ignore
/.github export-ignore
3 changes: 2 additions & 1 deletion .github/dependabot.yml → .github/dependabot.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ updates:
- "mimmi20"
labels:
- "dependencies"
- "patch"
versioning-strategy: increase
commit-message:
include: "scope"
Expand Down Expand Up @@ -49,6 +50,6 @@ updates:
- "mimmi20"
labels:
- "dependencies"
- "patch"
commit-message:
include: "scope"
prefix: "github-actions"
14 changes: 11 additions & 3 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
name: "stale"
description: "no activity"
- color: b60205
name: "BC Break"
description: ""
name: "bc break"
description: "BC Break"
- color: f4e99c
name: "maintenance"
description: "Maintenance"
Expand All @@ -53,9 +53,17 @@
- color: 0075ca
name: "documentation"
description: "Improvements or additions to documentation"
- color: 84175d
name: "major"
description: "Major change"
- color: d86c28
name: "minor"
description: "Minor change"
- color: 0a9b47
name: "patch"
description: "Patch"

# other Labels to mimmi20/ua-generic-request
#- color: 5319e7
# name: "new useragents"
# description: ""

91 changes: 69 additions & 22 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,84 @@ template: |
## What’s Changed

$CHANGES

## 👨🏼‍💻 Contributors

$CONTRIBUTORS

change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&#@`' # You can add # and @ to disable mentions, and add ` to disable code blocks.
no-changes-template: "- No changes"
name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
version-template: "$MAJOR.$MINOR.$PATCH"

exclude-labels:
- duplicate
- question
- invalid
- wontfix
- "duplicate"
- "question"
- "invalid"
- "wontfix"

version-resolver:
major:
labels:
- "bc break"
- "removed"
- "major"
minor:
labels:
- "deprecated"
- "security"
- "minor"
patch:
labels:
- "bug"
- "dependencies"
- "enhancement"
- "maintenance"
- "documentation"
- "patch"
default: patch

autolabeler:
- label: "documentation"
files:
- "*.md"

categories:
- title: '**💥 Breaking:**'
- title: "**💥 Breaking:**"
labels:
- "bc break"
- title: "**🍰 Enhancements:**"
labels:
- 'BC Break'
- title: '**🍰 Enhancements:**'
- "enhancement"
- title: "**🐞 Bugs:**"
labels:
- 'enhancement'
- title: '**🐞 Bugs:**'
- "bug"
- title: "**💀 Deprecated:**"
labels:
- 'bug'
- title: '**💀 Deprecated:**'
- "deprecated"
- title: "**🗑 Removed:**"
labels:
- 'deprecated'
- title: '**🗑 Removed:**'
- "removed"
- title: "**🛡 Security:**"
labels:
- 'removed'
- title: '**🛡 Security:**'
- "security"
- title: "**🕸 Dependencies:**"
labels:
- 'security'
- title: '**🕸 Dependencies:**'
- "dependencies"
- title: "**🧹 Maintenance:**"
labels:
- 'dependencies'
- title: '**🧹 Maintenance:**'
- "maintenance"
- title: "**📦 Documentation:**"
labels:
- 'maintenance'
- "documentation"
# other Labels to mimmi20/ua-generic-request
#- title: '**📦 new Useragents:**'
#- title: "**📦 new Useragents:**"
# labels:
# - 'new useragents'
# - "new useragents"

commitish: master
target_commitish: master
filter-by-commitish: true
include-pre-releases: true
73 changes: 73 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",

"extends": ["github>whitesource/merge-confidence:beta"],

"enabled": true,
"assignees": [
"mimmi20"
],
"automerge": false,
"commitBody": "Signed-off-by: {{{gitAuthor}}}",
"commitBodyTable": true,
"dependencyDashboard": false,
"enabledManagers": ["composer", "github-actions", "npm"],
"ignoreUnstable": true,
"labels": [
"dependencies",
"patch"
],
"lockFileMaintenance": {
"enabled": false
},
"platformAutomerge": false,
"prBodyColumns": [
"Package",
"Change",
"Type",
"Update"
],
"prBodyDefinitions": {
"Package": "`{{{depName}}}`",
"Type": "{{{depType}}}",
"Update": "{{{updateType}}}",
"Change": "[{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}]({{#if depName}}https://renovatebot.com/diffs/npm/{{replace '/' '%2f' depName}}/{{{currentVersion}}}/{{{newVersion}}}{{/if}})"
},
"prCreation": "immediate",
"rangeStrategy": "bump",
"rebaseWhen": "behind-base-branch",
"reviewers": [
"mimmi20"
],
"rollbackPrs": true,
"schedule": ["at 4:00 am on Monday"],
"semanticCommits": "disabled",
"separateMajorMinor": true,
"separateMinorPatch": false,
"timezone": "Europe/Berlin",
"updateLockFiles": false,
"updateNotScheduled": false,
"packageRules": [
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch-dependencies",
"matchPackagePatterns": [
"*"
],
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"groupName": "PHP",
"matchPackageNames": ["php"],
"allowedVersions": "^8.1",
"ignoreUnstable": false,
"rangeStrategy": "widen"
}
],
"vulnerabilityAlerts": {
"enabled": true
}
}
39 changes: 39 additions & 0 deletions .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: cleanup caches by a branch
on:
pull_request:
types:
- "closed"
workflow_dispatch:

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
lfs: false
persist-credentials: false

- name: "Cleanup"
run: |
gh extension install actions/gh-actions-cache

REPO=${{ github.repository }}
BRANCH=${{ github.ref }}

echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )

## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83 changes: 83 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches:
- "master"
pull_request:
# The branches below must be a subset of the branches above
branches:
- "master"
schedule:
- cron: "28 0 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language:
- 'javascript'
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
lfs: false
persist-credentials: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
Loading