Skip to content

Commit 2fbf1b2

Browse files
committed
T6399: added reusable workflows and codeowners file
1 parent d29c8c3 commit 2fbf1b2

15 files changed

+142
-74
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ the box, please use [x]
1818
- [ ] Other (please describe):
1919

2020
## Related Task(s)
21-
<!-- All submitted PRs must be linked to a Task on Phabricator. -->
22-
* https://phabricator.vyos.net/Txxxx
21+
<!-- optional: Link to related other tasks on Phabricator. -->
22+
<!-- * https://vyos.dev/Txxxx -->
2323

2424
## Component(s) name
2525
<!-- A rather incomplete list of components: ethernet, wireguard, bgp, mpls, ldp, l2tp, dhcp ... -->
@@ -41,9 +41,8 @@ like this
4141
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
4242
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
4343
<!--- The entire development process is outlined here: https://docs.vyos.io/en/latest/contributing/development.html -->
44-
- [ ] I have read the [**CONTRIBUTING**](https://github.com/vyos/vyos-1x/blob/current/CONTRIBUTING.md) document
44+
- [ ] I have read the [**CONTRIBUTING**](https://github.com/vyos/vyos-1x/blob/sagitta/CONTRIBUTING.md) document
4545
- [ ] I have linked this PR to one or more Phabricator Task(s)
46-
- [ ] I have run the components [**SMOKETESTS**](https://github.com/vyos/vyos-1x/tree/current/smoketest/scripts/cli) if applicable
4746
- [ ] My commit headlines contain a valid Task id
4847
- [ ] My change requires a change to the documentation
4948
- [ ] I have updated the documentation accordingly

.github/labeler.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/reviewers.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/add-pr-labels.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Add pull request labels
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- current
8+
- equuleus
9+
- sagitta
10+
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
15+
jobs:
16+
add-pr-label:
17+
uses: vyos/.github/.github/workflows/add-pr-labels.yml@feature/T6349-reusable-workflows
18+
secrets: inherit

.github/workflows/auto-author-assign.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,12 @@ on:
33
pull_request_target:
44
types: [opened, reopened, ready_for_review, locked]
55

6+
67
permissions:
78
pull-requests: write
9+
contents: read
810

911
jobs:
10-
# https://github.com/marketplace/actions/auto-author-assign
1112
assign-author:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: "Assign Author to PR"
15-
uses: toshimaru/auto-author-assign@v1.3.5
16-
with:
17-
repo-token: ${{ secrets.GITHUB_TOKEN }}
18-
19-
# https://github.com/shufo/auto-assign-reviewer-by-files
20-
assign_reviewer:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Request review based on files changes and/or groups the author belongs to
24-
uses: shufo/auto-assign-reviewer-by-files@v1.1.4
25-
with:
26-
token: ${{ secrets.PR_ACTION_ASSIGN_REVIEWERS }}
27-
config: .github/reviewers.yml
13+
uses: vyos/.github/.github/workflows/assign-author.yml@feature/T6349-reusable-workflows
14+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Check pull request message format
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- current
8+
- sagitta
9+
- equuleus
10+
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
15+
jobs:
16+
check-pr-title:
17+
uses: vyos/.github/.github/workflows/check-pr-message.yml@feature/T6349-reusable-workflows
18+
secrets: inherit
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
name: "PR Conflicts checker"
3+
on:
4+
pull_request_target:
5+
types: [synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
check-pr-conflict-call:
13+
uses: vyos/.github/.github/workflows/check-pr-merge-conflict.yml@feature/T6349-reusable-workflows
14+
secrets: inherit

.github/workflows/check-stale.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue and PR stale management"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch:
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
stale:
13+
uses: vyos/.github/.github/workflows/check-stale.yml@feature/T6349-reusable-workflows
14+
secrets: inherit
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check for unused imports using Pylint
2+
on:
3+
pull_request:
4+
branches:
5+
- current
6+
- sagitta
7+
- equuleus
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
check-unused-imports:
15+
uses: vyos/.github/.github/workflows/check-unused-imports.yml@feature/T6349-reusable-workflows
16+
secrets: inherit

.github/workflows/codeql.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Perform CodeQL Analysis"
2+
3+
on:
4+
push:
5+
branches: [ "current", "sagitta", "equuleus" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "current" ]
9+
schedule:
10+
- cron: '22 10 * * 0'
11+
workflow_dispatch:
12+
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
jobs:
19+
codeql-analysis-call:
20+
uses: vyos/.github/.github/workflows/codeql-analysis.yml@feature/T6349-reusable-workflows
21+
secrets: inherit
22+
with:
23+
languages: "['python']"

.github/workflows/label-backport.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Mergifyio backport
2+
3+
on: [issue_comment]
4+
5+
permissions:
6+
pull-requests: write
7+
contents: read
8+
9+
jobs:
10+
mergifyio-backport:
11+
uses: vyos/.github/.github/workflows/label-backport.yml@feature/T6349-reusable-workflows
12+
secrets: inherit

.github/workflows/linit-j2.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: J2 Lint
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- current
8+
- sagitta
9+
- equuleus
10+
workflow_dispatch:
11+
12+
permissions:
13+
pull-requests: write
14+
contents: read
15+
16+
jobs:
17+
j2lint:
18+
uses: vyos/.github/.github/workflows/lint-j2.yml@feature/T6349-reusable-workflows
19+
secrets: inherit

.github/workflows/pr-conflicts.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/pull-request-labels.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @vyos/reviewers

0 commit comments

Comments
 (0)