Skip to content

Commit 841b1b4

Browse files
authored
chore: add workflow updates (#64)
1 parent 685041f commit 841b1b4

File tree

6 files changed

+68
-32
lines changed

6 files changed

+68
-32
lines changed

.editorconfig

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
# editorconfig.org
12
root = true
23

34
[*]
4-
indent_style = tab
5+
indent_style = space
6+
indent_size = 2
57
end_of_line = lf
68
charset = utf-8
79
trim_trailing_whitespace = true
810
insert_final_newline = true
911

10-
[*.yml]
11-
indent_style = space
12-
indent_size = 2
12+
[*.md]
13+
trim_trailing_whitespace = false

.github/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- documentation
7+
- ignore-for-release
8+
categories:
9+
- title: Breaking Changes
10+
labels:
11+
- breaking
12+
exclude:
13+
labels:
14+
- dependencies
15+
- title: New Features
16+
labels:
17+
- enhancement
18+
exclude:
19+
labels:
20+
- dependencies
21+
- title: Bug Fixes
22+
labels:
23+
- bug
24+
exclude:
25+
labels:
26+
- dependencies
27+
- title: Security Patches
28+
labels:
29+
- security
30+
- "security"
31+
exclude:
32+
labels:
33+
- dependencies
34+
- title: Dependencies
35+
labels:
36+
- dependencies
37+
- title: Maintenance
38+
labels:
39+
- "*"
40+
exclude:
41+
labels:
42+
- dependencies

.github/workflows/auto-approve.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ on: pull_request_target
33
permissions:
44
pull-requests: write
55
jobs:
6-
auto-approve:
7-
uses: palashmon/reusable-workflows/.github/workflows/auto-approve.yml@main
6+
apply:
7+
if: github.actor == 'renovate[bot]'
8+
uses: palashmon/reusable-workflows/.github/workflows/auto-approve.yml@main
9+
secrets: inherit

.github/workflows/main.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ on:
55
branches:
66
- main
77
- master
8-
pull_request: # PRs to main and master branches
8+
pull_request: # PRs to main branches
99
workflow_dispatch: # manual trigger
1010

11-
# Control the concurrency of workflow runs
12-
# so that you can ensure that only one workflow runs at a time in a specific context.
1311
concurrency:
1412
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
1513
cancel-in-progress: true

.github/workflows/pr-labeler.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: PR labeler
2+
on:
3+
- pull_request_target
4+
jobs:
5+
apply:
6+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} # only PRs from this repo
7+
uses: palashmon/reusable-workflows/.github/workflows/labeler-reusable.yml@main
8+
secrets: inherit

.github/workflows/stale.yml

+8-23
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
1-
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2-
#
3-
# You can adjust the behavior by modifying this file.
4-
# For more information, see:
5-
# https://github.com/actions/stale
6-
name: Mark stale issues and pull requests
1+
name: 'Close stale issues and PRs'
72
on:
83
schedule:
9-
- cron: "*/10 5 * * *"
4+
- cron: '30 1 * * *'
5+
permissions:
6+
issues: write
7+
pull-requests: write
108
jobs:
11-
stale:
12-
runs-on: ubuntu-latest
13-
permissions:
14-
issues: write
15-
pull-requests: write
16-
steps:
17-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
18-
with:
19-
repo-token: ${{ secrets.GITHUB_TOKEN }}
20-
days-before-stale: 365
21-
stale-issue-message: 'This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
22-
stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
23-
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
24-
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'
25-
exempt-issue-labels: 'Help Wanted, Good first issue, Never gets stale'
26-
exempt-pr-labels: 'Help Wanted, Never gets stale'
9+
apply:
10+
uses: palashmon/reusable-workflows/.github/workflows/stale.yml@main
11+
secrets: inherit

0 commit comments

Comments
 (0)