Skip to content

Commit e3a99c9

Browse files
feat(workflows): add top issues callable workflow
1 parent ccf02fd commit e3a99c9

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# Create a top issues dashboard
3+
4+
name: Top issues (called)
5+
permissions: {}
6+
7+
on:
8+
workflow_call:
9+
10+
jobs:
11+
top-issues:
12+
name: Top issues
13+
permissions:
14+
contents: read
15+
issues: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Top issues action
19+
uses: rickstaa/top-issues-action@7e8dda5d5ae3087670f9094b9724a9a091fc3ba1 # v1.3.101
20+
env:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
dashboard: true
24+
dashboard_show_total_reactions: true
25+
label: false
26+
top_bugs: false
27+
top_features: false
28+
top_issues: true
29+
top_list_size: 10
30+
top_pull_requests: true

.github/workflows/__global-replicator.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
.github/workflows/pull-requests.yml,
7171
.github/workflows/python-flake8.yml,
7272
.github/workflows/release-notifier.yml,
73+
.github/workflows/top_issues.yml,
7374
.github/workflows/update-changelog.yml,
7475
.github/workflows/update-docs.yml,
7576
.github/workflows/update-flathub-repo.yml,
@@ -106,6 +107,7 @@ jobs:
106107
.github/semantic.yml,
107108
.github/workflows/_codeql.yml,
108109
.github/workflows/_common-lint.yml
110+
.github/workflows/_top-issues.yml
109111
topics_to_include: ''
110112
exclude_forked: false
111113
destination: ''

.github/workflows/_top-issues.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
# Create a top issues dashboard
7+
8+
name: Top issues
9+
permissions: {}
10+
11+
on:
12+
schedule:
13+
- cron: '0 6/12 * * *'
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: 'top-issues'
18+
cancel-in-progress: true
19+
20+
jobs:
21+
top-issues:
22+
name: Top issues
23+
uses: LizardByte/.github/.github/workflows/__call-top-issues.yml@master
24+
if: github.repository_owner == 'LizardByte'
25+
permissions:
26+
contents: read
27+
issues: write

0 commit comments

Comments
 (0)