mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
Merge pull request #508 from mdn/add-template-docs
Add shared workflows
This commit is contained in:
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
36
.github/ISSUE_TEMPLATE/bug.yml
vendored
Normal file
36
.github/ISSUE_TEMPLATE/bug.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: "Issue report"
|
||||
description: Report an unexpected problem or unintended behavior.
|
||||
labels: ["needs triage"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
### Before you start
|
||||
|
||||
**Want to fix the problem yourself?** This project is open source and we welcome fixes and improvements from the community!
|
||||
|
||||
↩ Check the project [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) guide to see how to get started.
|
||||
|
||||
---
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: What information was incorrect, unhelpful, or incomplete?
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: What did you expect to see?
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: references
|
||||
attributes:
|
||||
label: Do you have any supporting links, references, or citations?
|
||||
description: Link to information that helps us confirm your issue.
|
||||
- type: textarea
|
||||
id: more-info
|
||||
attributes:
|
||||
label: Do you have anything more you want to share?
|
||||
description: For example, steps to reproduce, screenshots, screen recordings, or sample code.
|
||||
14
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
14
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
blank_issues_enabled: true
|
||||
contact_links:
|
||||
- name: Content or feature request
|
||||
url: https://github.com/mdn/mdn/issues/new/choose
|
||||
about: Propose new content for MDN Web Docs or submit a feature request using this link.
|
||||
- name: MDN GitHub Discussions
|
||||
url: https://github.com/orgs/mdn/discussions
|
||||
about: Does the issue involve a lot of changes, or is it hard to split it into actionable tasks? Start a discussion before opening an issue.
|
||||
- name: MDN Web Docs on Discourse
|
||||
url: https://discourse.mozilla.org/c/mdn/learn/250
|
||||
about: Need help with assessments on MDN Web Docs? We have a support community for this purpose on Discourse.
|
||||
- name: Help with code
|
||||
url: https://stackoverflow.com/
|
||||
about: If you are stuck and need help with code, StackOverflow is a great resource.
|
||||
19
.github/PULL_REQUEST_TEMPLATE
vendored
Normal file
19
.github/PULL_REQUEST_TEMPLATE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- 🙌 Thanks for contributing! Adding details below will help us to merge your PR faster. -->
|
||||
|
||||
### Description
|
||||
|
||||
<!-- ✍️ Summarize your changes in one or two sentences -->
|
||||
|
||||
### Motivation
|
||||
|
||||
<!-- ❓ Why are you making these changes and how do they help? -->
|
||||
|
||||
### Additional details
|
||||
|
||||
<!-- 🔗 Link to documentation, bug trackers, source control, or other places providing more context -->
|
||||
|
||||
### Related issues and pull requests
|
||||
|
||||
<!-- 🔨 If this fully resolves a GitHub issue, use "Fixes #123" -->
|
||||
<!-- 👉 Highlight related pull requests using "Relates to #123" -->
|
||||
<!-- ❗ If another pull request should be merged first, use "**Depends on:** #123" -->
|
||||
42
.github/workflows/codeql.yml
vendored
Normal file
42
.github/workflows/codeql.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: ["main"]
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
# Add the language(s) you want to analyze here as an array of strings
|
||||
# for example: ['javascript'] or ['python', 'javascript']
|
||||
language: ["javascript"]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
13
.github/workflows/idle.yml
vendored
Normal file
13
.github/workflows/idle.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# This workflow is hosted at: https://github.com/mdn/workflows/blob/main/.github/workflows/idle.yml
|
||||
# Docs for this workflow: https://github.com/mdn/workflows/blob/main/README.md#idle
|
||||
name: "Label idle issues"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
|
||||
jobs:
|
||||
mark-as-idle:
|
||||
uses: mdn/workflows/.github/workflows/idle.yml@main
|
||||
with:
|
||||
target-repo: "mdn/webextensions-examples"
|
||||
35
.github/workflows/welcome-bot.yml
vendored
Normal file
35
.github/workflows/welcome-bot.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# This workflow is hosted at: https://github.com/mdn/workflows/blob/main/.github/workflows/allo-allo.yml
|
||||
# Docs for this workflow: https://github.com/mdn/workflows/blob/main/README.md#allo-allo
|
||||
name: "AlloAllo"
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
pull_request_target:
|
||||
branches:
|
||||
- main
|
||||
types:
|
||||
- opened
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
allo-allo:
|
||||
uses: mdn/workflows/.github/workflows/allo-allo.yml@main
|
||||
with:
|
||||
target-repo: "mdn/webextensions-examples"
|
||||
issue-welcome: >
|
||||
It looks like this is your first issue. Welcome! 👋
|
||||
One of the project maintainers will be with you as soon as possible. We
|
||||
appreciate your patience. To safeguard the health of the project, please
|
||||
take a moment to read our [code of conduct](../blob/main/CODE_OF_CONDUCT.md).
|
||||
pr-welcome: >
|
||||
It looks like this is your first pull request. 🎉
|
||||
Thank you for your contribution! One of the project maintainers will triage
|
||||
and assign the pull request for review. We appreciate your patience. To
|
||||
safeguard the health of the project, please take a moment to read our
|
||||
[code of conduct](../blob/main/CODE_OF_CONDUCT.md).
|
||||
pr-merged: >
|
||||
Congratulations on your first merged pull request. 🎉 Thank you for your contribution!
|
||||
Did you know we have a [project board](https://github.com/orgs/mdn/projects/25) with high-impact contribution opportunities?
|
||||
We look forward to your next contribution.
|
||||
1
.prettierrc.json
Normal file
1
.prettierrc.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -1,8 +1,8 @@
|
||||
# Community Participation Guidelines
|
||||
# Code of conduct
|
||||
|
||||
This repository is governed by Mozilla's code of conduct and etiquette guidelines.
|
||||
For more details, please read the
|
||||
[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/).
|
||||
This repository is governed by Mozilla's code of conduct and etiquette guidelines.
|
||||
For more details, read [Mozilla's Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/).
|
||||
|
||||
## How to Report
|
||||
For more information on how to report violations of the Community Participation Guidelines, please read our [How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/) page.
|
||||
## Reporting violations
|
||||
|
||||
For more information on how to report violations of the Community Participation Guidelines, read the [How to report](https://www.mozilla.org/about/governance/policies/participation/reporting/) page.
|
||||
|
||||
Reference in New Issue
Block a user