Skip to content

Commit 439262f

Browse files
Sync organization files
1 parent 1b2257a commit 439262f

3 files changed

Lines changed: 33 additions & 21 deletions

File tree

‎.github/workflows/auto-tag-new-version.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ on:
88
paths:
99
- "setup.php"
1010

11+
# Tags are pushed with AUTOTAG_TOKEN
12+
permissions:
13+
contents: "read"
14+
1115
jobs:
1216
auto-tag-new-version:
1317
name: "Automatically tag new version"
1418
uses: "glpi-project/plugin-release-workflows/.github/workflows/auto-tag-new-version.yml@v1"
19+
with:
20+
bot-client-id: "${{ vars.GLPI_PROJECT_BOT_CLIENT_ID }}"
1521
secrets:
16-
github-token: "${{ secrets.AUTOTAG_TOKEN }}"
22+
bot-private-key: "${{ secrets.GLPI_PROJECT_BOT_PRIVATE_KEY }}"
Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
1-
name: 'Close stale issues'
1+
name: "Close stale issues and pull requests"
2+
23
on:
34
schedule:
4-
- cron: '0 8 * * *'
5+
- cron: "0 8 * * *"
56

67
jobs:
78
stale:
89
if: github.repository == 'pluginsGLPI/fields'
910
permissions:
10-
issues: write # for actions/stale to close stale issues
11-
runs-on: ubuntu-latest
11+
issues: "write" # for actions/stale to close stale issues
12+
pull-requests: "write" # for actions/stale to close stale pull requests
13+
runs-on: "ubuntu-latest"
1214
steps:
13-
- uses: actions/stale@v11
15+
- uses: "actions/stale@v11"
1416
with:
1517
stale-issue-message: >-
16-
There has been no activity on this issue for some time and therefore it is considered stale
17-
and will be closed automatically in 10 days.
18-
19-
20-
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist,
18+
There has been no activity on this issue for 60 days and therefore it is considered stale
19+
and will be closed automatically in 14 days.
20+
21+
22+
If this issue is related to a bug, please try to reproduce on latest release. If the problem persists,
2123
feel free to add a comment to revive this issue.
22-
23-
If it is related to a new feature, please open a topic to discuss with community about this enhancement
24-
on [suggestion website](https://glpi.userecho.com/).
25-
26-
27-
You may also consider taking a [subscription](https://glpi-project.org/subscriptions/) to get professionnal
28-
support or [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly.
29-
days-before-issue-stale: 15
30-
days-before-pr-stale: -1 # PR will be marked as stale manually.
31-
days-before-close: 5
24+
stale-pr-message: >-
25+
There has been no activity on this pull request for 90 days and therefore it is considered stale
26+
and will be closed automatically in 14 days.
27+
Feel free to add a comment or push new commits to keep it open.
28+
days-before-issue-stale: 60
29+
days-before-pr-stale: 90
30+
days-before-close: 14
3231
exempt-issue-labels: "bug,enhancement,question,security" # Issues with "bug", "enhancement", "question" or "security" labels will not be marked as stale
32+
exempt-pr-labels: "security" # PR with "security" label will not be marked as stale
33+
exempt-draft-pr: true # Draft PR are work in progress.
3334
exempt-all-milestones: true # Do not check issues/PR with defined milestone.
3435
ascending: true # First check older issues/PR.
3536
operations-per-run: 750 # Max API calls per run.

‎.github/workflows/continuous-integration.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ concurrency:
1515
group: "${{ github.workflow }}-${{ github.ref }}"
1616
cancel-in-progress: true
1717

18+
# The changelog and plugin manifest checks read the pull request files
19+
permissions:
20+
contents: "read"
21+
pull-requests: "read"
22+
1823
jobs:
1924
generate-ci-matrix:
2025
name: "Generate CI matrix"

0 commit comments

Comments
 (0)