Skip to content

Commit a2ef76e

Browse files
authored
Merge pull request #12 from foomo/feature/generics
feat: generics
2 parents c673741 + a2b6d63 commit a2ef76e

Some content is hidden

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

45 files changed

+1080
-697
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, caste, color, religion, or sexual
11+
identity and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience
26+
* Focusing on what is best not just for us as individuals, but for the overall
27+
community
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or advances of
32+
any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email address,
36+
without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official email address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement at
64+
info@bestbytes.com.
65+
All complaints will be reviewed and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the
68+
reporter of any incident.
69+
70+
## Enforcement Guidelines
71+
72+
Community leaders will follow these Community Impact Guidelines in determining
73+
the consequences for any action they deem in violation of this Code of Conduct:
74+
75+
### 1. Correction
76+
77+
**Community Impact**: Use of inappropriate language or other behavior deemed
78+
unprofessional or unwelcome in the community.
79+
80+
**Consequence**: A private, written warning from community leaders, providing
81+
clarity around the nature of the violation and an explanation of why the
82+
behavior was inappropriate. A public apology may be requested.
83+
84+
### 2. Warning
85+
86+
**Community Impact**: A violation through a single incident or series of
87+
actions.
88+
89+
**Consequence**: A warning with consequences for continued behavior. No
90+
interaction with the people involved, including unsolicited interaction with
91+
those enforcing the Code of Conduct, for a specified period of time. This
92+
includes avoiding interactions in community spaces as well as external channels
93+
like social media. Violating these terms may lead to a temporary or permanent
94+
ban.
95+
96+
### 3. Temporary Ban
97+
98+
**Community Impact**: A serious violation of community standards, including
99+
sustained inappropriate behavior.
100+
101+
**Consequence**: A temporary ban from any sort of interaction or public
102+
communication with the community for a specified period of time. No public or
103+
private interaction with the people involved, including unsolicited interaction
104+
with those enforcing the Code of Conduct, is allowed during this period.
105+
Violating these terms may lead to a permanent ban.
106+
107+
### 4. Permanent Ban
108+
109+
**Community Impact**: Demonstrating a pattern of violation of community
110+
standards, including sustained inappropriate behavior, harassment of an
111+
individual, or aggression toward or disparagement of classes of individuals.
112+
113+
**Consequence**: A permanent ban from any sort of public interaction within the
114+
community.
115+
116+
## Attribution
117+
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119+
version 2.1, available at
120+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121+
122+
Community Impact Guidelines were inspired by
123+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127+
[https://www.contributor-covenant.org/translations][translations].
128+
129+
[homepage]: https://www.contributor-covenant.org
130+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131+
[Mozilla CoC]: https://github.com/mozilla/diversity
132+
[FAQ]: https://www.contributor-covenant.org/faq
133+
[translations]: https://www.contributor-covenant.org/translations

.github/CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contributing
2+
3+
If you want to submit a pull request to fix a bug or enhance an existing
4+
feature, please first open an issue and link to that issue when you
5+
submit your pull request.
6+
7+
If you have any questions about a possible submission, feel free to open
8+
an issue too.
9+
10+
### Pull request process
11+
12+
1. Fork this repository
13+
2. Create a branch in your fork to implement the changes. We recommend using
14+
the issue number as part of your branch name, e.g. `1234-fixes`
15+
3. Ensure that any documentation is updated with the changes that are required
16+
by your fix.
17+
4. Ensure that any samples are updated if the base image has been changed.
18+
5. Submit the pull request. *Do not leave the pull request blank*. Explain exactly
19+
what your changes are meant to do and provide simple steps on how to validate
20+
your changes. Ensure that you reference the issue you created as well.
21+
The pull request will be review before it is merged.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug you encountered
4+
labels: bug
5+
---
6+
**What happened**:
7+
8+
**What you expected to happen**:
9+
10+
**How to reproduce it (as minimally and precisely as possible)**:
11+
12+
**Anything else we need to know?**:
13+
14+
**Environment**:
15+
- Affected Version:
16+
- OS (e.g: `cat /etc/os-release`):
17+
- Others:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Enhancement Request
3+
about: Suggest an enhancement
4+
labels: enhancement
5+
---
6+
**What would you like to be added**:
7+
8+
**Why is this needed**:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Type of Change
2+
- [ ] New feature
3+
- [ ] Bug fix
4+
- [ ] Documentation update
5+
- [ ] Refactoring
6+
- [ ] Hotfix
7+
- [ ] Security patch
8+
9+
### Description
10+
_[Provide a detailed explanation of the changes you have made. Include the reasons behind these changes and any relevant context. Link any related issues.]_
11+
12+
### Related Issue
13+
_[If this pull request addresses an issue, please link to it here (e.g., Fixes #123).]_
14+
15+
### Checklist
16+
- [ ] My code adheres to the coding and style guidelines of the project.
17+
- [ ] I have performed a self-review of my own code.
18+
- [ ] I have commented my code, particularly in hard-to-understand areas.
19+
- [ ] I have made corresponding changes to the documentation.

.github/SECURITY.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Security Guidelines
2+
3+
## How security is managed on this project
4+
5+
The foomo team and community take security seriously and wants to ensure that
6+
we maintain a secure environment and provide secure solutions for the open
7+
source community. To help us achieve these goals, please note the
8+
following before using this software:
9+
10+
- Review the software license to understand the contributor's obligations in
11+
terms of warranties and suitability for purpose
12+
- For any questions or concerns about security, you can
13+
[create an issue][new-issue] or [report a vulnerability][new-sec-issue]
14+
- We request that you work with our security team and opt for
15+
responsible disclosure using the guidelines below
16+
- All security related issues and pull requests you make should be tagged with
17+
"security" for easy identification
18+
- Please monitor this repository and update your environment in a timely manner
19+
as we release patches and updates
20+
21+
## Responsibly Disclosing Security Bugs
22+
23+
If you find a security bug in this repository, please work with contributors
24+
following responsible disclosure principles and these guidelines:
25+
26+
- Do not submit a normal issue or pull request in our public repository, instead
27+
[report it directly][new-sec-issue].
28+
- We will review your submission and may follow up for additional details
29+
- If you have a patch, we will review it and approve it privately; once approved
30+
for release you can submit it as a pull request publicly in the repository (we
31+
give credit where credit is due)
32+
- We will keep you informed during our investigation, feel free to check in for
33+
a status update
34+
- We will release the fix and publicly disclose the issue as soon as possible,
35+
but want to ensure we due properly due diligence before releasing
36+
- Please do not publicly blog or post about the security issue until after we
37+
have updated the public repo so that other downstream users have an opportunity
38+
to patch
39+
40+
## Contact / Misc
41+
42+
If you have any questions, please reach out directly by [creating an issue][new-issue].
43+
44+
[new-issue]: https://github.com/foomo/contentful/issues/new/choose
45+
[new-sec-issue]: https://github.com/foomo/contentful/security/advisories/new

.github/assets/gocontentful.png

196 KB
Loading

.github/dependabot.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,43 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/dependabot-2.0.json
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
13
version: 2
24

35
updates:
46
- package-ecosystem: github-actions
7+
open-pull-requests-limit: 1
8+
commit-message: { prefix: chore(deps) }
59
directory: '/'
610
schedule:
11+
day: sunday
712
interval: weekly
13+
timezone: Europe/Berlin
14+
cooldown:
15+
default-days: 1
16+
include: [ '*' ]
817

918
- package-ecosystem: gomod
10-
directory: '/'
19+
open-pull-requests-limit: 1
20+
commit-message: { prefix: chore(deps) }
21+
directories: [ '**/*' ]
1122
schedule:
23+
day: sunday
1224
interval: weekly
25+
timezone: Europe/Berlin
1326
groups:
14-
gomod-security:
27+
security:
1528
applies-to: security-updates
16-
patterns: ['*']
17-
gomod-update:
29+
update-types: [ minor, patch ]
30+
patterns: [ '*' ]
31+
updates:
1832
applies-to: version-updates
19-
patterns: ['*']
33+
update-types: [ minor, patch ]
34+
patterns: [ '*' ]
35+
ignore:
36+
- dependency-name: '*'
37+
update-types: [ 'version-update:semver-major' ]
38+
cooldown:
39+
default-days: 1
40+
semver-major-days: 14
41+
semver-minor-days: 7
42+
semver-patch-days: 1
43+
include: [ '*' ]

.github/workflows/pr.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
18-
- name: Unshallow
19-
run: git fetch --prune --unshallow
16+
- uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
2019

21-
- uses: actions/setup-go@v5
20+
- uses: actions/setup-go@v6
2221
with:
22+
check-latest: true
2323
go-version-file: go.mod
2424

25-
- uses: goreleaser/goreleaser-action@v5
25+
- uses: goreleaser/goreleaser-action@v6
2626
with:
27-
version: latest
27+
version: '~> v2'
2828
args: release --clean
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)