File tree Expand file tree Collapse file tree 5 files changed +118
-1
lines changed
gradle-modules/src/main/kotlin/org/sonarsource/cloudnative/gradle Expand file tree Collapse file tree 5 files changed +118
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Pull Request Closed
2+
3+ on :
4+ pull_request :
5+ types : [closed]
6+
7+ jobs :
8+ PullRequestMerged_job :
9+ name : Pull Request Merged
10+ runs-on : sonar-xs
11+ permissions :
12+ id-token : write
13+ pull-requests : read
14+ # For external PR, ticket should be moved manually
15+ if : |
16+ github.event.pull_request.head.repo.full_name == github.repository
17+ steps :
18+ - id : secrets
19+ uses : SonarSource/vault-action-wrapper@v3
20+ with :
21+ secrets : |
22+ development/kv/data/jira user | JIRA_USER;
23+ development/kv/data/jira token | JIRA_TOKEN;
24+ - uses : sonarsource/gh-action-lt-backlog/PullRequestClosed@v2
25+ with :
26+ github-token : ${{secrets.GITHUB_TOKEN}}
27+ jira-user : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
28+ jira-token : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Pull Request Created
2+
3+ on :
4+ pull_request :
5+ types : ["opened"]
6+
7+ jobs :
8+ PullRequestCreated_job :
9+ name : Pull Request Created
10+ runs-on : sonar-xs
11+ permissions :
12+ id-token : write
13+ # For external PR, ticket should be created manually
14+ if : |
15+ github.event.pull_request.head.repo.full_name == github.repository
16+ && github.event.sender.type != 'Bot'
17+ steps :
18+ - id : secrets
19+ uses : SonarSource/vault-action-wrapper@v3
20+ with :
21+ secrets : |
22+ development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN;
23+ development/kv/data/jira user | JIRA_USER;
24+ development/kv/data/jira token | JIRA_TOKEN;
25+ - uses : sonarsource/gh-action-lt-backlog/PullRequestCreated@v2
26+ with :
27+ github-token : ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
28+ jira-user : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
29+ jira-token : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
30+ jira-project : CLOUDSEC
31+ additional-fields : ' { "components": [ { "name": "Other" } ] }'
Original file line number Diff line number Diff line change 1+ name : Request review
2+
3+ on :
4+ pull_request :
5+ types : ["review_requested"]
6+
7+ jobs :
8+ RequestReview_job :
9+ name : Request review
10+ runs-on : sonar-xs
11+ permissions :
12+ id-token : write
13+ # For external PR, ticket should be moved manually
14+ if : |
15+ github.event.pull_request.head.repo.full_name == github.repository
16+ steps :
17+ - id : secrets
18+ uses : SonarSource/vault-action-wrapper@v3
19+ with :
20+ secrets : |
21+ development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN;
22+ development/kv/data/jira user | JIRA_USER;
23+ development/kv/data/jira token | JIRA_TOKEN;
24+ - uses : sonarsource/gh-action-lt-backlog/RequestReview@v2
25+ with :
26+ github-token : ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
27+ jira-user : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
28+ jira-token : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Submit Review
2+
3+ on :
4+ pull_request_review :
5+ types : [submitted]
6+
7+ jobs :
8+ SubmitReview_job :
9+ name : Submit Review
10+ runs-on : sonar-xs
11+ permissions :
12+ id-token : write
13+ pull-requests : read
14+ # For external PR, ticket should be moved manually
15+ if : |
16+ github.event.pull_request.head.repo.full_name == github.repository
17+ && (github.event.review.state == 'changes_requested'
18+ || github.event.review.state == 'approved')
19+ steps :
20+ - id : secrets
21+ uses : SonarSource/vault-action-wrapper@v3
22+ with :
23+ secrets : |
24+ development/kv/data/jira user | JIRA_USER;
25+ development/kv/data/jira token | JIRA_TOKEN;
26+ - uses : sonarsource/gh-action-lt-backlog/SubmitReview@v2
27+ with :
28+ github-token : ${{secrets.GITHUB_TOKEN}}
29+ jira-user : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
30+ jira-token : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
Original file line number Diff line number Diff line change @@ -82,5 +82,5 @@ fun convertLicenseHeaderToGoCommentStyle(inputFile: File): String {
8282 // drop(1) removes the first, dropLast(1) removes the last
8383 return lines.drop(1 ).dropLast(1 ).joinToString(" \n " ) { line ->
8484 line.replace(" *" , " //" )
85- }
85+ }.plus( " \n\n " )
8686}
You can’t perform that action at this time.
0 commit comments