Merge pull request #583 from nextcloud/dependabot/config
This commit is contained in:
commit
fca8fe74fe
24
.github/dependabot.yml
vendored
Normal file
24
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: composer
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Paris
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
labels:
|
||||||
|
- 3. to review
|
||||||
|
- dependencies
|
||||||
|
- package-ecosystem: npm
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Paris
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
labels:
|
||||||
|
- 3. to review
|
||||||
|
- dependencies
|
19
.github/workflows/dependabot-approve-merge.yml
vendored
Normal file
19
.github/workflows/dependabot-approve-merge.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Dependabot
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Default github action approve
|
||||||
|
- uses: hmarr/auto-approve-action@v2.0.0
|
||||||
|
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Nextcloud bot approve and merge request
|
||||||
|
- uses: ahmadnassri/action-dependabot-auto-merge@v1
|
||||||
|
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
||||||
|
with:
|
||||||
|
target: patch
|
||||||
|
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
|
11
.github/workflows/dependabot-approve.yml
vendored
11
.github/workflows/dependabot-approve.yml
vendored
|
@ -1,11 +0,0 @@
|
||||||
name: Dependabot auto approve
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: hmarr/auto-approve-action@v2.0.0
|
|
||||||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
|
||||||
with:
|
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
@ -1,19 +1,20 @@
|
||||||
{
|
{
|
||||||
"name": "nextcloud/forms",
|
"name": "nextcloud/forms",
|
||||||
"type": "project",
|
"config": {
|
||||||
"license": "AGPLv3",
|
"optimize-autoloader": true,
|
||||||
|
"classmap-authoritative": true,
|
||||||
|
"platform": {
|
||||||
|
"php": "7.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"cs:fix": "php-cs-fixer fix",
|
||||||
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||||
|
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l"
|
||||||
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"christophwurst/nextcloud": "^19.0",
|
"christophwurst/nextcloud": "^19.0",
|
||||||
"phpunit/phpunit": "^8",
|
"nextcloud/coding-standard": "^0.3.0",
|
||||||
"nextcloud/coding-standard": "^0.3.0"
|
"phpunit/phpunit": "^7"
|
||||||
},
|
}
|
||||||
"config": {
|
|
||||||
"optimize-autoloader": true,
|
|
||||||
"classmap-authoritative": true
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
|
|
||||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
|
||||||
"cs:fix": "php-cs-fixer fix"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue