-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced file(s) with conda/infrastructure (#90)
Co-authored-by: Conda Bot <[email protected]>
- Loading branch information
Showing
4 changed files
with
68 additions
and
61 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
labels: ${{ env.FEEDBACK_LBL }} | ||
github_token: ${{ secrets.PROJECT_TOKEN }} | ||
# add [pending::support], if still open | ||
- uses: actions-ecosystem/[email protected].0 | ||
- uses: actions-ecosystem/[email protected].3 | ||
if: github.event.issue.state == 'open' | ||
with: | ||
labels: ${{ env.SUPPORT_LBL }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,6 @@ on: | |
# NOTE: github.event is workflow_dispatch payload: | ||
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch | ||
workflow_dispatch: | ||
# inputs: | ||
# dryrun: | ||
# description: "dryrun: Preview locking issues/prs without marking them (true|false)" | ||
# required: true | ||
# type: boolean | ||
# default: true | ||
|
||
schedule: | ||
- cron: 0 6 * * * | ||
|
@@ -23,35 +17,27 @@ jobs: | |
if: '!github.event.repository.fork' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# - id: read_yaml | ||
# uses: conda/actions/[email protected] | ||
# with: | ||
# path: https://raw.githubusercontent.com/conda/infra/main/.github/messages.yml | ||
- uses: dessant/lock-threads@v2 | ||
- uses: dessant/lock-threads@v4 | ||
with: | ||
# Number of days of inactivity before a closed issue is locked | ||
issue-lock-inactive-days: 365 | ||
issue-inactive-days: 365 | ||
# Do not lock issues created before a given timestamp, value must follow ISO 8601 | ||
issue-exclude-created-before: '' | ||
exclude-issue-created-before: '' | ||
# Do not lock issues with these labels, value must be a comma separated list of labels or '' | ||
issue-exclude-labels: '' | ||
exclude-any-issue-labels: '' | ||
# Labels to add before locking an issue, value must be a comma separated list of labels or '' | ||
issue-lock-labels: 'locked' | ||
# Comment to post before locking an issue | ||
# issue-lock-comment: ${{ fromJSON(steps.read_yaml.outputs.value)['lock-issue'] }} | ||
add-issue-labels: 'locked' | ||
# Reason for locking an issue, value must be one of resolved, off-topic, too heated, spam or '' | ||
issue-lock-reason: 'resolved' | ||
|
||
# Number of days of inactivity before a closed pull request is locked | ||
pr-lock-inactive-days: 365 | ||
pr-inactive-days: 365 | ||
# Do not lock pull requests created before a given timestamp, value must follow ISO 8601 | ||
pr-exclude-created-before: '' | ||
exclude-pr-created-before: '' | ||
# Do not lock pull requests with these labels, value must be a comma separated list of labels or '' | ||
pr-exclude-labels: '' | ||
exclude-any-pr-labels: '' | ||
# Labels to add before locking a pull request, value must be a comma separated list of labels or '' | ||
pr-lock-labels: 'locked' | ||
# Comment to post before locking a pull request | ||
# pr-lock-comment: ${{ fromJSON(steps.read_yaml.outputs.value)['lock-pr'] }} | ||
add-pr-labels: 'locked' | ||
# Reason for locking a pull request, value must be one of resolved, off-topic, too heated, spam or '' | ||
pr-lock-reason: 'resolved' | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,74 +14,85 @@ on: | |
schedule: | ||
- cron: 0 4 * * * | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
stale: | ||
if: '!github.event.repository.fork' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# The issues labeled "support" have a more aggressive stale/close timeline from the rest | ||
only-issue-labels: ['type::support', ''] | ||
include: | ||
- only-issue-labels: '' | ||
days-before-issue-stale: 365 | ||
days-before-issue-close: 30 | ||
# [type::support] issues have a more aggressive stale/close timeline | ||
- only-issue-labels: type::support | ||
days-before-issue-stale: 21 | ||
days-before-issue-close: 7 | ||
steps: | ||
- id: read_yaml | ||
uses: conda/actions/[email protected] | ||
- uses: conda/actions/[email protected] | ||
id: read_yaml | ||
with: | ||
path: https://raw.githubusercontent.com/conda/infra/main/.github/messages.yml | ||
- uses: actions/stale@v4 | ||
|
||
- uses: actions/stale@v7 | ||
id: stale | ||
with: | ||
# Idle number of days before marking issues stale (default: 60) | ||
days-before-issue-stale: ${{ matrix.only-issue-labels && 21 || 365 }} | ||
# Idle number of days before closing stale issues/PRs (default: 7) | ||
days-before-issue-close: ${{ matrix.only-issue-labels && 7 || 30 }} | ||
# Idle number of days before marking PRs stale (default: 60) | ||
# Only issues with these labels are checked whether they are stale | ||
only-issue-labels: ${{ matrix.only-issue-labels }} | ||
|
||
# Idle number of days before marking issues stale | ||
days-before-issue-stale: ${{ matrix.days-before-issue-stale }} | ||
# Idle number of days before closing stale issues/PRs | ||
days-before-issue-close: ${{ matrix.days-before-issue-close }} | ||
# Idle number of days before marking PRs stale | ||
days-before-pr-stale: 365 | ||
# Idle number of days before closing stale PRs (default: 7) | ||
# Idle number of days before closing stale PRs | ||
days-before-pr-close: 30 | ||
|
||
# Comment on the staled issues | ||
stale-issue-message: ${{ fromJSON(steps.read_yaml.outputs.value)['stale-issue'] }} | ||
# Comment on the staled issues while closed | ||
# close-issue-message: ${{ fromJSON(steps.read_yaml.outputs.value)['close-issue'] }} | ||
# Comment on the staled PRs | ||
stale-pr-message: ${{ fromJSON(steps.read_yaml.outputs.value)['stale-pr'] }} | ||
# Comment on the staled PRs while closed | ||
# close-pr-message: ${{ fromJSON(steps.read_yaml.outputs.value)['close-pr'] }} | ||
# Label to apply on staled issues | ||
stale-issue-label: 'stale' | ||
stale-issue-label: stale | ||
# Label to apply on closed issues | ||
close-issue-label: 'stale::closed' | ||
close-issue-label: stale::closed | ||
# Reason to use when closing issues | ||
close-issue-reason: not_planned | ||
|
||
# Comment on the staled PRs | ||
stale-pr-message: ${{ fromJSON(steps.read_yaml.outputs.value)['stale-pr'] }} | ||
# Label to apply on staled PRs | ||
stale-pr-label: 'stale' | ||
stale-pr-label: stale | ||
# Label to apply on closed PRs | ||
close-pr-label: 'stale::closed' | ||
close-pr-label: stale::closed | ||
# Reason to use when closing PRs | ||
close-pr-reason: not_planned | ||
|
||
# Issues with these labels will never be considered stale | ||
exempt-issue-labels: 'stale::recovered,epic' | ||
# Issues with these labels will never be considered stale | ||
exempt-pr-labels: 'stale::recovered,epic' | ||
# Only issues with these labels are checked whether they are stale | ||
only-issue-labels: ${{ matrix.only-issue-labels }} | ||
|
||
# Max number of operations per run | ||
operations-per-run: ${{ secrets.STALE_OPERATIONS_PER_RUN || 100 }} | ||
# Remove stale label from issues/PRs on updates/comments | ||
remove-stale-when-updated: true | ||
|
||
# Add specified labels to issues/PRs when they become unstale | ||
labels-to-add-when-unstale: 'stale::recovered' | ||
labels-to-remove-when-unstale: 'stale,stale::closed' | ||
labels-to-add-when-unstale: stale::recovered | ||
# Remove specified labels to issues/PRs when they become unstale | ||
labels-to-remove-when-unstale: stale,stale::closed | ||
|
||
# Dry-run (default: false) | ||
# Max number of operations per run | ||
operations-per-run: ${{ secrets.STALE_OPERATIONS_PER_RUN || 100 }} | ||
# Dry-run | ||
debug-only: ${{ github.event.inputs.dryrun || false }} | ||
# Order to get issues/PRs (default: false) | ||
# Order to get issues/PRs | ||
ascending: true | ||
# Delete branch after closing a stale PR (default: false) | ||
# Delete branch after closing a stale PR | ||
delete-branch: false | ||
|
||
# Issues with these labels will never be considered stale | ||
exempt-issue-labels: stale::recovered,epic | ||
# Issues with these labels will never be considered stale | ||
exempt-pr-labels: stale::recovered,epic | ||
# Exempt all issues/PRs with milestones from stale | ||
exempt-all-milestones: true | ||
|
||
# Assignees on issues/PRs exempted from stale | ||
exempt-assignees: mingwandroid | ||
|
||
|
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