diff options
author | Victor Chong <victor.chong@linaro.org> | 2021-12-16 09:36:25 +0000 |
---|---|---|
committer | Victor Chong <victor.chong@linaro.org> | 2021-12-21 19:23:43 +0900 |
commit | fbecac4419668a1e9100d8324e0cc138ac96a878 (patch) | |
tree | 16f1ae846d6a79946fe5cd5858138a02cb02e39f | |
parent | af346e68b667995b1c7dfccbd6fa6b05e7d2557b (diff) | |
download | apps-fbecac4419668a1e9100d8324e0cc138ac96a878.tar.gz |
.github: add action and templates
Add github action to close stale issues and PRs with no recent activity,
and templates for issues and PRs.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
-rw-r--r-- | .github/issue_template.md | 21 | ||||
-rw-r--r-- | .github/pull_request_template.md | 19 | ||||
-rw-r--r-- | .github/workflows/stales.yml | 28 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.github/issue_template.md b/.github/issue_template.md new file mode 100644 index 0000000..0b6f432 --- /dev/null +++ b/.github/issue_template.md @@ -0,0 +1,21 @@ +<!-- + General guidance when creating issues: + + 1. Please try to remember to close the issue when you have + got an answer to your question. + + 2. It never hurts to state which commit or release tag you are using in case + the question is about build issues. + + 3. Try to use GitHub markdown formatting to make your issue more readable: + https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#quoting-code + + 4. Try to search for the issue before posting the question: + -> Issues tab -> Filters + + 5. Check the FAQ before posting a question: + https://optee.readthedocs.io/en/latest/faq/faq.html + + NOTE: This comment will not be shown in the issue, so no harm keeping it, + but feel free to remove it if you like. +--> diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..03cb067 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ +<!-- + If you are new to submitting pull requests to OP-TEE, then please have a + look at the list below and tick them off before submitting the pull request. + + 1. Read our contribution guidelines: + https://optee.readthedocs.io/en/latest/general/contribute.html + + 2. Read the contribution section in Notice.md and pay extra attention to the + "Developer Certificate of Origin" in the contribution guidelines. + + 3. You should run checkpatch preferably before submitting the pull request. + + 4. When everything has been reviewed, you will need to squash, rebase and + add tags like `Reviewed-by`, `Acked-by`, `Tested-by` etc. More details + about this can also be found on the link provided above. + + NOTE: This comment will not be shown in the pull request, so no harm keeping + it, but feel free to remove it if you like. +--> diff --git a/.github/workflows/stales.yml b/.github/workflows/stales.yml new file mode 100644 index 0000000..183fa65 --- /dev/null +++ b/.github/workflows/stales.yml @@ -0,0 +1,28 @@ +name: 'Close stale issues and pull requests with no recent activity' +on: + schedule: + - cron: "15 00 * * *" + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4.1.0 + + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.' + stale-pr-message: 'This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.' + stale-issue-label: Stale + stale-pr-label: Stale + exempt-issue-labels: bug,enhancement + exempt-pr-labels: bug,enhancement + days-before-stale: 30 + days-before-close: 5 + remove-stale-when-updated: true + remove-issue-stale-when-updated: true + remove-pr-stale-when-updated: true |