Skip to content

Commit

Permalink
chore: update automation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Mar 26, 2022
1 parent b09fe46 commit cfcdb40
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/governance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# https://github.com/DeFiCh/oss-governance-bot
version: v1

issue:
labels:
- prefix: area
list: [ "ui-ux", "semantics", "translation", "security" ]
multiple: true
needs:
comment: |
@$AUTHOR: There are no area labels on this issue. Adding an appropriate label will greatly expedite the process for us. You can add as many area as you see fit. **If you are unsure what to do you can ignore this!**
* `/area ui-ux`
* `/area semantics`
* `/area translation`
* `/area security`
chat_ops:
- cmd: /assign
type: assign
author_association:
collaborator: true
member: true
owner: true
18 changes: 18 additions & 0 deletions .github/workflows/changelog-reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
name: Merge changelog updates
on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: "${{ github.actor == 'github-actions[bot]' && github.event.pull_request.title == 'docs: updated CHANGELOG.md' }}"
steps:
- name: Merge PR
run: gh pr merge --admin --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28 changes: 28 additions & 0 deletions .github/workflows/dependabot-reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
name: Approve and enable auto-merge for dependabot
on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
13 changes: 13 additions & 0 deletions .github/workflows/governance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://github.com/DeFiCh/oss-governance-bot
on:
issues:
types: [ opened, labeled, unlabeled ]
issue_comment:
types: [ created ]

jobs:
governance:
name: Governance
runs-on: ubuntu-latest
steps:
- uses: DeFiCh/oss-governance-bot@v2

0 comments on commit cfcdb40

Please sign in to comment.