Skip to content

Commit

Permalink
[RFC] Add github template (obsidianmd#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcain authored Mar 11, 2021
1 parent 4a0789c commit e375ed6
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["plugin:json/recommended"]
}
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [ ] I am submitting a new Community Theme

## Repo URL

<!--- Paste a link to your repo here for easy access -->

# [ ] I am submitting a new Community Plugin

## Release Checklist

<!--- Confirm that you have done the following before submitting your plugin -->

- [ ] I have tested this on Windows, macOS, and Linux _(if applicable)_
- [ ] Github release contains all required files
- [ ] `main.js`
- [ ] `manifest.json`
- `styles.css` _(optional)_
- [ ] Github release name matches the exact version number specified in your manifest.json (_**Note:** Use the exact version number, don't include a prefix `v`_)
- [ ] The `id` in my `manifest.json` matches the `id` in the `community-plugins.json` file.
- [ ] README clearly describes the plugins purpose and provides clear usage instructions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
push:
branches:
- "master"
pull_request:
branches:
- "master"

jobs:
lint-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Lint
run: yarn run lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "obsidian-community-releases",
"scripts": {
"lint": "eslint . --ext .json"
},
"devDependencies": {
"eslint": "7.20.0",
"eslint-plugin-json": "2.1.2"
}
}

0 comments on commit e375ed6

Please sign in to comment.