Skip to content

Commit 79db643

Browse files
init project
0 parents  commit 79db643

16 files changed

Lines changed: 630 additions & 0 deletions

File tree

.github/CODE_OF_CONDUCT.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant 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, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
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 both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
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 [INSERT EMAIL ADDRESS]. 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

.github/CONTRIBUTING.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing to otoroshi-plugin-yousign-webhook-validator
2+
3+
These guidelines apply to all projects living in the the `cloud-apim/otoroshi-plugin-yousign-webhook-validator` repository.
4+
5+
These guidelines are meant to be a living document that should be changed and adapted as needed.
6+
We encourage changes that make it easier to achieve our goals in an efficient way.
7+
8+
## Codebase
9+
10+
* [src](https://github.com/cloud-apim/otoroshi-plugin-yousign-webhook-validator/src): contains the otoroshi-plugin-yousign-webhook-validator sources and tests
11+
12+
## Workflow
13+
14+
The steps below describe how to get a patch into a main development branch (e.g. `maon`).
15+
The steps are exactly the same for everyone involved in the project (be it core team, or first time contributor).
16+
We follow the standard GitHub [fork & pull](https://help.github.com/articles/using-pull-requests/#fork--pull) approach to pull requests. Just fork the official repo, develop in a branch, and submit a PR!
17+
18+
1. To avoid duplicated effort, it might be good to check the [issue tracker](https://github.com/cloud-apim/otoroshi-plugin-yousign-webhook-validator/issues) and [existing pull requests](https://github.com/cloud-apim/otoroshi-plugin-yousign-webhook-validator/pulls) for existing work.
19+
- If there is no ticket yet, feel free to [create one](https://github.com/cloud-apim/otoroshi-plugin-yousign-webhook-validator/issues/new) to discuss the problem and the approach you want to take to solve it.
20+
1. [Fork the project](https://github.com/cloud-apim/otoroshi-plugin-yousign-webhook-validator#fork-destination-box) on GitHub. You'll need to create a feature-branch for your work on your fork, as this way you'll be able to submit a pull request against the mainline otoroshi-plugin-yousign-webhook-validator.
21+
1. Create a branch on your fork and work on the feature. For example: `git checkout -b wip-awesome-new-feature`
22+
- Please make sure to follow the general quality guidelines (specified below) when developing your patch.
23+
- Please write additional tests covering your feature and adjust existing ones if needed before submitting your pull request.
24+
1. Once your feature is complete, prepare the commit with a good commit message, for example: `Adding nice wasm feature #42` (note the reference to the ticket it aimed to resolve).
25+
1. Now it's finally time to [submit the pull request](https://help.github.com/articles/using-pull-requests)!
26+
- Please make sure to include a reference to the issue you're solving *in the comment* for the Pull Request, this will cause the PR to be linked properly with the Issue. Examples of good phrases for this are: "Resolves #1234" or "Refs #1234".
27+
1. Now both committers and interested people will review your code. This process is to ensure the code we merge is of the best possible quality, and that no silly mistakes slip through. You're expected to follow-up these comments by adding new commits to the same branch. The commit messages of those commits can be more loose, for example: `Removed debugging using printline`, as they all will be squashed into one commit before merging into the main branch.
28+
- The community and team are really nice people, so don't be afraid to ask follow up questions if you didn't understand some comment, or would like clarification on how to continue with a given feature. We're here to help, so feel free to ask and discuss any kind of questions you might have during review!
29+
1. After the review you should fix the issues as needed (pushing a new commit for new review etc.), iterating until the reviewers give their thumbs up–which is signalled usually by a comment saying `LGTM`, which means "Looks Good To Me".
30+
1. If the code change needs to be applied to other branches as well (for example a bugfix needing to be backported to a previous version), one of the team will either ask you to submit a PR with the same commit to the old branch, or do this for you.
31+
1. Once everything is said and done, your pull request gets merged. You've made it!
32+
33+
The TL;DR; of the above very precise workflow version is:
34+
35+
1. Fork otoroshi-plugin-yousign-webhook-validator
36+
2. Hack and test on your feature (on a branch)
37+
3. Document it
38+
4. Submit a PR
39+
6. Keep polishing it until received thumbs up from the core team
40+
7. Profit!
41+
42+
## External dependencies
43+
44+
All the external runtime dependencies for the project, including transitive dependencies, must have an open source license that is equal to, or compatible with, [Apache 2](http://www.apache.org/licenses/LICENSE-2.0).
45+
46+
This must be ensured by manually verifying the license for all the dependencies for the project:
47+
48+
1. Whenever a committer to the project changes a version of a dependency (including Scala) in the build file.
49+
2. Whenever a committer to the project adds a new dependency.
50+
3. Whenever a new release is cut (public or private for a customer).
51+
52+
Which licenses are compatible with Apache 2 are defined in [this doc](http://www.apache.org/legal/3party.html#category-a), where you can see that the licenses that are listed under ``Category A`` are automatically compatible with Apache 2, while the ones listed under ``Category B`` need additional action:
53+
54+
> Each license in this category requires some degree of [reciprocity](http://www.apache.org/legal/3party.html#define-reciprocal); therefore, additional action must be taken in order to minimize the chance that a user of an Apache product will create a derivative work of a reciprocally-licensed portion of an Apache product without being aware of the applicable requirements.
55+
56+
Each project must also create and maintain a list of all dependencies and their licenses, including all their transitive dependencies. This can be done either in the documentation or in the build file next to each dependency.
57+
58+
## Tests
59+
60+
Every new feature should provide corresponding tests to ensure everything is working and will still working in future releases. To run the tests, just run
61+
62+
```sh
63+
sbt test
64+
```

.github/ISSUE_TEMPLATE.md

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE.md

Whitespace-only changes.

.github/workflows/release.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: release-otoroshi-plugin-yousign-webhook-validator
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version number"
8+
9+
jobs:
10+
build-and-publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: setup jdk11
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 11
18+
- uses: coursier/cache-action@v6
19+
- uses: sbt/setup-sbt@v1.1.5
20+
- name: change version
21+
run: |
22+
echo 'ThisBuild / version := "${{ inputs.version }}"' > version.sbt
23+
- name: build-libs
24+
id: build-libs
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
sbt ';compile;package;assembly'
29+
rm ./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator_2.12-${{ inputs.version }}.jar
30+
mv ./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator-assembly_2.12-dev.jar ./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator_2.12-${{ inputs.version }}.jar
31+
- name: Generate SHA-256
32+
run: |
33+
shasum -a 256 ./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator_2.12-${{ inputs.version }}.jar | cut -d ' ' -f 1 > ./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator_2.12-${{ inputs.version }}.jar.sha256
34+
- name: Release binary and SHA-256 checksum to GitHub
35+
uses: softprops/action-gh-release@v1
36+
with:
37+
tag_name: ${{ inputs.version }}
38+
files: |
39+
./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator_2.12-${{ inputs.version }}.jar
40+
./target/scala-2.12/otoroshi-plugin-yousign-webhook-validator_2.12-${{ inputs.version }}.jar.sha256

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.bsp/
2+
target/
3+
.bsp
4+
.DS_Store
5+
.idea
6+
.metals
7+
.vscode
8+
target
9+
node_modules

0 commit comments

Comments
 (0)