mirror of
https://github.com/Lissy93/dashy.git
synced 2024-09-11 14:17:02 +03:00
👷 Adds action to generate report of open issues
This commit is contained in:
parent
77847f4528
commit
78ee4b3fcd
24
.github/issue-report-config.json
vendored
Normal file
24
.github/issue-report-config.json
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"section": "Feature Requests",
|
||||
"labels": [
|
||||
"🦄 Feature Request"
|
||||
],
|
||||
"threshold": 100
|
||||
},
|
||||
{
|
||||
"section": "Bugs",
|
||||
"labels": [
|
||||
"🐛 Bug"
|
||||
],
|
||||
"threshold": 100
|
||||
},
|
||||
{
|
||||
"section": "Questions & Feedback",
|
||||
"labels": [
|
||||
"🤷♂️ Question",
|
||||
"🌈 Feedback"
|
||||
],
|
||||
"threshold": 100
|
||||
}
|
||||
]
|
37
.github/workflows/generate-issue-summary.yml
vendored
Normal file
37
.github/workflows/generate-issue-summary.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
# An action to generate summary of current and past issues in Md form, for east searching
|
||||
name: Generate Issues Summary
|
||||
on:
|
||||
workflow_dispatch: # Manual dispatch
|
||||
schedule:
|
||||
- cron: '0 1 * * 0' # At 01:00 on Sunday.
|
||||
env:
|
||||
OUTPUT_FILE_NAME: .github/ISSUE_REPORT.md
|
||||
COMMITTER_EMAIL: liss-bot@d0h.co
|
||||
COMMITTER_NAME: Alicia Bot
|
||||
COMMITTER_USERNAME: liss-bot
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: brcrista/summarize-issues@v3
|
||||
with:
|
||||
title: 'Dashy Historical Issue Report'
|
||||
configPath: '.github/issue-report-config.json'
|
||||
outputPath: ${{ env.OUTPUT_FILE_NAME }}
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||
|
||||
- name: "Commit if any changes were made"
|
||||
run: |
|
||||
git remote add github "https://$COMMITTER_USERNAME:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
|
||||
git pull github ${GITHUB_REF} --ff-only
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
git add ${OUTPUT_FILE_NAME}
|
||||
git config --global user.email $COMMITTER_EMAIL
|
||||
git config --global user.name $COMMITTER_NAME
|
||||
git commit -m "Update $OUTPUT_FILE_NAME"
|
||||
git push github HEAD:${GITHUB_REF}
|
||||
fi
|
Loading…
Reference in New Issue
Block a user