Skip to content

Commit c32ef97

Browse files
Sunny  TyagiSunny  Tyagi
authored andcommitted
chore(pkg): basic setup of repo
basic setup of repo gh-4
1 parent 7849527 commit c32ef97

23 files changed

+23012
-21231
lines changed

.cz-config.js

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
module.exports = {
2+
types: [
3+
{value: 'feat', name: 'feat: A new feature'},
4+
{value: 'fix', name: 'fix: A bug fix'},
5+
{value: 'docs', name: 'docs: Documentation only changes'},
6+
{
7+
value: 'style',
8+
name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
9+
},
10+
{
11+
value: 'refactor',
12+
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
13+
},
14+
{
15+
value: 'perf',
16+
name: 'perf: A code change that improves performance',
17+
},
18+
{value: 'test', name: 'test: Adding missing tests'},
19+
{
20+
value: 'chore',
21+
name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
22+
},
23+
{value: 'revert', name: 'revert: Reverting a commit'},
24+
{value: 'WIP', name: 'WIP: Work in progress'},
25+
],
26+
27+
scopes: [
28+
{name: 'chore'},
29+
{name: 'deps'},
30+
{name: 'ci-cd'},
31+
{name: 'component'},
32+
{name: 'provider'},
33+
{name: 'core'},
34+
{name: 'maintenance'},
35+
{name: 'sqs'},
36+
{name: 'event-bridge'},
37+
{name: 'bullmq'},
38+
{name: 'pkg'},
39+
],
40+
41+
appendBranchNameToCommitMessage: true,
42+
appendIssueFromBranchName: true,
43+
allowTicketNumber: false,
44+
isTicketNumberRequired: false,
45+
46+
// override the messages, defaults are as follows
47+
messages: {
48+
type: "Select the type of change that you're committing:",
49+
scope: 'Denote the SCOPE of this change:',
50+
// used if allowCustomScopes is true
51+
customScope: 'Denote the SCOPE of this change:',
52+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
53+
body: 'Provide a LONGER description of the change (mandatory). Use "\\n" to break new line:\n',
54+
breaking: 'List any BREAKING CHANGES (optional):\n',
55+
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: GH-144:\n',
56+
confirmCommit: 'Are you sure you want to proceed with the commit above?',
57+
},
58+
59+
allowCustomScopes: false,
60+
allowBreakingChanges: ['feat', 'fix'],
61+
62+
// limit subject length
63+
subjectLimit: 100,
64+
breaklineChar: '|', // It is supported for fields body and footer.
65+
footerPrefix: '',
66+
askForBreakingChangeFirst: true, // default is false
67+
};

.github/CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at support@sourcefuse.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/CONTRIBUTING.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# loopback4-message-bus-queue-connector
2+
3+
## Contributing
4+
5+
First off, thank you for considering contributing to the project. It's people like you that helps in keeping this extension useful.
6+
7+
### Where do I go from here?
8+
9+
If you've noticed a bug or have a question, [search the issue tracker](https://github.com/sourcefuse/loopback4-message-bus-queue-connector/issues) to see if
10+
someone else in the community has already created a ticket. If not, go ahead and
11+
[make one](https://github.com/sourcefuse/loopback4-message-bus-queue-connector/issues/new/choose)!
12+
13+
### Fork & create a branch
14+
15+
If this is something you think you can fix, then [fork](https://help.github.com/articles/fork-a-repo) this repo and
16+
create a branch with a descriptive name.
17+
18+
A good branch name would be (where issue #325 is the ticket you're working on):
19+
20+
```sh
21+
git checkout -b 325-add-new-feature
22+
```
23+
24+
### Make a Pull Request
25+
26+
At this point, you should switch back to your master branch and make sure it's
27+
up to date with loopback4-message-bus-queue-connector's master branch:
28+
29+
```sh
30+
git remote add upstream git@github.com:sourcefuse/loopback4-message-bus-queue-connector.git
31+
git checkout master
32+
git pull upstream master
33+
```
34+
35+
Then update your feature branch from your local copy of master, and push it!
36+
37+
```sh
38+
git checkout 325-add-new-feature
39+
git rebase master
40+
git push --set-upstream origin 325-add-new-feature
41+
```
42+
43+
Finally, go to GitHub and [make a Pull Request](https://help.github.com/articles/creating-a-pull-request).
44+
45+
### Keeping your Pull Request updated
46+
47+
If a maintainer asks you to "rebase" your PR, they're saying that a lot of code
48+
has changed, and that you need to update your branch so it's easier to merge.
49+
50+
To learn more about rebasing in Git, there are a lot of [good][git rebasing]
51+
[resources][interactive rebase] but here's the suggested workflow:
52+
53+
```sh
54+
git checkout 325-add-new-feature
55+
git pull --rebase upstream master
56+
git push --force-with-lease 325-add-new-feature
57+
```
58+
59+
[git rebasing]: http://git-scm.com/book/en/Git-Branching-Rebasing
60+
[interactive rebase]: https://help.github.com/articles/interactive-rebase

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/stale.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Label to use when marking an issue or a PR as stale
2+
staleLabel: stale
3+
4+
# Configuration for issues
5+
issues:
6+
# Number of days of inactivity before an issue becomes stale
7+
daysUntilStale: 90
8+
# Comment to post when marking an issue as stale. Set to `false` to disable
9+
markComment: >
10+
This issue has been marked stale because it has not seen any activity within
11+
three months. If you believe this to be an error, please contact one of the code owners.
12+
This issue will be closed within 15 days of being stale.
13+
# Number of days of inactivity before a stale issue is closed
14+
daysUntilClose: 15
15+
# Comment to post when closing a stale issue. Set to `false` to disable
16+
closeComment: >
17+
This issue has been closed due to continued inactivity. Thank you for your understanding.
18+
If you believe this to be in error, please contact one of the code owners.
19+
# Configuration for pull requests
20+
pulls:
21+
# Number of days of inactivity before a PR becomes stale
22+
daysUntilStale: 60
23+
# Comment to post when marking a PR as stale. Set to `false` to disable
24+
markComment: >
25+
This pull request has been marked stale because it has not seen any activity
26+
within two months. It will be closed within 15 days of being stale
27+
unless there is new activity.
28+
# Number of days of inactivity before a stale PR is closed
29+
daysUntilClose: 15
30+
# Comment to post when closing a stale issue. Set to `false` to disable
31+
closeComment: >
32+
This pull request has been closed due to continued inactivity. If you are
33+
interested in finishing the proposed changes, then feel free to re-open
34+
this pull request or open a new one.

.github/workflows/build-image.yaml

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

.github/workflows/main.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,13 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-node@v3
1818
with:
19-
node-version: ${{ matrix.node-version }}
19+
node-version: '^20.x'
20+
2021
- name: Install Monorepo Deps
2122
run: npm ci
23+
2224
- name: Run Test Cases
23-
run: npm run test --workspaces --if-present
24-
- name: Run Lint Checks
25-
run: npm run lint --workspaces --if-present
25+
run: npm run test
2626

27-
npm_test:
28-
runs-on: ubuntu-latest
29-
needs: node_matrix_tests
30-
if: success()
31-
steps:
32-
- name: Final status
33-
run: echo "✅ All tests passed for Node.js 20, 22, and 24"
27+
- name: Run Lint Checks
28+
run: npm run lint

0 commit comments

Comments
 (0)