Scan Pull Request Activity #21
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
name: Scan Pull Request Activity | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
issues: read | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.OCMBOT_APP_ID }} | |
private_key: ${{ secrets.OCMBOT_PRIV_KEY }} | |
- name: scan pull request activity | |
uses: skarlso/caretaker@v0.5.0 | |
with: | |
command: scan | |
owner: open-component-model | |
repo: ocm-controller | |
isOrganization: true | |
token: ${{ steps.generate_token.outputs.token }} | |
statusOption: 👀 In review | |
pullRequestProcessedLabel: caretaker-checked # a label to mark the pull request as seen |