Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 24b51a2

Browse files
committed
Update github actions
1 parent ae929b5 commit 24b51a2

10 files changed

+207
-70
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
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/ISSUE_TEMPLATE.md

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
- [ ] Other, please describe:
1111

1212
**Description:**
13+
1314
<!--- Use this section to describe your changes. Why is this change required? What problem does it solve? If your test fixes a specific issue, don't forget to reference the issue number. If your PR is still a work in progress, that's totally fine – just include [WIP] within the title. -->
1415

1516
**Checklist:**
17+
1618
<!--- Before you submit the PR, go over this checklist and make sure you can tick off all the boxes. [] -> [x] -->
1719

1820
- [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
feature: ["feature/*", "feat/*", "enhancement/*"]
2+
bug: ["bugfix/*", "fix/*"]
3+
maintenance: ["maintenance/*", "chore/*", "refactoring/*", "test/*", "style/*"]
4+
documentation: ["documentation/*", "docs/*"]
5+
security: ["security/*"]

.github/pr-labeler-file-path.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Add documentation label to any change in documentation related files
2+
documentation:
3+
- "docs/*"
4+
- "docs/**/*"
5+
- "README.md"
6+
- "**/README.md"
7+
- "CONTRIBUTING.md"
8+
9+
maintenance:
10+
- ".vscode/*"
11+
- ".vscode/**/*"
12+
- ".github/*"
13+
- ".github/**/*"
14+
- ".reuse/*"
15+
- "LICENSES/*"
16+
- ".editorconfig"
17+
- ".gitignore"
18+
- "**/.gitignore"
19+
- "build.py"
20+
- "**/build.py"

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: "$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "💥 Breaking Changes"
5+
labels:
6+
- "breaking"
7+
- title: "🎁 Features & Improvements"
8+
labels:
9+
- "feature"
10+
- "enhancement"
11+
- title: "🚨 Bug Fixes"
12+
labels:
13+
- "bug"
14+
- title: "📝 Documentation"
15+
labels:
16+
- "documentation"
17+
- title: "👷 Maintenance & Refactoring"
18+
labels:
19+
- "maintenance"
20+
- "refactoring"
21+
- title: "🔒 Security"
22+
labels:
23+
- "security"
24+
- title: "⬆ Dependencies"
25+
labels:
26+
- "dependencies"
27+
#- title: "🔥 Removed"
28+
#- title: "⚡️ Performance"
29+
#- title: "✅ Tests"
30+
#- title: "💡 New Features"
31+
#- title: "🧰 Maintenance"
32+
#- title: "⚠️ Deprecations"
33+
#- title: "✨ New Features"
34+
exclude-labels:
35+
- "skip changelog"
36+
change-template: "- $TITLE (#$NUMBER) by @$AUTHOR"
37+
replacers:
38+
- search: '/(?:and)?(,)?(\s)*@github-actions(?:\[bot\])?,?/g'
39+
replace: ""
40+
template: |
41+
[![PyPi Release](https://img.shields.io/pypi/v/lazycluster/$RESOLVED_VERSION?color=blue)](https://pypi.org/project/universal-build/$RESOLVED_VERSION)
42+
$CHANGES
43+
## 👥 Contributors
44+
Thanks to $CONTRIBUTORS for the contributions.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: check-commit-message-style
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
- synchronize
10+
push:
11+
12+
jobs:
13+
check-commit-message-style:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: check-commit-message-style
17+
uses: mristin/[email protected]
18+
with:
19+
allow-one-liners: "true"
20+
additional-verbs: "cleanup, finalize, build, ci, docs, feat, fix, perf, refactor, style, test"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: close-stale-issues
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "30 1 * * *"
7+
8+
jobs:
9+
close-stale-issues:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v3
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: "This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days"
16+
stale-pr-message: "This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days"
17+
days-before-stale: 90
18+
days-before-close: 14
19+
stale-pr-label: stale

.github/workflows/lint-project.yml

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

.github/workflows/pr-labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pr-labeler
2+
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
pr-labeler:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/labeler@main
11+
with:
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13+
configuration-path: .github/pr-labeler-file-path.yml
14+
# workaround for problem: https://github.com/wesnoth/wesnoth/commit/958c82d0867568057caaf58356502ec8c87d8366
15+
sync-labels: ""
16+
- uses: TimonVS/pr-labeler-action@v3
17+
with:
18+
configuration-path: .github/pr-labeler-branch-name.yml
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
# Evaluate: https://github.com/srvaroa/labeler

0 commit comments

Comments
 (0)