Skip to content

Commit 60dcc94

Browse files
committed
Initial commit
0 parents  commit 60dcc94

18 files changed

+787
-0
lines changed

.github/CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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, 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 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 [email protected]. 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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Contributing

.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: jimschubert
2+
patreon: jimschubert

.github/ISSUE_TEMPLATE/bug_report.md

+27
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: "[bug] DESCRIPTION"
5+
labels: bug
6+
assignees: jimschubert
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is, including version(s) affected.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1.
16+
2.
17+
3.
18+
4.
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.
+20
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: enhancement
6+
assignees: jimschubert
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/ISSUE_TEMPLATE/question.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Question
3+
about: Open an issue to ask a question
4+
title: "[Question] …"
5+
labels: question
6+
assignees: jimschubert
7+
8+
---
9+
10+
**What is your question?**
11+
Enter one or two sentences at most here. Provide details later.
12+
13+
**Where did you look before asking here?**
14+
This helps to understand where documentation may be lacking.
15+
16+
**Additional context**
17+
Add any other context about the problem here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Enter details of the change here. Include additional tests that have been done, reference to the issue for tracking, etc. -->
2+
3+
<!-- Please check the completed items below -->
4+
### PR checklist
5+
6+
- [ ] Read the [contribution guidelines](https://github.com/jimschubert/labeler-action/blob/master/.github/CONTRIBUTING.md).
7+
- [ ] Ensure your code builds and passes local testing efforts
8+
- [ ] Link to any related issue(s)
9+
- [ ] Comment on any outstanding items or link to issues for tracking

.github/labeler.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# auto-labeler "full" schema
2+
3+
# enable auto-labeler on issues, prs, or both.
4+
enable:
5+
issues: true
6+
prs: true
7+
# comments object allows you to specify a different message for issues and prs
8+
9+
comments:
10+
issues: |
11+
Thanks for opening this issue!
12+
I have applied any labels matching special text in your title and description.
13+
14+
Please review the labels and make any necessary changes.
15+
prs: |
16+
Thanks for the contribution!
17+
I have applied any labels matching special text in your title and description.
18+
19+
Please review the labels and make any necessary changes.
20+
21+
# Labels is an object where:
22+
# - keys are labels
23+
# - values are objects of { include: [ pattern ], exclude: [ pattern ] }
24+
# - pattern must be a valid regex, and is applied globally to
25+
# title + description of issues and/or prs (see enabled config above)
26+
# - 'include' patterns will associate a label if any of these patterns match
27+
# - 'exclude' patterns will ignore this label if any of these patterns match
28+
labels:
29+
'bug':
30+
include:
31+
- '\bbug[s]?\b'
32+
exclude: []
33+
'help wanted':
34+
include:
35+
- '\bhelp( me)?\b'
36+
exclude:
37+
- '\b\[test(ing)?\]\b'
38+
'enhancement':
39+
include:
40+
- '\bfeat\b'
41+
exclude: []

.github/workflows/community.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2020 Jim Schubert
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Community
16+
on:
17+
issues:
18+
types: [opened, edited, milestoned]
19+
pull_request:
20+
types: [opened]
21+
22+
jobs:
23+
24+
labeler:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Check Labels
29+
id: labeler
30+
# uses: jimschubert/labeler-action@master
31+
# uses: docker://jimschubert/test-labeler:action-0.0.0
32+
uses: ./
33+
with:
34+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Created by https://www.gitignore.io/api/go
3+
# Edit at https://www.gitignore.io/?templates=go
4+
5+
### Go ###
6+
# Binaries for programs and plugins
7+
*.exe
8+
*.exe~
9+
*.dll
10+
*.so
11+
*.dylib
12+
13+
# Test binary, built with `go test -c`
14+
*.test
15+
16+
# Output of the go coverage tool, specifically when used with LiteIDE
17+
*.out
18+
19+
# Dependency directories (remove the comment below to include it)
20+
# vendor/
21+
22+
### Go Patch ###
23+
/vendor/
24+
/Godeps/
25+
26+
# End of https://www.gitignore.io/api/go
27+
n

AUTHORS

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This is the list of authors for copyright purposes.
2+
#
3+
# This does not necessarily list everyone who has contributed code, since in
4+
# some cases, their employer may be the copyright holder. To see the full list
5+
# of contributors, see the revision history in source control.
6+
7+
Jim Schubert

Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM golang:1.14.1-alpine as builder
2+
ENV GOOS=linux \
3+
GOARCH=386 \
4+
CGO_ENABLED=0
5+
6+
#RUN apk --no-cache add gcc g++ make ca-certificates && apk add git
7+
8+
WORKDIR /go/src/app
9+
ADD . /go/src/app
10+
11+
RUN go mod download && go build -o /go/bin/app
12+
13+
FROM gcr.io/distroless/base-debian10
14+
COPY --from=builder /go/bin/app /
15+
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)