Skip to content

Commit 2e3282e

Browse files
authored
Merge pull request #5 from foomo/feature/go-1.24.1
feat: go 1.24.1
2 parents 81cc7d1 + ec269dd commit 2e3282e

Some content is hidden

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

60 files changed

+1072
-958
lines changed

.editorconfig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# EditorConfig is awesome: https://EditorConfig.org
2-
3-
# top-most EditorConfig file
41
root = true
52

63
[*]
74
charset = utf-8
5+
end_of_line = lf
86
indent_size = 2
97
indent_style = tab
108
insert_final_newline = true
119
trim_trailing_whitespace = true
12-
end_of_line = lf
1310

14-
[*.{yaml,yml,md,hcl}]
11+
[*.{yaml,yml,md,mdx}]
1512
indent_style = space

.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+
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 Issues
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/webgrapple/issues/new/choose
45+
[new-sec-issue]: https://github.com/foomo/webgrapple/security/advisories/new

.github/dependabot.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
version: 2
4+
5+
updates:
6+
- package-ecosystem: 'github-actions'
7+
open-pull-requests-limit: 1
8+
directory: '/'
9+
schedule:
10+
day: 'sunday'
11+
interval: 'weekly'
12+
groups:
13+
github-actions:
14+
patterns: ['*']
15+
16+
- package-ecosystem: 'gomod'
17+
open-pull-requests-limit: 1
18+
directory: '/'
19+
schedule:
20+
day: 'sunday'
21+
interval: 'weekly'
22+
groups:
23+
gomod-security:
24+
applies-to: security-updates
25+
update-types: ['minor', 'patch']
26+
patterns: ['*']
27+
gomod-update:
28+
applies-to: version-updates
29+
update-types: ['minor', 'patch']
30+
patterns: ['*']
31+
ignore:
32+
- dependency-name: "*"
33+
update-types: ["version-update:semver-major"]

.github/workflows/pr.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: checks
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
merge_group:
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-go@v5
21+
with:
22+
go-version-file: 'go.mod'
23+
24+
- uses: gotesttools/gotestfmt-action@v2
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- uses: golangci/golangci-lint-action@v7
29+
with:
30+
version: latest
31+
32+
- name: Run tests
33+
run: make test
34+
env:
35+
SHELL: "/bin/zsh"
36+
37+
- uses: coverallsapp/github-action@v2
38+
with:
39+
file: coverage.out
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: goreleaser
1+
name: Release Tag
22

33
on:
44
push:
@@ -14,16 +14,16 @@ jobs:
1414
goreleaser:
1515
runs-on: ubuntu-latest
1616
steps:
17-
1817
- uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 0
18+
19+
- name: Unshallow
20+
run: git fetch --prune --unshallow
2121

2222
- uses: actions/setup-go@v4
2323
with:
2424
go-version-file: 'go.mod'
2525

26-
- uses: goreleaser/goreleaser-action@v5
26+
- uses: goreleaser/goreleaser-action@v6
2727
with:
2828
version: latest
2929
args: release --clean

0 commit comments

Comments
 (0)