diff --git a/documentation/docs/09-examples/01-with-comment-except-assigned.mdx b/documentation/docs/09-examples/01-with-comment-except-assigned.mdx index 1bd28fc7c..fb01e228e 100644 --- a/documentation/docs/09-examples/01-with-comment-except-assigned.mdx +++ b/documentation/docs/09-examples/01-with-comment-except-assigned.mdx @@ -12,13 +12,13 @@ tags: ## Stale all issues with comments except if somebody is assigned {#stale-all-issues-with-comments-except-if-somebody-is-assigned} -### Description +### Description {#description} The label `ìnactive` will be added on all issues without any activity during the last 45 days, except if someone is assigned to it or if this is either a frozen bug, a bug that need help or a confirmed bug. A comment will also be added to warn the people about this. If there is still no activity after two weeks, the issue will be closed and the `closed-due-to-inactivity` label will be added. -### Example +### Example {#example} ```yml # ... diff --git a/documentation/docs/09-examples/02-multiple-cron.mdx b/documentation/docs/09-examples/02-multiple-cron.mdx new file mode 100644 index 000000000..38b702b7a --- /dev/null +++ b/documentation/docs/09-examples/02-multiple-cron.mdx @@ -0,0 +1,50 @@ +--- +id: multiple-cron-example +title: Multiple cron jobs +description: | + Example to process only the issues that belongs to specific projects. + They will not be process at the same rate due to the different workflows. +tags: + - Issues + - Projects + - Examples + - Cron +--- + +## Stale sooner based on the project {#stale-sooner-based-on-the-project} + +### Description {#description} + +The issues belonging to the project X will be stale after only 20 days. +The issues belonging to the project Y will be stale after 50 days. +All the other issues will be ignored from the processing. + +### Example {#example} + +```yml title=".github/workflows/stale-project-x.yml" +name: Stale project X +on: + schedule: + - cron: '0 12 * * *' +jobs: + name: Stale + id: stale + uses: sonia-corporation/stale@latest + with: + issue-only-any-project-cards: project-x + issue-days-before-stale: 20 +``` + +```yml title=".github/workflows/stale-project-y.yml" +name: Stale project Y +on: + schedule: + - cron: '0 12 * * *' +jobs: + name: Stale + id: stale + uses: sonia-corporation/stale@latest + with: + issue-only-any-project-cards: project-y + issue-days-before-stale: 50 +```