From 61d2d3c52216dc9253ae0fe6b0e442b95b01e6ee Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Sun, 28 Nov 2021 21:24:16 +0100 Subject: [PATCH 1/4] Adding autolabeler #4 --- .github/labeler.yml | 104 ++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 12 ++++ 2 files changed, 116 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..cff2935fe --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,104 @@ +"common-tools": + - packages/base-cli/** + - plugins/postcss-base-plugin/** + - rollup/** + +"packages/postcss-plugins-values-parser": + - packages/postcss-plugins-values-parser/** + +"plugin-packs/postcss-preset-env": + - plugin-packs/postcss-preset-env/** + +"plugins/css-all-property": + - plugins/css-all-property/** + +"plugins/css-blank-pseudo": + - plugins/css-blank-pseudo/** + +"plugins/css-has-pseudo": + - plugins/css-has-pseudo/** + +"plugins/css-prefers-color-scheme": + - plugins/css-prefers-color-scheme/** + +"plugins/postcss-attribute-case-insensitive": + - plugins/postcss-attribute-case-insensitive/** + +"plugins/postcss-color-functional-notation": + - plugins/postcss-color-functional-notation/** + +"plugins/postcss-color-hex-alpha": + - plugins/postcss-color-hex-alpha/** + +"plugins/postcss-color-mod-function": + - plugins/postcss-color-mod-function/** + +"plugins/postcss-custom-media-queries": + - plugins/postcss-custom-media-queries/** + +"plugins/postcss-custom-properties": + - plugins/postcss-custom-properties/** + +"plugins/postcss-custom-selectors": + - plugins/postcss-custom-selectors/** + +"plugins/postcss-dir-pseudo-class": + - plugins/postcss-dir-pseudo-class/** + +"plugins/postcss-double-position-gradients": + - plugins/postcss-double-position-gradients/** + +"plugins/postcss-env-function": + - plugins/postcss-env-function/** + +"plugins/postcss-focus-visible": + - plugins/postcss-focus-visible/** + +"plugins/postcss-focus-within": + - plugins/postcss-focus-within/** + +"plugins/postcss-font-variant": + - plugins/postcss-font-variant/** + +"plugins/postcss-gap-properties": + - plugins/postcss-gap-properties/** + +"plugins/postcss-image-set-function": + - plugins/postcss-image-set-function/** + +"plugins/postcss-lab-function": + - plugins/postcss-lab-function/** + +"plugins/postcss-logical": + - plugins/postcss-logical/** + +"plugins/postcss-media-query-ranges": + - plugins/postcss-media-query-ranges/** + +"plugins/postcss-nesting": + - plugins/postcss-nesting/** + +"plugins/postcss-overflow-shorthand": + - plugins/postcss-overflow-shorthand/** + +"plugins/postcss-page-break": + - plugins/postcss-page-break/** + +"plugins/postcss-place": + - plugins/postcss-place/** + +"plugins/postcss-pseudo-class-any-link": + - plugins/postcss-pseudo-class-any-link/** + +"plugins/postcss-rebeccapurple": + - plugins/postcss-rebeccapurple/** + +"plugins/postcss-replace-overflow-wrap": + - plugins/postcss-replace-overflow-wrap/** + +"plugins/postcss-selector-not": + - plugins/postcss-selector-not/** + +"plugins/postcss-system-ui-font-family": + - plugins/postcss-system-ui-font-family/** + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..46b7957aa --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: Pull Request Labeler +on: + - pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + From f60776c8ef1fc75b8bcf6bc2592cd05b0ae2ad87 Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Sun, 28 Nov 2021 21:36:14 +0100 Subject: [PATCH 2/4] Adding CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..2955a8a27 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to make participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies within all project spaces, and it also applies when +an individual is representing the project or its community in public spaces. +Examples of representing a project or community include using an official +project e-mail address, posting via an official social media account, or acting +as an appointed representative at an online or offline event. Representation of +a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting Vladimir Kharlampidi . All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq From 3fcc1db49eb4128b9652bc37d4314e64a2627ebf Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Sun, 28 Nov 2021 22:00:02 +0100 Subject: [PATCH 3/4] Templates #18 --- .github/ISSUE_TEMPLATE/blank-issue.yml | 2 + .github/ISSUE_TEMPLATE/feature-request.yml | 45 +++++++++ .github/ISSUE_TEMPLATE/plugin-issue.yml | 111 +++++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/blank-issue.yml create mode 100644 .github/ISSUE_TEMPLATE/feature-request.yml create mode 100644 .github/ISSUE_TEMPLATE/plugin-issue.yml diff --git a/.github/ISSUE_TEMPLATE/blank-issue.yml b/.github/ISSUE_TEMPLATE/blank-issue.yml new file mode 100644 index 000000000..f78305c3a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/blank-issue.yml @@ -0,0 +1,2 @@ +name: '📝 Other issue' +description: Create an issue diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 000000000..ddd55b607 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,45 @@ +name: "🚀 New feature proposal" +description: Propose a new feature to be added to postcss-preset-env +labels: ['feature request'] +body: + - type: markdown + attributes: + value: | + Thanks for your interest in the project and taking the time to fill out this feature report! + - type: textarea + id: feature-description + attributes: + label: Clear and concise description of the feature + description: As a developer using postcss-preset-env I want [goal / wish] so that [benefit] + validations: + required: true + - type: textarea + id: suggested-solution + attributes: + label: Suggested solution + description: 'In plugin/package [xy] we could provide following implementation...' + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Any other context or screenshots about the feature request here. + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://github.com/csstools/postcss-plugins/blob/master/CODE_OF_CONDUCT.md) + required: true + - label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate. + required: true + - type: checkboxes + id: pr + attributes: + label: Would you like to open a PR for this feature? + description: Before starting to work on PR it is recommended to get maintainers approval. + options: + - label: I'm willing to open a PR + required: false diff --git a/.github/ISSUE_TEMPLATE/plugin-issue.yml b/.github/ISSUE_TEMPLATE/plugin-issue.yml new file mode 100644 index 000000000..e05f39625 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/plugin-issue.yml @@ -0,0 +1,111 @@ +name: '🐞 Bug report' +description: Create a report for one of the plugins or PostCSS Preset Env with guided questions +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this bug report! + - type: input + id: reproduction + attributes: + label: Reproduction link + 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. + placeholder: 'https://runkit.com/..' + validations: + required: true + - type: textarea + id: descr + attributes: + label: Bug description + description: A clear and concise description of what the bug is + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: Description of what you're experiencing + validations: + required: false + - type: textarea + id: actual + attributes: + label: Actual Behavior + description: Description of what you expected to happen. + validations: + required: false + - type: dropdown + id: plugin + attributes: + label: What plugin are you experiencing this issue on? + multiple: true + options: + - PostCSS Preset Env + - CSS All Property + - CSS Blank Pseudo + - CSS Has Pseudo + - CSS Prefers Color Scheme + - PostCSS Attribute Case Insensitive + - PostCSS Color Functional Notation + - PostCSS Color Hex Alpha + - PostCSS Color Mod Function + - PostCSS Custom Media Queries + - PostCSS Custom Properties + - PostCSS Custom Selectors + - PostCSS Dir Pseudo Class + - PostCSS Double Position Gradients + - PostCSS Env Function + - PostCSS Focus Visible + - PostCSS Focus Within + - PostCSS Font Variant + - PostCSS Gap Properties + - PostCSS Image Set Function + - PostCSS Lab Function + - PostCSS Logical + - PostCSS Media Query Ranges + - PostCSS Nesting + - PostCSS Overflow Shorthand + - PostCSS Page Break + - PostCSS Place + - PostCSS Pseudo Class Any Link + - PostCSS Rebeccapurple + - PostCSS Replace Overflow Wrap + - PostCSS Selector Not + - PostCSS System Ui Font Family + - PostCSS Plugins Values Parser + - Unsure + - type: input + id: version + attributes: + label: Plugin version + description: Exact release version or commit hash + placeholder: e.g 7.0.0 + validations: + required: true + - type: input + id: node + attributes: + label: Node Version + description: Version of Node where you're experiencing this issue on + placeholder: eg 12.0.0 + validations: + required: true + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://github.com/csstools/postcss-plugins/blob/master/CODE_OF_CONDUCT.md) + required: true + - label: Can you reproduce it with `npx minimal-example.css`? + required: false + - label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate. + required: true + - type: checkboxes + id: pr + attributes: + label: Would you like to open a PR for this bug? + description: Before starting to work on PR it is recommended to get maintainers approval + options: + - label: I'm willing to open a PR + required: false From 282f67fb7b45dda70ceac25a115b3b736da139dd Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Sun, 28 Nov 2021 22:08:10 +0100 Subject: [PATCH 4/4] Adding auto labeler #4 --- .github/workflows/issue.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/issue.yml diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml new file mode 100644 index 000000000..0b4853e86 --- /dev/null +++ b/.github/workflows/issue.yml @@ -0,0 +1,12 @@ +name: Issue Auto Labeler +on: + issues: + types: ['opened'] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: Renato66/auto-label@v2 # or v2.1.5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + labels-not-allowed: '["bug","common-tools","duplicate","good first issue","help wanted","invalid","wontfix"]'