Skip to content

Commit aff2d15

Browse files
authored
Complete project migration to LXC org (#59)
* Add Code of conduct * Require the standard DCO line on all commits * Add @lxc/cluster-api-incus as codeowners --------- Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
1 parent b5b0888 commit aff2d15

File tree

3 files changed

+126
-1
lines changed

3 files changed

+126
-1
lines changed

.github/workflows/commits.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Commits
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
dco-check:
11+
permissions:
12+
pull-requests: read # for tim-actions/get-pr-commits to get list of commits from the PR
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Get PR Commits
16+
id: 'get-pr-commits'
17+
uses: tim-actions/get-pr-commits@master
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Check that all commits are signed-off
22+
uses: tim-actions/dco@master
23+
with:
24+
commits: ${{ steps.get-pr-commits.outputs.commits }}
25+
26+
target-branch:
27+
permissions:
28+
contents: none
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Check branch target
32+
env:
33+
TARGET: ${{ github.event.pull_request.base.ref }}
34+
TITLE: ${{ github.event.pull_request.title }}
35+
run: |
36+
set -eux
37+
TARGET_FROM_PR_TITLE="$(echo "${TITLE}" | sed -n 's/.*(\(stable-[0-9]\.[0-9]\))$/\1/p')"
38+
if [ -z "${TARGET_FROM_PR_TITLE}" ]; then
39+
TARGET_FROM_PR_TITLE="main"
40+
else
41+
echo "Branch target overridden from PR title"
42+
fi
43+
[ "${TARGET}" = "${TARGET_FROM_PR_TITLE}" ] && exit 0
44+
45+
echo "Invalid branch target: ${TARGET} != ${TARGET_FROM_PR_TITLE}"
46+
exit 1

CODEOWNERS

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
* @neoaggelos
1+
# @lxc/cluster-api-incus owns everything
2+
* @lxc/cluster-api-incus
3+
4+
# @neoaggelos owns API
5+
api/* @neoaggelos
6+
7+
# @neoaggelos owns docs
8+
docs/* @neoaggelos

CODE_OF_CONDUCT.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 advances
26+
* Trolling, insulting/derogatory comments, and personal or political attacks
27+
* Public or private harassment
28+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
29+
* Other conduct which could reasonably be considered inappropriate in a professional setting
30+
31+
## Our Responsibilities
32+
33+
Project maintainers are responsible for clarifying the standards of acceptable
34+
behavior and are expected to take appropriate and fair corrective action in
35+
response to any instances of unacceptable behavior.
36+
37+
Project maintainers have the right and responsibility to remove, edit, or
38+
reject comments, commits, code, wiki edits, issues, and other contributions
39+
that are not aligned to this Code of Conduct, or to ban temporarily or
40+
permanently any contributor for other behaviors that they deem inappropriate,
41+
threatening, offensive, or harmful.
42+
43+
## Scope
44+
45+
This Code of Conduct applies both within project spaces and in public spaces
46+
when an individual is representing the project or its community. Examples of
47+
representing a project or community include using an official project e-mail
48+
address, posting via an official social media account, or acting as an appointed
49+
representative at an online or offline event. Representation of a project may be
50+
further defined and clarified by project maintainers.
51+
52+
## Enforcement
53+
54+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
55+
reported by contacting the project team at coc@linuxcontainers.org. All
56+
complaints will be reviewed and investigated and will result in a response that
57+
is deemed necessary and appropriate to the circumstances. The project team is
58+
obligated to maintain confidentiality with regard to the reporter of an incident.
59+
Further details of specific enforcement policies may be posted separately.
60+
61+
Project maintainers who do not follow or enforce the Code of Conduct in good
62+
faith may face temporary or permanent repercussions as determined by other
63+
members of the project's leadership.
64+
65+
## Attribution
66+
67+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
68+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
69+
70+
[homepage]: https://www.contributor-covenant.org
71+
72+
For answers to common questions about this code of conduct, see <https://www.contributor-covenant.org/faq>

0 commit comments

Comments
 (0)