File tree Expand file tree Collapse file tree 7 files changed +177
-0
lines changed Expand file tree Collapse file tree 7 files changed +177
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+
3+ # The workflow template for automatic PR labeler.
4+ # It requires to have a configuration file with labels and conditions to apply them.
5+ # The configuration file should be placed in the .github folder and named auto-labeler-config.yaml.
6+ # Example file can be found there:
7+ # https://github.com/Netcracker/qubership-workflow-hub/blob/main/docs/examples/auto-labeler-config.yaml
8+
9+ name : Automatic PR Labeler
10+
11+ on :
12+ pull_request :
13+ branches : [main]
14+ types :
15+ [opened, reopened, synchronize]
16+
17+ permissions :
18+ pull-requests : write
19+ contents : read
20+ issues : write
21+
22+ jobs :
23+ assign-labels :
24+ uses : Netcracker/qubership-workflow-hub/.github/workflows/auto-labeler.yaml@main
25+ name : Assign labels in pull request
26+ if : github.event.pull_request.merged == false
27+ with :
28+ pull_request_number : ${{ github.event.pull_request.number }}
29+ config_file : ' ./.github/auto-labeler-config.yaml'
Original file line number Diff line number Diff line change 1+ ---
2+ name : CLA Assistant
3+ on :
4+ issue_comment :
5+ types : [created]
6+ pull_request_target :
7+ types : [opened, closed, synchronize]
8+
9+ permissions :
10+ actions : write
11+ contents : read
12+ pull-requests : write
13+ statuses : write
14+
15+ jobs :
16+ cla_assistant :
17+ uses : Netcracker/qubership-workflow-hub/.github/workflows/cla.yaml@main
18+ secrets :
19+ personal_access_token : ${{ secrets.CLA_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : " Add commit messages to PR body"
4+
5+ on :
6+ pull_request :
7+ types : [opened, synchronize]
8+
9+ permissions :
10+ pull-requests : write
11+
12+ jobs :
13+ update-pr-body :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : " Update PR body"
17+ uses : netcracker/qubership-workflow-hub/actions/pr-add-messages@main
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : Conventional Commits PR Check
4+
5+ on :
6+ pull_request :
7+ types :
8+ - opened
9+ - edited
10+ - synchronize
11+
12+ permissions :
13+ pull-requests : read
14+ jobs :
15+ build :
16+ name : Conventional Commits
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : " Lint PR Title"
4+
5+ on :
6+ pull_request :
7+ types :
8+ - opened
9+ - edited
10+
11+ permissions :
12+ pull-requests : read
13+
14+ jobs :
15+ main :
16+ name : Validate PR title
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : amannn/action-semantic-pull-request@v5
20+ env :
21+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 1+ ---
2+ name : Profanity filter
3+
4+ on :
5+ issue_comment :
6+ types : [created, edited]
7+ issues :
8+ types : [opened, edited, reopened]
9+ pull_request :
10+ types : [opened, edited, reopened]
11+
12+ permissions :
13+ issues : write
14+ pull-requests : write
15+
16+ jobs :
17+ call-apply-filter :
18+ uses : Netcracker/qubership-workflow-hub/.github/workflows/profanityFilter.yaml@main
Original file line number Diff line number Diff line change 1+ ---
2+ # This workflow executes several linters on changed files based on languages used in your code base whenever
3+ # you push a code or open a pull request.
4+ #
5+ # You can adjust the behavior by modifying this file.
6+ # For more information, see:
7+ # https://github.com/super-linter/super-linter
8+ # Configuration file for super-linter example:
9+ # .github/super-linter.env
10+ # Configuration files for individual linters should be placed in .github/linters
11+
12+ name : Lint Code Base
13+
14+ on :
15+ push :
16+ branches : ["main"]
17+ pull_request :
18+ branches : ["main"]
19+ workflow_dispatch :
20+ inputs :
21+ full_scan :
22+ type : boolean
23+ default : false
24+ required : false
25+ description : " Lint all codebase"
26+ permissions :
27+ contents : read
28+
29+ jobs :
30+ run-lint :
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Checkout code
34+ uses : actions/checkout@v4
35+ with :
36+ # Full git history is needed to get a proper list of changed files within `super-linter`
37+ fetch-depth : 0
38+
39+ - name : " Load super-linter environment file"
40+ run : |
41+ # shellcheck disable=2086
42+ if [ -f "./.github/super-linter.env" ]; then
43+ grep "\S" ./.github/super-linter.env | grep -v "^#"
44+ grep "\S" ./.github/super-linter.env | grep -v "^#" >> $GITHUB_ENV
45+ fi
46+
47+ - name : Lint Code Base
48+ uses : super-linter/super-linter@v7
49+ env :
50+ VALIDATE_ALL_CODEBASE : ${{ inputs.full_scan || false }}
51+ DEFAULT_BRANCH : " main"
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments