Skip to content

Commit 332a9ce

Browse files
kamyarbbex0b1t
andauthored
feat: HRLD-183_Azure_CS_Email_Connector (#5)
* first commit * chore: update to later version of pipeline to fix dependency push Co-authored-by: Jaco Botha <[email protected]>
1 parent d6c6ba1 commit 332a9ce

File tree

72 files changed

+3446
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3446
-0
lines changed

.github/CODEOWNERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
# More details are here: https://help.github.com/articles/about-codeowners/
4+
# Order is important. The last matching pattern has the most precedence.
5+
# The folders are ordered as follows:
6+
# In each subsection folders are ordered first by depth, then alphabetically.
7+
# This should make it easy to add new rules without breaking existing ones.
8+
9+
* @backbase/message-delivery
10+
.github/ @backbase/backend-leadership

.github/dependabot.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2
2+
3+
registries:
4+
bb-artifactory:
5+
type: maven-repository
6+
url: https://repo.backbase.com
7+
username: ${{secrets.MAVEN_USERNAME}}
8+
password: ${{secrets.MAVEN_PASSWORD}}
9+
10+
updates:
11+
12+
# Maintain dependencies for GitHub Actions
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: weekly
17+
ignore:
18+
- dependency-name: "gitleaks/gitleaks-action"
19+
update-types: ["version-update:semver-major"]
20+
21+
# Maintain dependencies for docker
22+
- package-ecosystem: docker
23+
directory: "/"
24+
schedule:
25+
interval: weekly
26+
27+
# Maintain dependencies for maven
28+
- package-ecosystem: maven
29+
directory: "/"
30+
registries:
31+
- bb-artifactory
32+
schedule:
33+
interval: weekly

.github/release-drafter.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "🚀 Features"
5+
labels:
6+
- "feature"
7+
- "enhancement"
8+
- title: "🐛 Bug Fixes"
9+
labels:
10+
- "fix"
11+
- "bugfix"
12+
- "bug"
13+
- title: "🧰 Maintenance"
14+
label: "chore"
15+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
16+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
17+
version-resolver:
18+
major:
19+
labels:
20+
- "major"
21+
minor:
22+
labels:
23+
- "minor"
24+
patch:
25+
labels:
26+
- "patch"
27+
default: minor
28+
template: |
29+
## Changes
30+
31+
$CHANGES

.github/settings.yml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.
5+
6+
# The name of the repository. Changing this will rename the repository
7+
name: azure-cs-connector
8+
9+
# A short description of the repository that will show up on GitHub
10+
description: "This service is used by the Message Delivery capability, and provides integration to Amazon SES for sending emails."
11+
12+
# A URL with more information about the repository
13+
homepage: https://github.com/backbase/azure-cs-connector
14+
15+
# A comma-separated list of topics to set on the repository
16+
topics: backbase, message-delivery, communication, azure-communication-service, third-party
17+
18+
# Either `true` to make the repository private, or `false` to make it public.
19+
private: false
20+
21+
# Either `true` to enable issues for this repository, `false` to disable them.
22+
has_issues: true
23+
24+
# Either `true` to enable projects for this repository, or `false` to disable them.
25+
# If projects are disabled for the organization, passing `true` will cause an API error.
26+
has_projects: false
27+
28+
# Either `true` to enable the wiki for this repository, `false` to disable it.
29+
has_wiki: false
30+
31+
# Either `true` to enable downloads for this repository, `false` to disable them.
32+
has_downloads: false
33+
34+
# Updates the default branch for this repository.
35+
default_branch: main
36+
37+
# Either `true` to allow squash-merging pull requests, or `false` to prevent
38+
# squash-merging.
39+
allow_squash_merge: true
40+
41+
# Either `true` to allow merging pull requests with a merge commit, or `false`
42+
# to prevent merging pull requests with merge commits.
43+
allow_merge_commit: false
44+
45+
# Either `true` to allow rebase-merging pull requests, or `false` to prevent
46+
# rebase-merging.
47+
allow_rebase_merge: true
48+
49+
# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
50+
delete_branch_on_merge: true
51+
52+
# Either `true` to enable automated security fixes, or `false` to disable
53+
# automated security fixes.
54+
enable_automated_security_fixes: true
55+
56+
# Either `true` to enable vulnerability alerts, or `false` to disable
57+
# vulnerability alerts.
58+
enable_vulnerability_alerts: true
59+
60+
# Labels: define labels for Issues and Pull Requests
61+
labels:
62+
- name: bug
63+
color: CC0000
64+
description: An issue with the system.
65+
66+
- name: feature
67+
# If including a `#`, make sure to wrap it with quotes!
68+
color: '#336699'
69+
description: New functionality.
70+
71+
- name: Ideal for contribution
72+
# Provide a new name to rename an existing label
73+
new_name: ideal-for-contribution
74+
75+
# Milestones: define milestones for Issues and Pull Requests
76+
#milestones:
77+
# - title: milestone-title
78+
# description: milestone-description
79+
# The state of the milestone. Either `open` or `closed`
80+
# state: open
81+
82+
# Collaborators: give specific users access to this repository.
83+
# See https://docs.github.com/en/rest/reference/repos#add-a-repository-collaborator for available options
84+
#collaborators:
85+
# - username: ex0b1t
86+
# permission: admin
87+
# - username: hubot
88+
# permission: pull
89+
90+
# Note: `permission` is only valid on organization-owned repositories.
91+
# The permission to grant the collaborator. Can be one of:
92+
# * `pull` - can pull, but not push to or administer this repository.
93+
# * `push` - can pull and push, but not administer this repository.
94+
# * `admin` - can pull, push and administer this repository.
95+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
96+
# * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
97+
98+
# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options
99+
teams:
100+
# The permission to grant the team. Can be one of:
101+
# * `pull` - can pull, but not push to or administer this repository.
102+
# * `push` - can pull and push, but not administer this repository.
103+
# * `admin` - can pull, push and administer this repository.
104+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
105+
# * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
106+
- name: rnd
107+
permission: pull
108+
- name: backend-leadership
109+
permission: admin
110+
- name: message-delivery
111+
permission: admin
112+
113+
branches:
114+
- name: main
115+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
116+
# Branch Protection settings. Set to null to disable
117+
protection:
118+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
119+
required_pull_request_reviews:
120+
# The number of approvals required. (1-6)
121+
required_approving_review_count: 1
122+
# Dismiss approved reviews automatically when a new commit is pushed.
123+
dismiss_stale_reviews: true
124+
# Blocks merge until code owners have reviewed.
125+
require_code_owner_reviews: true
126+
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
127+
dismissal_restrictions:
128+
users: []
129+
teams: []
130+
# Required. Require status checks to pass before merging. Set to null to disable
131+
required_status_checks:
132+
# Required. Require branches to be up to date before merging
133+
strict: true
134+
# Required. The list of status checks to require in order to merge into this branch
135+
contexts: []
136+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
137+
enforce_admins: true
138+
# Prevent merge commits from being pushed to matching branches
139+
required_linear_history: true
140+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
141+
restrictions:
142+
apps: []
143+
users: []
144+
teams: []

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Maven Verify
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
verify:
11+
name: Maven Verify
12+
uses: backbase/workflows/.github/workflows/maven-verify.yml@main
13+
secrets:
14+
maven-username: ${{ secrets.MAVEN_USERNAME }}
15+
maven-password: ${{ secrets.MAVEN_PASSWORD }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [ opened, reopened, synchronize ]
9+
branches: [ main ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
update_release_draft:
16+
permissions:
17+
# write permission is required to create a github release
18+
contents: write
19+
# write permission is required for autolabeler
20+
# otherwise, read permission is required at least
21+
pull-requests: write
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: semantic-pull-request
25+
if: github.event_name == 'pull_request'
26+
uses: amannn/[email protected]
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
# Drafts your next Release notes as Pull Requests are merged into "master"
30+
- uses: release-drafter/release-drafter@v5
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Docker Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
release:
10+
name: Docker Release
11+
uses: backbase/workflows/.github/workflows/[email protected]
12+
with:
13+
version: ${GITHUB_REF##*v}
14+
secrets:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
maven-username: ${{ secrets.MAVEN_USERNAME }}
17+
maven-password: ${{ secrets.MAVEN_PASSWORD }}

.github/workflows/secrets.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Find secrets
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
gitleaks:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: wget
11+
uses: wei/wget@v1
12+
with:
13+
args: -O .rules.toml https://raw.githubusercontent.com/fnxpt/gitleaks-action/rules/.rules.toml
14+
- name: gitleaks-action
15+
uses: gitleaks/[email protected]
16+
with:
17+
config-path: .rules.toml

0 commit comments

Comments
 (0)