Skip to content

Commit

Permalink
[FIX] Move stale job definition to template project
Browse files Browse the repository at this point in the history
[Github fails if the job definition is a symlink][1], whereas copier
copies it fine to the destination, so invert the symlink.

[1]: https://github.com/OCA/oca-addons-repo-template/actions/runs/1193365840
  • Loading branch information
Jairo Llopis authored and yajo committed Sep 27, 2021
1 parent 5bffa99 commit a39a21f
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 75 deletions.
1 change: 0 additions & 1 deletion .github/workflows/stale.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 12 * * 0"

jobs:
stale:
runs-on: ubuntu-latest
steps:
# 120+30 day stale policy for PRs
# * Except PRs marked as "no stale"
- name: Stale PRs policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-pr-labels: "no stale"
days-before-stale: 120
days-before-close: 30
days-before-issue-stale: -1
days-before-issue-close: -1
remove-stale-when-updated: true
stale-pr-label: "stale"
stale-pr-message: >
There hasn't been any activity on this pull request in the past 4 months, so
it has been marked as stale and it will be closed automatically if no
further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply
the "no stale" label.
# 180+30 day stale policy for open issues
# * Except Issues marked as "no stale"
- name: Stale Issues policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: "no stale,needs more information"
days-before-stale: 180
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
There hasn't been any activity on this issue in the past 6 months, so it has
been marked as stale and it will be closed automatically if no further
activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to
apply the "no stale" label.
# 15+30 day stale policy for issues pending more information
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-labels: "needs more information"
exempt-issue-labels: "no stale"
days-before-stale: 15
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
This issue needs more information and there hasn't been any activity
recently, so it has been marked as stale and it will be closed automatically
if no further activity occurs in the next 30 days.
If you think this is a mistake, please ask a PSC member to remove the "needs
more information" label.
74 changes: 0 additions & 74 deletions src/.github/workflows/stale.yml

This file was deleted.

1 change: 1 addition & 0 deletions src/.github/workflows/stale.yml

0 comments on commit a39a21f

Please sign in to comment.