Skip to content

Commit bcc8468

Browse files
Issues and labelers (#47)
* Adding autolabeler #4 * Adding CODE_OF_CONDUCT.md * Templates #18 * Adding auto labeler #4
1 parent 4eb9d70 commit bcc8468

File tree

7 files changed

+362
-0
lines changed

7 files changed

+362
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: '📝 Other issue'
2+
description: Create an issue
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "🚀 New feature proposal"
2+
description: Propose a new feature to be added to postcss-preset-env
3+
labels: ['feature request']
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for your interest in the project and taking the time to fill out this feature report!
9+
- type: textarea
10+
id: feature-description
11+
attributes:
12+
label: Clear and concise description of the feature
13+
description: As a developer using postcss-preset-env I want [goal / wish] so that [benefit]
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: suggested-solution
18+
attributes:
19+
label: Suggested solution
20+
description: 'In plugin/package [xy] we could provide following implementation...'
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: additional-context
25+
attributes:
26+
label: Additional context
27+
description: Any other context or screenshots about the feature request here.
28+
- type: checkboxes
29+
id: checkboxes
30+
attributes:
31+
label: Validations
32+
description: Before submitting the issue, please make sure you do the following
33+
options:
34+
- label: Follow our [Code of Conduct](https://github.com/csstools/postcss-plugins/blob/master/CODE_OF_CONDUCT.md)
35+
required: true
36+
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
37+
required: true
38+
- type: checkboxes
39+
id: pr
40+
attributes:
41+
label: Would you like to open a PR for this feature?
42+
description: Before starting to work on PR it is recommended to get maintainers approval.
43+
options:
44+
- label: I'm willing to open a PR
45+
required: false
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
name: '🐞 Bug report'
2+
description: Create a report for one of the plugins or PostCSS Preset Env with guided questions
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: Thanks for taking the time to fill out this bug report!
7+
- type: input
8+
id: reproduction
9+
attributes:
10+
label: Reproduction link
11+
description: Please provide a link to a repo that can reproduce the problem you ran into or a minimum reproducible case for your issue. A reproduction is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem.
12+
placeholder: 'https://runkit.com/..'
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: descr
17+
attributes:
18+
label: Bug description
19+
description: A clear and concise description of what the bug is
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: expected
24+
attributes:
25+
label: Expected Behavior
26+
description: Description of what you're experiencing
27+
validations:
28+
required: false
29+
- type: textarea
30+
id: actual
31+
attributes:
32+
label: Actual Behavior
33+
description: Description of what you expected to happen.
34+
validations:
35+
required: false
36+
- type: dropdown
37+
id: plugin
38+
attributes:
39+
label: What plugin are you experiencing this issue on?
40+
multiple: true
41+
options:
42+
- PostCSS Preset Env
43+
- CSS All Property
44+
- CSS Blank Pseudo
45+
- CSS Has Pseudo
46+
- CSS Prefers Color Scheme
47+
- PostCSS Attribute Case Insensitive
48+
- PostCSS Color Functional Notation
49+
- PostCSS Color Hex Alpha
50+
- PostCSS Color Mod Function
51+
- PostCSS Custom Media Queries
52+
- PostCSS Custom Properties
53+
- PostCSS Custom Selectors
54+
- PostCSS Dir Pseudo Class
55+
- PostCSS Double Position Gradients
56+
- PostCSS Env Function
57+
- PostCSS Focus Visible
58+
- PostCSS Focus Within
59+
- PostCSS Font Variant
60+
- PostCSS Gap Properties
61+
- PostCSS Image Set Function
62+
- PostCSS Lab Function
63+
- PostCSS Logical
64+
- PostCSS Media Query Ranges
65+
- PostCSS Nesting
66+
- PostCSS Overflow Shorthand
67+
- PostCSS Page Break
68+
- PostCSS Place
69+
- PostCSS Pseudo Class Any Link
70+
- PostCSS Rebeccapurple
71+
- PostCSS Replace Overflow Wrap
72+
- PostCSS Selector Not
73+
- PostCSS System Ui Font Family
74+
- PostCSS Plugins Values Parser
75+
- Unsure
76+
- type: input
77+
id: version
78+
attributes:
79+
label: Plugin version
80+
description: Exact release version or commit hash
81+
placeholder: e.g 7.0.0
82+
validations:
83+
required: true
84+
- type: input
85+
id: node
86+
attributes:
87+
label: Node Version
88+
description: Version of Node where you're experiencing this issue on
89+
placeholder: eg 12.0.0
90+
validations:
91+
required: true
92+
- type: checkboxes
93+
id: checkboxes
94+
attributes:
95+
label: Validations
96+
description: Before submitting the issue, please make sure you do the following
97+
options:
98+
- label: Follow our [Code of Conduct](https://github.com/csstools/postcss-plugins/blob/master/CODE_OF_CONDUCT.md)
99+
required: true
100+
- label: Can you reproduce it with `npx <plugin-name> minimal-example.css`?
101+
required: false
102+
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
103+
required: true
104+
- type: checkboxes
105+
id: pr
106+
attributes:
107+
label: Would you like to open a PR for this bug?
108+
description: Before starting to work on PR it is recommended to get maintainers approval
109+
options:
110+
- label: I'm willing to open a PR
111+
required: false

.github/labeler.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
"common-tools":
2+
- packages/base-cli/**
3+
- plugins/postcss-base-plugin/**
4+
- rollup/**
5+
6+
"packages/postcss-plugins-values-parser":
7+
- packages/postcss-plugins-values-parser/**
8+
9+
"plugin-packs/postcss-preset-env":
10+
- plugin-packs/postcss-preset-env/**
11+
12+
"plugins/css-all-property":
13+
- plugins/css-all-property/**
14+
15+
"plugins/css-blank-pseudo":
16+
- plugins/css-blank-pseudo/**
17+
18+
"plugins/css-has-pseudo":
19+
- plugins/css-has-pseudo/**
20+
21+
"plugins/css-prefers-color-scheme":
22+
- plugins/css-prefers-color-scheme/**
23+
24+
"plugins/postcss-attribute-case-insensitive":
25+
- plugins/postcss-attribute-case-insensitive/**
26+
27+
"plugins/postcss-color-functional-notation":
28+
- plugins/postcss-color-functional-notation/**
29+
30+
"plugins/postcss-color-hex-alpha":
31+
- plugins/postcss-color-hex-alpha/**
32+
33+
"plugins/postcss-color-mod-function":
34+
- plugins/postcss-color-mod-function/**
35+
36+
"plugins/postcss-custom-media-queries":
37+
- plugins/postcss-custom-media-queries/**
38+
39+
"plugins/postcss-custom-properties":
40+
- plugins/postcss-custom-properties/**
41+
42+
"plugins/postcss-custom-selectors":
43+
- plugins/postcss-custom-selectors/**
44+
45+
"plugins/postcss-dir-pseudo-class":
46+
- plugins/postcss-dir-pseudo-class/**
47+
48+
"plugins/postcss-double-position-gradients":
49+
- plugins/postcss-double-position-gradients/**
50+
51+
"plugins/postcss-env-function":
52+
- plugins/postcss-env-function/**
53+
54+
"plugins/postcss-focus-visible":
55+
- plugins/postcss-focus-visible/**
56+
57+
"plugins/postcss-focus-within":
58+
- plugins/postcss-focus-within/**
59+
60+
"plugins/postcss-font-variant":
61+
- plugins/postcss-font-variant/**
62+
63+
"plugins/postcss-gap-properties":
64+
- plugins/postcss-gap-properties/**
65+
66+
"plugins/postcss-image-set-function":
67+
- plugins/postcss-image-set-function/**
68+
69+
"plugins/postcss-lab-function":
70+
- plugins/postcss-lab-function/**
71+
72+
"plugins/postcss-logical":
73+
- plugins/postcss-logical/**
74+
75+
"plugins/postcss-media-query-ranges":
76+
- plugins/postcss-media-query-ranges/**
77+
78+
"plugins/postcss-nesting":
79+
- plugins/postcss-nesting/**
80+
81+
"plugins/postcss-overflow-shorthand":
82+
- plugins/postcss-overflow-shorthand/**
83+
84+
"plugins/postcss-page-break":
85+
- plugins/postcss-page-break/**
86+
87+
"plugins/postcss-place":
88+
- plugins/postcss-place/**
89+
90+
"plugins/postcss-pseudo-class-any-link":
91+
- plugins/postcss-pseudo-class-any-link/**
92+
93+
"plugins/postcss-rebeccapurple":
94+
- plugins/postcss-rebeccapurple/**
95+
96+
"plugins/postcss-replace-overflow-wrap":
97+
- plugins/postcss-replace-overflow-wrap/**
98+
99+
"plugins/postcss-selector-not":
100+
- plugins/postcss-selector-not/**
101+
102+
"plugins/postcss-system-ui-font-family":
103+
- plugins/postcss-system-ui-font-family/**
104+

.github/workflows/issue.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Issue Auto Labeler
2+
on:
3+
issues:
4+
types: ['opened']
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: Renato66/auto-label@v2 # or v2.1.5
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
labels-not-allowed: '["bug","common-tools","duplicate","good first issue","help wanted","invalid","wontfix"]'

.github/workflows/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Pull Request Labeler
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/labeler@v3
10+
with:
11+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
12+

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 make 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 within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be 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 Vladimir Kharlampidi <nolimits4web@gmail.com>. 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

0 commit comments

Comments
 (0)