.github/workflows/governance-bot.yaml #406
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/governance.yml | |
on: | |
pull_request_target: | |
types: [ synchronize, opened, labeled, unlabeled ] | |
issues: | |
types: [ opened, labeled, unlabeled ] | |
issue_comment: | |
types: [ created ] | |
# Scheduled events cron // Scheduled automations are: autoStale & autoClose | |
# Set to check every hour for now, could be every day at 1 : '0 1 * * *' | |
schedule: | |
- cron: '0 23 * * *' | |
# You can use permissions to modify the default permissions granted to the GITHUB_TOKEN, | |
# adding or removing access as required, so that you only allow the minimum required access. | |
permissions: | |
contents: read | |
issues: write | |
pull-requests: write | |
statuses: write | |
checks: write | |
jobs: | |
governance: | |
name: Governance | |
runs-on: ubuntu-latest | |
steps: | |
# Semantic versioning, lock to different version: v2, v2.0 or a commit hash. | |
- uses: rr404/oss-governance-bot@main | |
with: | |
# You can use a PAT to post a comment/label/status so that it shows up as a user instead of github-actions | |
github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}' | |
config-path: .github/governance.yaml # optional, default to '.github/governance.yml' |