diff --git a/.github/workflows/add-to-triage.yml b/.github/workflows/add-to-triage.yml index fb3d422..06dd5b6 100644 --- a/.github/workflows/add-to-triage.yml +++ b/.github/workflows/add-to-triage.yml @@ -7,7 +7,7 @@ on: - reopened - transferred - pull_request: + pull_request_target: types: - opened - reopened @@ -16,4 +16,4 @@ jobs: add-to-triage: uses: eslint/workflows/.github/workflows/add-to-triage.yml@main secrets: - PROJECT_BOT_TOKEN: ${{ secrets.PROJECT_BOT_TOKEN }} + project_bot_token: ${{ secrets.PROJECT_BOT_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4574022..d4295bd 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,30 +1,11 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/actions/stale -name: Mark stale issues and pull requests +name: stale on: - schedule: - - cron: '31 22 * * *' + schedule: + - cron: "31 22 * * *" # Runs every day at 10:31 PM UTC jobs: - stale: - - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 60 - days-before-close: 7 - stale-issue-message: 'Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update.' - stale-pr-message: 'Oops! It looks like we lost track of this pull request. What do we want to do here? This pull request will auto-close in 7 days without an update.' - exempt-all-assignees: true - exempt-issue-labels: accepted - exempt-pr-labels: accepted + stale: + uses: eslint/workflows/.github/workflows/stale.yml@main + secrets: + token: ${{ secrets.GITHUB_TOKEN }}