diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml index 5f2918e..d1bc4f1 100644 --- a/.github/label-commenter-config.yml +++ b/.github/label-commenter-config.yml @@ -12,7 +12,7 @@ labels: This issue has been closed as we only track bugs here. 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. - You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly. + You can also [contact GLPI editor team](https://glpi-project.org/contact_us/) directly. action: "close" - name: "feature suggestion" labeled: @@ -20,6 +20,22 @@ labels: body: | This issue has been closed as we only track bugs here. - You can open a topic to discuss with community about this enhancement on [suggestion website](https://glpi.userecho.com/). - You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly if you are willing to sponsor this feature. + You can open a topic to discuss with community about this enhancement on [suggestion website](https://suggest.glpi-project.org). + You can also [contact GLPI editor team](https://glpi-project.org/contact_us/) directly if you are willing to sponsor this feature. + action: "close" + - name: "not reproducible" + labeled: + issue: + body: | + This issue has been closed because we could not reproduce it on the latest release. + + Feel free to reopen it with the exact steps to reproduce it on the latest release. + action: "close" + - name: "security report" + labeled: + issue: + body: | + This issue has been closed because security problems must not be reported publicly. + + Please edit it to remove the vulnerability details, then report it privately as described in our [security policy](https://github.com/pluginsGLPI/.github/blob/main/SECURITY.md). action: "close" diff --git a/.github/workflows/close_stale_issue.yml b/.github/workflows/close_stale_issue.yml index 66cd7fe..ce14d7f 100644 --- a/.github/workflows/close_stale_issue.yml +++ b/.github/workflows/close_stale_issue.yml @@ -12,7 +12,7 @@ jobs: pull-requests: "write" # for actions/stale to close stale pull requests runs-on: "ubuntu-latest" steps: - - uses: "actions/stale@v11" + - uses: "actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93" # v11.0.0 with: stale-issue-message: >- There has been no activity on this issue for 60 days and therefore it is considered stale @@ -28,9 +28,25 @@ jobs: days-before-issue-stale: 60 days-before-pr-stale: 90 days-before-close: 14 - exempt-issue-labels: "bug,enhancement,question,security" # Issues with "bug", "enhancement", "question" or "security" labels will not be marked as stale + exempt-issue-labels: "bug,enhancement,question,security,need feedback" # Issues with "bug", "enhancement", "question" or "security" labels will not be marked as stale, "need feedback" ones are handled by the next step exempt-pr-labels: "security" # PR with "security" label will not be marked as stale exempt-draft-pr: true # Draft PR are work in progress. exempt-all-milestones: true # Do not check issues/PR with defined milestone. ascending: true # First check older issues/PR. operations-per-run: 750 # Max API calls per run. + # Shares the "_state" cache of the step above, harmless as long as each run processes every issue + - uses: "actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93" # v11.0.0 + with: + only-labels: "need feedback" + stale-issue-message: >- + The requested information has not been provided for 30 days, + this issue will be closed automatically in 14 days. + close-issue-message: >- + This issue has been closed because the requested information has not been provided. + Feel free to reopen it with the requested information. + days-before-issue-stale: 30 + days-before-issue-close: 14 + days-before-pr-stale: -1 + days-before-pr-close: -1 + ascending: true + operations-per-run: 750 diff --git a/.github/workflows/need-feedback.yml b/.github/workflows/need-feedback.yml new file mode 100644 index 0000000..4857245 --- /dev/null +++ b/.github/workflows/need-feedback.yml @@ -0,0 +1,23 @@ +name: "Need feedback" + +on: + issue_comment: + types: + - "created" + +jobs: + answered: + if: >- + github.repository == 'pluginsGLPI/advancedforms' + && github.event.comment.user.login == github.event.issue.user.login + && contains(github.event.issue.labels.*.name, 'need feedback') + permissions: + issues: "write" + runs-on: "ubuntu-latest" + steps: + - name: "Remove the need feedback label" + env: + GH_TOKEN: "${{ github.token }}" + GH_REPO: "${{ github.repository }}" + ISSUE_NUMBER: "${{ github.event.issue.number }}" + run: gh issue edit "$ISSUE_NUMBER" --remove-label "need feedback"