From 628b83db9bbf98395a639fadf330757a3a410062 Mon Sep 17 00:00:00 2001 From: Piotr Date: Fri, 12 Mar 2021 10:53:45 +0100 Subject: [PATCH] add dependabot --- .github/dependabot.yml | 16 +++++++++++++ .github/release-drafter.yml | 34 +++++++++++++++++++++++++++ .github/workflows/fork-sync.yml | 20 ++++++++++++++++ .github/workflows/release-drafter.yml | 14 +++++++++++ 4 files changed, 84 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/fork-sync.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..96e80bc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "main" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + + - package-ecosystem: "npm" + directory: "/" + target-branch: "main" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..221de52 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,34 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' + +categories: + - title: 'Features' + labels: + - 'feature' + - title: 'Bugs' + labels: + - 'bug' + - 'fix' + - title: 'Maintenance' + labels: + - 'chore' + +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' + +version-resolver: + default: patch + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/fork-sync.yml b/.github/workflows/fork-sync.yml new file mode 100644 index 0000000..5c99228 --- /dev/null +++ b/.github/workflows/fork-sync.yml @@ -0,0 +1,20 @@ +name: Fork Sync + +on: + workflow_dispatch: + schedule: + - cron: '0 4 * * MON' + +jobs: + sync: + + runs-on: ubuntu-latest + + steps: + - uses: tgymnich/fork-sync@v1.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + base: master + head: main + auto_approve: true + personal_token: ${{ secrets.BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..896edaf --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}