Skip to content

Commit 728d95b

Browse files
committed
chore(xfer): add workflows (#423)
Post-transfer addition of workflows. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent 1f3cd31 commit 728d95b

File tree

7 files changed

+213
-0
lines changed

7 files changed

+213
-0
lines changed

.github/labeler-issues.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
bug:
3+
- 'panic:'
4+
crash:
5+
- 'panic:'

.github/labeler-pull-requests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
chore:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- ".github/**/*"
6+
- ".gitignore"
7+
- "go.mod"
8+
- "go.sum"
9+
dependencies:
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- "go.mod"
13+
- "go.sum"
14+
documentation:
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- "**/*.md"
18+
- "docs/**/*"
19+
- "docs-partials/**/*"
20+
- "example/**/*"
21+
github-actions:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- ".github/workflows/**/*"
25+
needs-review:
26+
- changed-files:
27+
- any-glob-to-any-file:
28+
- "**"

.github/workflows/issue-opened.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Issue Labels
3+
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
label-issues:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
steps:
18+
- name: Apply Labels
19+
uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
20+
with:
21+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
22+
configuration-path: .github/labeler-issues.yml
23+
enable-versioned-regex: 0
24+
include-title: 1

.github/workflows/lock.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Lock
3+
4+
on:
5+
schedule:
6+
- cron: 30 00 * * *
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lock:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0
19+
with:
20+
github-token: '${{ secrets.GITHUB_TOKEN }}'
21+
issue-comment: >
22+
I'm going to lock this issue because it has been closed for 30
23+
days. This helps our maintainers find and focus on the active
24+
issues.
25+
26+
27+
If you have found a problem that seems similar to this,
28+
please open a new issue and complete the issue template so we can
29+
capture all the details necessary to investigate further.
30+
issue-inactive-days: '30'
31+
pr-comment: >
32+
I'm going to lock this pull request because it has been closed for
33+
30 days. This helps our maintainers find and focus on the active
34+
issues.
35+
36+
37+
If you have found a problem that seems related to this
38+
change, please open a new issue and complete the issue template so
39+
we can capture all the details necessary to investigate further.
40+
pr-inactive-days: '30'
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Milestone Closed
3+
4+
on:
5+
milestone:
6+
types: [closed]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
comment:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- uses: bflad/action-milestone-comment@4618cbf8bf938d31af1c576beeaaa77f486f5af3 # v2.0.0
19+
with:
20+
body: |
21+
This functionality has been released in [${{ github.event.milestone.title }}](${{ github.event.milestone.html_url }}) of the plugin.
22+
23+
For further feature requests or bug reports with this functionality, please create a [new GitHub issue](https://github.com/${{ github.repository }}/issues/new/choose) following the template. Thank you!
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Pull Request Labels
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- main
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
- edited
13+
- ready_for_review
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
labeler:
20+
name: Labeler
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
steps:
26+
- name: Apply Standard Labels
27+
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
28+
with:
29+
configuration-path: .github/labeler-pull-requests.yml
30+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
31+
- name: Apply Sizing Labels
32+
uses: CodelyTV/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1.10.3
33+
with:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
xs_label: 'size/XS'
36+
xs_max_size: '30'
37+
s_label: 'size/S'
38+
s_max_size: '60'
39+
m_label: 'size/M'
40+
m_max_size: '150'
41+
l_label: 'size/L'
42+
l_max_size: '300'
43+
xl_label: 'size/XL'
44+
message_if_xl: ''

.github/workflows/stale.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Stale
3+
4+
on:
5+
schedule:
6+
- cron: 00 00 * * *
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
days-before-stale: 360
22+
days-before-close: 30
23+
exempt-issue-labels: needs-triage
24+
exempt-pr-labels: needs-review
25+
remove-stale-when-updated: true
26+
delete-branch: false
27+
stale-issue-label: stale
28+
stale-issue-message: >
29+
'Marking this issue as stale due to inactivity. This helps us focus
30+
on the active issues. If this issue receives no comments in the next
31+
30 days it will automatically be closed.
32+
33+
34+
If this issue was automatically closed and you feel this issue
35+
should be reopened, we encourage creating a new issue linking back
36+
to this one for added context.
37+
38+
Thank you!'
39+
stale-pr-label: stale
40+
stale-pr-message: >
41+
'Marking this pull request as stale due to inactivity. This helps us
42+
focus on the active pull requests. If this pull request receives no
43+
comments in the next 30 days it will automatically be closed.
44+
45+
If this pull request was automatically closed and you feel this pull
46+
request should be reopened, we encourage creating a new pull request
47+
linking back to this one for added context.
48+
49+
Thank you!'

0 commit comments

Comments
 (0)