Skip to content

Commit aefe5a1

Browse files
authored
Merge pull request #2 from RomainLvr/github-action
GitHub action
2 parents bd54825 + 371cd8b commit aefe5a1

16 files changed

+2753
-546
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
#
2+
# ---------------------------------------------------------------------
3+
#
4+
# GLPI - Gestionnaire Libre de Parc Informatique
5+
#
6+
# http://glpi-project.org
7+
#
8+
# @copyright 2015-2024 Teclib' and contributors.
9+
# @copyright 2003-2014 by the INDEPNET Development Team.
10+
# @licence https://www.gnu.org/licenses/gpl-3.0.html
11+
#
12+
# ---------------------------------------------------------------------
13+
#
14+
# LICENSE
15+
#
16+
# This file is part of GLPI.
17+
#
18+
# This program is free software: you can redistribute it and/or modify
19+
# it under the terms of the GNU General Public License as published by
20+
# the Free Software Foundation, either version 3 of the License, or
21+
# (at your option) any later version.
22+
#
23+
# This program is distributed in the hope that it will be useful,
24+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+
# GNU General Public License for more details.
27+
#
28+
# You should have received a copy of the GNU General Public License
29+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
30+
#
31+
# ---------------------------------------------------------------------
32+
#
33+
34+
name: Bug Report
35+
description: Create a report to help us improve pdf
36+
body:
37+
- type: markdown
38+
attributes:
39+
value: |
40+
41+
Dear GLPI plugin user.
42+
43+
**⚠️ Please never use standard issues to report security problems. See [security policy](https://github.com/pluginsGLPI/pdf/security/policy) for more details. ⚠️**
44+
45+
BEFORE SUBMITTING YOUR ISSUE, please make sure to read and follow these steps:
46+
47+
* We do not track feature requests nor enhancements here. Propose them on the [suggest dedicated site](https://suggest.glpi-project.org).
48+
* Keep this tracker in ENGLISH. If you want support in your language, the [community forum](https://forum.glpi-project.org) is the best place.
49+
* Always try to reproduce your issue at least on latest stable release.
50+
51+
The GLPI team.
52+
- type: markdown
53+
attributes:
54+
value: |
55+
## Professional Support
56+
57+
We do not guarantee any processing / resolution time for community issues.
58+
59+
If you need a quick fix or any guarantee, you should consider to buy a GLPI Network Subscription.
60+
61+
More information here: https://glpi-project.org/subscriptions/
62+
- type: checkboxes
63+
id: terms
64+
attributes:
65+
label: Code of Conduct
66+
description: By submitting this issue, you agree to follow hereinabove rules and [Contribution guide](https://github.com/glpi-project/glpi/blob/main/CONTRIBUTING.md)
67+
options:
68+
- label: I agree to follow this project's Code of Conduct
69+
validations:
70+
required: true
71+
- type: checkboxes
72+
attributes:
73+
label: Is there an existing issue for this?
74+
description: Please search to see if an issue already exists for the bug you encountered.
75+
options:
76+
- label: I have searched the existing issues
77+
validations:
78+
required: true
79+
- type: input
80+
id: glpi-version
81+
attributes:
82+
label: GLPI Version
83+
description: What version of our GLPI are you running?
84+
validations:
85+
required: true
86+
- type: input
87+
id: plugin-version
88+
attributes:
89+
label: Plugin version
90+
description: What version of `pdf` are you running?
91+
validations:
92+
required: true
93+
- type: textarea
94+
attributes:
95+
label: Bug description
96+
description: A concise description of the problem you are experiencing and what you expected to happen.
97+
validations:
98+
required: false
99+
- type: textarea
100+
id: logs
101+
attributes:
102+
label: Relevant log output
103+
description: |
104+
Please copy and paste any relevant log output. Find them in `*-error.log` files under `glpi/files/_log/`.
105+
106+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
107+
render: shell
108+
- type: input
109+
id: url
110+
attributes:
111+
label: Page URL
112+
description: If applicable, page URL where the bug happens.
113+
validations:
114+
required: false
115+
- type: textarea
116+
attributes:
117+
label: Steps To reproduce
118+
description: Steps to reproduce the behavior.
119+
placeholder: |
120+
1. With this config...
121+
2. Go to...
122+
3. Scroll down to...
123+
4. See error...
124+
validations:
125+
required: false
126+
- type: textarea
127+
attributes:
128+
label: Your GLPI setup information
129+
description: Please copy and paste information you will find in GLPI in `Setup > General` menu, `System` tab.
130+
validations:
131+
required: false
132+
- type: textarea
133+
attributes:
134+
label: Anything else?
135+
description: Add any other context about the problem here.
136+
validations:
137+
required: false

.github/dependabot.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
updates:
3+
# Ensure GitHub Actions are used in their latest version
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "monthly"
8+
9+
# Strategy for composer dependencies
10+
- package-ecosystem: "composer"
11+
directory: "/"
12+
schedule:
13+
interval: "monthly"
14+
allow:
15+
- dependency-type: "direct"
16+
open-pull-requests-limit: 100
17+
versioning-strategy: "increase"
18+
groups:
19+
dev-dependencies:
20+
dependency-type: "development"

.github/label-commenter-config.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
labels:
2+
- name: "invalid"
3+
labeled:
4+
issue:
5+
body: |
6+
This issue has been closed because you did not provide the requested information.
7+
action: "close"
8+
- name: "support"
9+
labeled:
10+
issue:
11+
body: |
12+
This issue has been closed as we only track bugs here.
13+
14+
You can get community support on [forums](https://forum.glpi-project.org/) or you can consider [taking a subscription](https://glpi-project.org/subscriptions/) to get professional support.
15+
You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly.
16+
action: close
17+
- name: "feature suggestion"
18+
labeled:
19+
issue:
20+
body: |
21+
This issue has been closed as we only track bugs here.
22+
23+
You can open a topic to discuss with community about this enhancement on [suggestion website](https://glpi.userecho.com/).
24+
You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly if you are willing to sponsor this feature.
25+
action: close

.github/pull_request_template.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Checklist before requesting a review
2+
3+
*Please delete options that are not relevant.*
4+
5+
- [ ] I have performed a self-review of my code.
6+
- [ ] I have added tests (when available) that prove my fix is effective or that my feature works.
7+
- [ ] This change requires a documentation update.
8+
9+
## Description
10+
11+
- It fixes # (issue number, if applicable)
12+
- Here is a brief description of what this PR does
13+
14+
## Screenshots (if appropriate):
15+
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Automatically tag new version"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
paths:
8+
- "setup.php"
9+
10+
jobs:
11+
auto-tag-new-version:
12+
name: "Automatically tag new version"
13+
uses: "glpi-project/plugin-release-workflows/.github/workflows/auto-tag-new-version.yml@v1"
14+
secrets:
15+
github-token: "${{ secrets.AUTOTAG_TOKEN }}"
+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#
2+
# ---------------------------------------------------------------------
3+
#
4+
# GLPI - Gestionnaire Libre de Parc Informatique
5+
#
6+
# http://glpi-project.org
7+
#
8+
# @copyright 2015-2024 Teclib' and contributors.
9+
# @copyright 2003-2014 by the INDEPNET Development Team.
10+
# @licence https://www.gnu.org/licenses/gpl-3.0.html
11+
#
12+
# ---------------------------------------------------------------------
13+
#
14+
# LICENSE
15+
#
16+
# This file is part of GLPI.
17+
#
18+
# This program is free software: you can redistribute it and/or modify
19+
# it under the terms of the GNU General Public License as published by
20+
# the Free Software Foundation, either version 3 of the License, or
21+
# (at your option) any later version.
22+
#
23+
# This program is distributed in the hope that it will be useful,
24+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+
# GNU General Public License for more details.
27+
#
28+
# You should have received a copy of the GNU General Public License
29+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
30+
#
31+
# ---------------------------------------------------------------------
32+
#
33+
34+
name: 'Close stale issues'
35+
on:
36+
schedule:
37+
- cron: '0 8 * * *'
38+
39+
jobs:
40+
stale:
41+
if: github.repository == 'glpi-plugin/pdf'
42+
permissions:
43+
issues: write # for actions/stale to close stale issues
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/stale@v9
47+
with:
48+
stale-issue-message: >-
49+
There has been no activity on this issue for some time and therefore it is considered stale
50+
and will be closed automatically in 10 days.
51+
52+
53+
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist,
54+
feel free to add a comment to revive this issue.
55+
56+
If it is related to a new feature, please open a topic to discuss with community about this enhancement
57+
on [suggestion website](https://glpi.userecho.com/).
58+
59+
60+
You may also consider taking a [subscription](https://glpi-project.org/subscriptions/) to get professionnal
61+
support or [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly.
62+
days-before-issue-stale: 15
63+
days-before-pr-stale: -1 # PR will be marked as stale manually.
64+
days-before-close: 5
65+
exempt-issue-labels: "bug,enhancement,question,security" # Issues with "bug", "enhancement", "question" or "security" labels will not be marked as stale
66+
exempt-all-milestones: true # Do not check issues/PR with defined milestone.
67+
ascending: true # First check older issues/PR.
68+
operations-per-run: 750 # Max API calls per run.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#
2+
# ---------------------------------------------------------------------
3+
#
4+
# GLPI - Gestionnaire Libre de Parc Informatique
5+
#
6+
# http://glpi-project.org
7+
#
8+
# @copyright 2015-2024 Teclib' and contributors.
9+
# @copyright 2003-2014 by the INDEPNET Development Team.
10+
# @licence https://www.gnu.org/licenses/gpl-3.0.html
11+
#
12+
# ---------------------------------------------------------------------
13+
#
14+
# LICENSE
15+
#
16+
# This file is part of GLPI.
17+
#
18+
# This program is free software: you can redistribute it and/or modify
19+
# it under the terms of the GNU General Public License as published by
20+
# the Free Software Foundation, either version 3 of the License, or
21+
# (at your option) any later version.
22+
#
23+
# This program is distributed in the hope that it will be useful,
24+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+
# GNU General Public License for more details.
27+
#
28+
# You should have received a copy of the GNU General Public License
29+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
30+
#
31+
# ---------------------------------------------------------------------
32+
#
33+
34+
name: "Continuous integration"
35+
36+
on:
37+
push:
38+
branches:
39+
- "main"
40+
tags:
41+
- "*"
42+
pull_request:
43+
schedule:
44+
- cron: "0 0 * * *"
45+
workflow_dispatch:
46+
47+
concurrency:
48+
group: "${{ github.workflow }}-${{ github.ref }}"
49+
cancel-in-progress: true
50+
51+
jobs:
52+
generate-ci-matrix:
53+
name: "Generate CI matrix"
54+
uses: "glpi-project/plugin-ci-workflows/.github/workflows/generate-ci-matrix.yml@v1"
55+
with:
56+
glpi-version: "10.0.x"
57+
ci:
58+
name: "GLPI ${{ matrix.glpi-version }} - php:${{ matrix.php-version }} - ${{ matrix.db-image }}"
59+
needs: "generate-ci-matrix"
60+
strategy:
61+
fail-fast: false
62+
matrix: ${{ fromJson(needs.generate-ci-matrix.outputs.matrix) }}
63+
uses: "glpi-project/plugin-ci-workflows/.github/workflows/continuous-integration.yml@v1"
64+
with:
65+
plugin-key: "pdf"
66+
glpi-version: "${{ matrix.glpi-version }}"
67+
php-version: "${{ matrix.php-version }}"
68+
db-image: "${{ matrix.db-image }}"

.github/workflows/label-commenter.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Label commenter"
2+
3+
on:
4+
issues:
5+
types:
6+
- "labeled"
7+
- "unlabeled"
8+
9+
jobs:
10+
comment:
11+
permissions:
12+
contents: "read"
13+
issues: "write"
14+
runs-on: "ubuntu-latest"
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v4"
18+
19+
- name: "Label commenter"
20+
uses: "peaceiris/actions-label-commenter@v1"

.github/workflows/locales-sync.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Synchronize locales"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 1-5"
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync-with-transifex:
10+
name: "Sync with transifex"
11+
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1"
12+
secrets:
13+
github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}"
14+
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"

0 commit comments

Comments
 (0)