From d481098e66d2cee5474f0954646ea0b568d70375 Mon Sep 17 00:00:00 2001 From: Raphty Date: Mon, 28 Aug 2023 14:30:51 +0200 Subject: [PATCH 1/4] Create greetings.yml --- .github/workflows/greetings.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..e08b839 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,19 @@ +name: Greetings + +on: [issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write +# pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: | + Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you: + 🗣️ On [Discord](https://discord.gg/safing) the community is super helpful and active, we also have a support bot there which will give you immediate help + 📖 The [Wiki](https://wiki.safing.io/) answers almost all questions, if you cant find your solution there let us know so we can add the missing info's + # pr-message: "Message that will be displayed on users' first pull request" From 4490d27b559769c331a2f6959424e70d72c39484 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 29 Aug 2023 18:01:23 +0200 Subject: [PATCH 2/4] Add new issue management workflows --- .github/stale.yml | 74 -------------------- .github/workflows/greetings.yml | 19 ----- .github/workflows/issues-first-greet.yml | 25 +++++++ .github/workflows/issues-label-responder.yml | 39 +++++++++++ .github/workflows/issues-stale.yml | 43 ++++++++++++ auto-comment.yml | 23 ------ 6 files changed, 107 insertions(+), 116 deletions(-) delete mode 100644 .github/stale.yml delete mode 100644 .github/workflows/greetings.yml create mode 100644 .github/workflows/issues-first-greet.yml create mode 100644 .github/workflows/issues-label-responder.yml create mode 100644 .github/workflows/issues-stale.yml delete mode 100644 auto-comment.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 553314c..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,74 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Limit to only `issues` or `pulls` -only: issues - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 21 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: 7 - -# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) -onlyLabels: [] - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - "priority support" - - faq - - dependencies - - pinned - - security - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: false - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: false - -# Label to use when marking as stale -staleLabel: inactive - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as inactive because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. - -# Comment to post when removing the stale label. -# unmarkComment: > -# Your comment here. - -# Comment to post when closing a stale Issue or Pull Request. -closeComment: > - This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. - - If the issue has not been resolved, you can find more information or continue the conversation here: - - - [Docs & FAQ](https://docs.safing.io/) - - [Wiki](https://wiki.safing.io/) - - [Get Help on Discord](https://discord.gg/safing) - - Please keep in mind that the free version of Portmaster only has limited support. We can only give so much limited free support. - If you find our work brings value to you, please consider supporting it by purchasing Supporter or Unlimited Packages https://safing.io/pricing/. - - If you already are a paying subscriber and want to claim priority support for this issue, please send us a message [on Discord](https://discord.gg/safing) or [via Email](mailto:support@safing.io) with your username and the link to this issue, so we can prioritize accordingly. - -# Limit the number of actions per hour, from 1-30. Default is 30 -# limitPerRun: 30 - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -# pulls: -# daysUntilStale: 30 -# markComment: > -# This pull request has been automatically marked as stale because it has not had -# recent activity. It will be closed if no further activity occurs. Thank you -# for your contributions. - -# issues: -# exemptLabels: -# - confirmed diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index e08b839..0000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Greetings - -on: [issues] - -jobs: - greeting: - runs-on: ubuntu-latest - permissions: - issues: write -# pull-requests: write - steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: | - Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you: - 🗣️ On [Discord](https://discord.gg/safing) the community is super helpful and active, we also have a support bot there which will give you immediate help - 📖 The [Wiki](https://wiki.safing.io/) answers almost all questions, if you cant find your solution there let us know so we can add the missing info's - # pr-message: "Message that will be displayed on users' first pull request" diff --git a/.github/workflows/issues-first-greet.yml b/.github/workflows/issues-first-greet.yml new file mode 100644 index 0000000..a8f8a1f --- /dev/null +++ b/.github/workflows/issues-first-greet.yml @@ -0,0 +1,25 @@ +# This workflow responds to first time posters with a greeting message. +# Docs: https://github.com/actions/first-interaction +name: Greet New Users + +# This workflow is triggered when a new issue is created. +on: + issues: + types: opened + +jobs: + greet: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + # Respond to first time issue raisers. + issue-message: | + Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you: + + - 🗣️ Our community on [Discord](https://discord.gg/safing) is super helpful and active. We also have an AI-enabled support bot that knows Portmaster well and can give you immediate help. + - 📖 The [Wiki](https://wiki.safing.io/) answers all common questions and has many important details. If you can't find an answer there, let us know, so we can add anything that's missing. diff --git a/.github/workflows/issues-label-responder.yml b/.github/workflows/issues-label-responder.yml new file mode 100644 index 0000000..d1d3eaa --- /dev/null +++ b/.github/workflows/issues-label-responder.yml @@ -0,0 +1,39 @@ +# This workflow responds with a message when certain labels are added to an issue or PR. +# Docs: https://github.com/hramos/respond-to-issue-based-on-label +name: Respond To Issues Based on Label + +# This workflow is triggered when a label is added to an issue. +on: + issues: + types: labeled + +jobs: + respond: + name: Process Label Action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Process Label Action + uses: hramos/respond-to-issue-based-on-label@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + community support: + comment: | + Thank you for raising this issue with us. + + After a first review we noticed that this does not seem to be a technical issue, but rather a configuration issue or general question about how Portmaster works. + + Thus, we invite the community to help with configuration and/or answering this questions. + + If you are in a hurry or haven't received an answer, a good place to ask is in [our Discord community](https://discord.gg/safing). + + If your problem or question has been resolved or answered, please come back and give an update here for other users encountering the same and then close this issue. + + If you are a paying subscriber and want this issue to be checked out by Safing, please send us a message [on Discord](https://discord.gg/safing) or [via Email](mailto:support@safing.io) with your username and the link to this issue, so we can prioritize accordingly. + need debug info: + comment: | + Thank you for raising this issue with us. + + After a first review we noticed that we will require the Debug Info for further investigation. However, you haven't supplied any Debug Info in your report. + + Please [collect Debug Info](https://wiki.safing.io/en/FAQ/DebugInfo) from _while_ the reported issue is present. diff --git a/.github/workflows/issues-stale.yml b/.github/workflows/issues-stale.yml new file mode 100644 index 0000000..11d0fc1 --- /dev/null +++ b/.github/workflows/issues-stale.yml @@ -0,0 +1,43 @@ +# This workflow warns and then closes stale issues and PRs. +# Docs: https://github.com/actions/stale +name: Close Stale Issues + +on: + schedule: + - cron: "17 5 * * 1-5" # run at 5:17 (UTC) on Monday to Friday + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + # Handle stale issues + stale-issue-label: 'stale' + # Exemptions + exempt-issue-assignees: 'dhaavi,Raphty' + exempt-issue-labels: 'support,faq,dependencies,pinned,security' + # Mark as stale + days-before-issue-stale: 63 # 2 months / 9 weeks + stale-issue-message: | + This issue has been automatically marked as inactive because it has not had activity in the past two months. + + If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics. + # Close + days-before-issue-close: 7 # 1 week + close-issue-message: | + This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. + + If the issue has not been resolved, you can find more information or continue the conversation here: + + - [Wiki & FAQ](https://wiki.safing.io/) + - [Get Help on Discord](https://discord.gg/safing) + + Please keep in mind that the free version of Portmaster only has limited support. If you find our work brings value to you, please consider supporting it by purchasing Portmaster Plus or Pro: https://safing.io/pricing/. + + If you already are a paying subscriber and want this issue to be checked out by Safing, please send us a message [on Discord](https://discord.gg/safing) or [via Email](mailto:support@safing.io) with your username and the link to this issue, so we can prioritize accordingly. + # TODO: Handle stale PRs diff --git a/auto-comment.yml b/auto-comment.yml deleted file mode 100644 index 85220e9..0000000 --- a/auto-comment.yml +++ /dev/null @@ -1,23 +0,0 @@ -issueOpened: > - Thank you for reaching out. - - In case you are raising an issue, you can find more information to try to it yourself here: - - - [Wiki & FAQ](https://wiki.safing.io/) - - [GitHub Issues](https://github.com/issues?q=is%3Aopen+is%3Aissue+user%3Asafing+sort%3Aupdated-desc) - - [Ask on Discord](https://discord.gg/safing) - - Additionally, there is a __ChatGPT-like support bot__ trained on our documentation, that you can [ask for help in this Discord channel](https://discord.com/channels/389815143711637517/1106170808704974878). - - Please keep in mind that the free version of Portmaster only has community support and inactive issues are automatically closed after a while. - If you find our work brings value to you, please consider supporting it by purchasing Supporter or Unlimited Packages https://safing.io/pricing/. - - If you are a customer, first of all: Thank You! - If you want to claim priority support for this issue, please send us a message [on Discord](https://discord.gg/safing) or [via Email](mailto:support@safing.io) with your username and the link to this issue, so we can prioritize accordingly. - - -pullRequestOpened: > - Thank you for your pull request. - - If you have not already, please read our [contribution guideline](https://wiki.safing.io/en/Contribute). - If this change is bigger and you have not discussed it with us, please head over to [Discord](https://discord.gg/safing) to discuss your idea. From 5ea8354cea95dca87a6359aa79906849046709b4 Mon Sep 17 00:00:00 2001 From: Raphty Date: Wed, 30 Aug 2023 08:18:48 +0200 Subject: [PATCH 3/4] Update issues-label-responder.yml --- .github/workflows/issues-label-responder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issues-label-responder.yml b/.github/workflows/issues-label-responder.yml index d1d3eaa..1ab7258 100644 --- a/.github/workflows/issues-label-responder.yml +++ b/.github/workflows/issues-label-responder.yml @@ -36,4 +36,4 @@ jobs: After a first review we noticed that we will require the Debug Info for further investigation. However, you haven't supplied any Debug Info in your report. - Please [collect Debug Info](https://wiki.safing.io/en/FAQ/DebugInfo) from _while_ the reported issue is present. + Please [collect Debug Info](https://wiki.safing.io/en/FAQ/DebugInfo) from Portmaster _while_ the reported issue is present. From 8dba0a53602bc3a6e170b5ee35cea376672c5932 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 30 Aug 2023 10:52:09 +0200 Subject: [PATCH 4/4] Improve issue handlers --- .github/workflows/issues-label-responder.yml | 6 ++---- .github/workflows/issues-stale.yml | 15 ++++----------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/issues-label-responder.yml b/.github/workflows/issues-label-responder.yml index 1ab7258..ab7f265 100644 --- a/.github/workflows/issues-label-responder.yml +++ b/.github/workflows/issues-label-responder.yml @@ -12,9 +12,7 @@ jobs: name: Process Label Action runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Process Label Action - uses: hramos/respond-to-issue-based-on-label@v2 + - uses: hramos/respond-to-issue-based-on-label@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} community support: @@ -30,7 +28,7 @@ jobs: If your problem or question has been resolved or answered, please come back and give an update here for other users encountering the same and then close this issue. If you are a paying subscriber and want this issue to be checked out by Safing, please send us a message [on Discord](https://discord.gg/safing) or [via Email](mailto:support@safing.io) with your username and the link to this issue, so we can prioritize accordingly. - need debug info: + needs debug info: comment: | Thank you for raising this issue with us. diff --git a/.github/workflows/issues-stale.yml b/.github/workflows/issues-stale.yml index 11d0fc1..7064fe1 100644 --- a/.github/workflows/issues-stale.yml +++ b/.github/workflows/issues-stale.yml @@ -13,14 +13,14 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v8 with: repo-token: ${{ secrets.GITHUB_TOKEN }} # Handle stale issues stale-issue-label: 'stale' # Exemptions - exempt-issue-assignees: 'dhaavi,Raphty' - exempt-issue-labels: 'support,faq,dependencies,pinned,security' + exempt-all-issue-assignees: true + exempt-issue-labels: 'support,dependencies,pinned,security' # Mark as stale days-before-issue-stale: 63 # 2 months / 9 weeks stale-issue-message: | @@ -32,12 +32,5 @@ jobs: close-issue-message: | This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. - If the issue has not been resolved, you can find more information or continue the conversation here: - - - [Wiki & FAQ](https://wiki.safing.io/) - - [Get Help on Discord](https://discord.gg/safing) - - Please keep in mind that the free version of Portmaster only has limited support. If you find our work brings value to you, please consider supporting it by purchasing Portmaster Plus or Pro: https://safing.io/pricing/. - - If you already are a paying subscriber and want this issue to be checked out by Safing, please send us a message [on Discord](https://discord.gg/safing) or [via Email](mailto:support@safing.io) with your username and the link to this issue, so we can prioritize accordingly. + If the issue has not been resolved, you can [find more information in our Wiki](https://wiki.safing.io/) or [continue the conversation on our Discord](https://discord.gg/safing). # TODO: Handle stale PRs