Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Stale

Check warning on line 1 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

1:1 [document-start] missing document start "---"

# **What it does**: Close issues and pull requests after no updates for 365 days.
# **Why we have it**: We want to manage our queue of issues and pull requests.
# **Who does it impact**: Everyone that works on docs or docs-internal.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot - please revert the deletion of this comment and instead update it to match the new behavior of the workflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored the workflow comment block and updated it to reflect the new behavior. The comment now accurately describes that issues and PRs are closed after 365 days (docs) or 14 days for PRs (docs-internal). Fixed in commit 44469be.

on:

Check failure on line 3 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

3:81 [line-length] line too long (123 > 80 characters)
schedule:
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:

Check warning on line 7 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

7:1 [truthy] truthy value should be one of [false, true]
contents: read
issues: write

Check warning on line 9 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

9:27 [comments] too few spaces before comment: expected 2
pull-requests: write

jobs:
Expand All @@ -18,14 +14,35 @@
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
- name: Mark stale issues and PRs (docs-internal)
if: github.repository == 'github/docs-internal'

Check failure on line 18 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

18:81 [line-length] line too long (89 > 80 characters)
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
stale-pr-message: 'This PR has been automatically marked as stale due to 14 days of inactivity. Please update soon to avoid closure.'

Check warning on line 23 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

23:70 [comments] too few spaces before comment: expected 2
close-pr-message: 'Closing this PR due to prolonged inactivity. If you wish to continue, please reopen.'
days-before-stale: 365
days-before-close: 0

Check failure on line 26 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

26:81 [line-length] line too long (100 > 80 characters)
days-before-stale-pr: 14

Check failure on line 27 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

27:81 [line-length] line too long (187 > 80 characters)
stale-issue-label: 'stale'

Check failure on line 28 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

28:57 syntax error: expected <block end>, but found '<scalar>' (syntax)
stale-pr-label: 'stale'
exempt-pr-labels: 'never-stale,waiting for review'
exempt-issue-labels: 'never-stale,help wanted,waiting for review'
operations-per-run: 1000
close-issue-reason: not_planned

- name: Mark stale issues and PRs (docs)
if: github.repository == 'github/docs'
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
stale-pr-message: 'This PR is stale because there have been no updates in 365 days.'

Check warning on line 41 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

41:70 [comments] too few spaces before comment: expected 2
close-pr-message: 'This PR is being closed due to inactivity.'
days-before-stale: 365
days-before-close: 0

Check failure on line 44 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

44:81 [line-length] line too long (100 > 80 characters)
stale-issue-label: 'stale'

Check failure on line 45 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

45:81 [line-length] line too long (94 > 80 characters)
stale-pr-label: 'stale'
exempt-pr-labels: 'never-stale,waiting for review'
exempt-issue-labels: 'never-stale,help wanted,waiting for review'
Expand All @@ -38,5 +55,5 @@
- uses: ./.github/actions/slack-alert
if: ${{ failure() }}
with:
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}

Check warning on line 58 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / copilot

58:73 [comments] too few spaces before comment: expected 2
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
Loading