You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I wonder how we may run this action for multiple repositories.
Note
I use GitHub App for OAuth, already granted the app permission to pull_request and issue
Justification:
My current setup is as follows:
name: Check stale statuson:
schedule:
- cron: "0 0 * * *"# UTC 00:00 every dayenv:
repositories: "automation-hub"days-before-stale: 14jobs:
checker:
runs-on: ubuntu-lateststeps:
- name: Generate an installation tokenid: generate_tokenuses: actions/create-github-app-token@v1env:
GITHUB_TOKEN: ${{ github.token }}with:
app-id: ${{ secrets.STALE_BOT_APP_ID }}private-key: ${{ secrets.STALE_BOT_APP_PRIVATE_KEY }}owner: ${{ github.repository_owner }}repositories: ${{ env.repositories }}
- uses: actions/stale@mainwith:
repo-token: ${{ steps.generate_token.outputs.token }}stale-issue-message: "This issue is stale because it has been open ${{ env.days-before-stale }} days with no activity. Don't be panic, it will still be open until somebody explictly closes it."stale-pr-message: "This issue is stale because it has been open ${{ env.days-before-stale }} days with no activity. Don't be panic, it will still be open until somebody explictly closes it."stale-issue-label: stalestale-pr-label: staleexempt-pr-labels: "triage/accepted"exempt-issue-labels: "triage/awaiting-approval,triage/in-progress"exempt-all-issue-assignees: truedays-before-stale: ${{ env.days-before-stale }}days-before-close: -1days-before-pr-close: -1start-date: "2024-01-01T00:00:00Z"# ISO 8601 or RFC 2822
The idea is to run this action for N repos based on a cron schedule.
Are you willing to submit a PR?
NA.
The text was updated successfully, but these errors were encountered:
Description:
Hi, I wonder how we may run this action for multiple repositories.
Note
I use
GitHub App
for OAuth, already granted the app permission topull_request
andissue
Justification:
My current setup is as follows:
The idea is to run this action for N repos based on a cron schedule.
Are you willing to submit a PR?
NA.
The text was updated successfully, but these errors were encountered: