Skip to content

Commit 791978b

Browse files
committed
feat: initial commit
0 parents  commit 791978b

37 files changed

+21191
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
max_line_length = 120
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict'
2+
3+
const { overrides } = require('@netlify/eslint-config-node/.eslintrc_esm.cjs')
4+
5+
module.exports = {
6+
extends: '@netlify/eslint-config-node/.eslintrc_esm.cjs',
7+
overrides: [...overrides],
8+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/.kodiak.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version = 1
2+
3+
[merge.automerge_dependencies]
4+
versions = ["minor", "patch"]
5+
usernames = ["renovate"]
6+
7+
[approve]
8+
auto_approve_usernames = ["renovate"]

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/CODEOWNERS @netlify/netlify-dev
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: 'Please replace with a clear and descriptive title'
5+
labels: 'type: bug'
6+
assignees: ''
7+
---
8+
9+
Thanks for reporting this bug!
10+
11+
Please search other issues to make sure this bug has not already been reported.
12+
13+
Then fill in the sections below.
14+
15+
**Describe the bug**
16+
17+
A clear and concise description of what the bug is.
18+
19+
**Configuration**
20+
21+
Please enter the following command in a terminal and copy/paste its output:
22+
23+
```bash
24+
npx envinfo --system --binaries
25+
```
26+
27+
**Pull requests**
28+
29+
Pull requests are welcome! If you would like to help us fix this bug, please check our
30+
[contributions guidelines](../blob/main/CONTRIBUTING.md).
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: 'Please replace with a clear and descriptive title'
5+
labels: 'type: feature'
6+
assignees: ''
7+
---
8+
9+
<!--
10+
Thanks for suggesting a new feature!
11+
12+
Please fill in the sections below.
13+
-->
14+
15+
**Which problem is this feature request solving?**
16+
17+
<!--
18+
Example: I'm always frustrated when [...]
19+
-->
20+
21+
**Describe the solution you'd like**
22+
23+
<!--
24+
Example: This could be fixed by [...]
25+
-->
26+
27+
**Describe alternatives you've considered**
28+
29+
<!--
30+
Example: Another solution would be [...]
31+
-->
32+
33+
**Can you submit a pull request?**
34+
35+
Yes/No.
36+
37+
<!--
38+
Pull requests are welcome! If you would like to help us add this feature, please check our
39+
[contributions guidelines](../blob/main/CONTRIBUTING.md).
40+
-->

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎉 Thanks for submitting a pull request! 🎉
2+
3+
#### Summary
4+
5+
Fixes #<replace_with_issue_number>
6+
7+
<!--
8+
Explain the **motivation** for making this change. What existing problem does the pull request solve and how?
9+
-->
10+
11+
---
12+
13+
For us to review and ship your PR efficiently, please perform the following steps:
14+
15+
- [ ] Open a [bug/issue](https://github.com/netlify/file-sync-action/issues/new/choose) before writing your code 🧑‍💻. This
16+
ensures we can discuss the changes and get feedback from everyone that should be involved. If you\`re fixing a
17+
typo or something that\`s on fire 🔥 (e.g. incident related), you can skip this step.
18+
- [ ] Read the [contribution guidelines](../CONTRIBUTING.md) 📖. This ensures your code follows our style guide and
19+
passes our tests.
20+
- [ ] Update or add tests (if any source code was changed or added) 🧪
21+
- [ ] Update or add documentation (if features were changed or added) 📝
22+
- [ ] Make sure the status checks below are successful ✅
23+
24+
**A picture of a cute animal (not mandatory, but encouraged)**

.github/workflows/fossa.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Dependency License Scanning
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- chore/fossa-workflow
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
fossa:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Download fossa cli
20+
run: |-
21+
mkdir -p $HOME/.local/bin
22+
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b $HOME/.local/bin
23+
echo "$HOME/.local/bin" >> $GITHUB_PATH
24+
25+
- name: Fossa init
26+
run: fossa init
27+
- name: Set env
28+
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
29+
- name: Configuration
30+
run: |-
31+
sed -i "${line_number}s|.*| project: [email protected]:${GITHUB_REPOSITORY}.git|" .fossa.yml
32+
cat .fossa.yml
33+
- name: Upload dependencies
34+
run: fossa analyze --debug
35+
env:
36+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

.github/workflows/labeler.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Label PR
2+
on:
3+
pull_request:
4+
types: [opened, edited]
5+
6+
jobs:
7+
label-pr:
8+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
pr:
13+
[
14+
{ prefix: 'fix', type: 'bug' },
15+
{ prefix: 'chore', type: 'chore' },
16+
{ prefix: 'test', type: 'chore' },
17+
{ prefix: 'ci', type: 'chore' },
18+
{ prefix: 'feat', type: 'feature' },
19+
{ prefix: 'security', type: 'security' },
20+
]
21+
steps:
22+
- uses: netlify/[email protected]
23+
if: startsWith(github.event.pull_request.title, matrix.pr.prefix)
24+
with:
25+
token: '${{ secrets.GITHUB_TOKEN }}'
26+
label: 'type: ${{ matrix.pr.type }}'

0 commit comments

Comments
 (0)