Skip to content

Commit

Permalink
run prettier / eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed May 28, 2020
1 parent c907b4f commit 60b82ca
Show file tree
Hide file tree
Showing 34 changed files with 75 additions and 234 deletions.
4 changes: 2 additions & 2 deletions .github/boomper.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
updates:
- path: README.md
pattern: 'uses = "release-drafter/release-drafter@(.*)"'
- path: README.md
pattern: 'uses = "release-drafter/release-drafter@(.*)"'
26 changes: 13 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
version: 13.x
- run: yarn --frozen-lockfile --ignore-engines --ignore-optional --no-bin-links --non-interactive --silent --ignore-scripts --production=false
env:
HUSKY_SKIP_INSTALL: true
- uses: tinovyatkin/action-eslint@v1
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
check-name: eslint
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
version: 13.x
- run: yarn --frozen-lockfile --ignore-engines --ignore-optional --no-bin-links --non-interactive --silent --ignore-scripts --production=false
env:
HUSKY_SKIP_INSTALL: true
- uses: tinovyatkin/action-eslint@v1
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
check-name: eslint
16 changes: 8 additions & 8 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:
on:
issue_comment:
types: [created]
name: Automatic Rebase
Expand All @@ -8,13 +8,13 @@ jobs:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
always_job:
name: Always run job
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
version: 13.x
- name: Test
run: |
yarn install
yarn test
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
version: 13.x
- name: Test
run: |
yarn install
yarn test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config-with-yaml-exception.yml
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ language: minimal
sudo: required
services:
- docker
script: docker-compose run app npm test
script: docker-compose run app npm test
8 changes: 2 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
"args": [
"${fileBasenameNoExtension}",
"-t",
"${selectedText}"
],
},
"args": ["${fileBasenameNoExtension}", "-t", "${selectedText}"]
}
]
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ runs:
image: 'Dockerfile'
branding:
icon: edit-2
color: orange
color: orange
133 changes: 1 addition & 132 deletions app.yml
Original file line number Diff line number Diff line change
@@ -1,139 +1,8 @@
# This is a GitHub App Manifest. These settings will be used by default when
# initially configuring your GitHub App.
#
# NOTE: changing this file will not update your GitHub App settings.
# You must visit github.com/settings/apps/your-app-name to edit them.
#
# Read more about configuring your GitHub App:
# https://probot.github.io/docs/development/#configuring-a-github-app
#
# Read more about GitHub App Manifests:
# https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/

# The list of events the GitHub App subscribes to.
# Uncomment the event names below to enable them.
default_events:
# - check_run
# - check_suite
# - commit_comment
# - create
# - delete
# - deployment
# - deployment_status
# - fork
# - gollum
# - issue_comment
# - issues
# - label
# - milestone
# - member
# - membership
# - org_block
# - organization
# - page_build
# - project
# - project_card
# - project_column
# - public
# - pull_request
# - pull_request_review
# - pull_request_review_comment
- push
# - release
# - repository
# - repository_import
# - status
# - team
# - team_add
# - watch

# The set of permissions needed by the GitHub App. The format of the object uses
# the permission name for the key (for example, issues) and the access type for
# the value (for example, write).
# Valid values are `read`, `write`, and `none`
- push
default_permissions:
# Repository creation, deletion, settings, teams, and collaborators.
# https://developer.github.com/v3/apps/permissions/#permission-on-administration
# administration: read

# Checks on code.
# https://developer.github.com/v3/apps/permissions/#permission-on-checks
# checks: write

# Repository contents, commits, branches, downloads, releases, and merges.
# https://developer.github.com/v3/apps/permissions/#permission-on-contents
contents: write

# Deployments and deployment statuses.
# https://developer.github.com/v3/apps/permissions/#permission-on-deployments
# deployments: read

# Issues and related comments, assignees, labels, and milestones.
# https://developer.github.com/v3/apps/permissions/#permission-on-issues
# issues: write

# Search repositories, list collaborators, and access repository metadata.
# https://developer.github.com/v3/apps/permissions/#metadata-permissions
metadata: read

# Retrieve Pages statuses, configuration, and builds, as well as create new builds.
# https://developer.github.com/v3/apps/permissions/#permission-on-pages
# pages: read

# Pull requests and related comments, assignees, labels, milestones, and merges.
# https://developer.github.com/v3/apps/permissions/#permission-on-pull-requests
pull_requests: read

# Manage the post-receive hooks for a repository.
# https://developer.github.com/v3/apps/permissions/#permission-on-repository-hooks
# repository_hooks: read

# Manage repository projects, columns, and cards.
# https://developer.github.com/v3/apps/permissions/#permission-on-repository-projects
# repository_projects: read

# Retrieve security vulnerability alerts.
# https://developer.github.com/v4/object/repositoryvulnerabilityalert/
# vulnerability_alerts: read

# Commit statuses.
# https://developer.github.com/v3/apps/permissions/#permission-on-statuses
# statuses: read

# Organization members and teams.
# https://developer.github.com/v3/apps/permissions/#permission-on-members
# members: read

# View and manage users blocked by the organization.
# https://developer.github.com/v3/apps/permissions/#permission-on-organization-user-blocking
# organization_user_blocking: read

# Manage organization projects, columns, and cards.
# https://developer.github.com/v3/apps/permissions/#permission-on-organization-projects
# organization_projects: read

# Manage team discussions and related comments.
# https://developer.github.com/v3/apps/permissions/#permission-on-team-discussions
# team_discussions: read

# Manage the post-receive hooks for an organization.
# https://developer.github.com/v3/apps/permissions/#permission-on-organization-hooks
# organization_hooks: read

# Get notified of, and update, content references.
# https://developer.github.com/v3/apps/permissions/
# organization_administration: read


# The name of the GitHub App. Defaults to the name specified in package.json
# name: My Probot App

# The homepage of your GitHub App.
url: https://github.com/wolfeidau/release-drafter-serverless

# A description of the GitHub App.
# description: A description of my awesome app

# Set to true when your GitHub App is available to the public or false when it is only accessible to the owner of the app.
# Default: true
public: true
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.4"
version: '3.4'
services:
# We override much of the default GitHub Actions oriented Dockerfile for
# making it easier to run the tests using Docker Compose
Expand All @@ -8,4 +8,4 @@ services:
args:
NODE_ENV: development
command: ['npm', 'test']
entrypoint: ''
entrypoint: ''
1 change: 0 additions & 1 deletion lib/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ module.exports.updateRelease = ({
draftRelease,
releaseInfo,
shouldDraft,
config,
}) => {
const updateReleaseParams = updateDraftReleaseParams({
name: releaseInfo.name || draftRelease.name,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"test:watch": "jest --watch --notify --notifyMode=change --coverage",
"generate-schema": "node ./bin/generate-schema.js print",
"generate-fixtures": "node ./bin/generate-fixtures.js",
"lint": "eslint '**/*.js'",
"prettier": "prettier --write **/*.{js,md,json}",
"lint": "eslint **/*.js",
"prettier": "prettier --write **/*.{js,md,json,yml,yaml}",
"postversion": "npm run test && git push && git push --tags && npm publish && npm run deploy && npm run open-releases",
"open-releases": "open \"$(node -e 'console.log(`${require(\"./package.json\").repository}/releases`)')\"",
"deploy": "git push -f heroku \"$(node -e 'console.log(`v${require(\"./package.json\").version}`)')\":master"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/config/config-non-master-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ branches:
template: |
# What's Changed
$CHANGES
$CHANGES
2 changes: 1 addition & 1 deletion test/fixtures/config/config-previous-tag.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
template: |
Changes:
$CHANGES
Previous tag: '$PREVIOUS_TAG'
2 changes: 1 addition & 1 deletion test/fixtures/config/config-with-categories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ categories:
- label: feature
title: 🚀 Features
- label: fix
title: 🐛 Bug Fixes
title: 🐛 Bug Fixes
2 changes: 1 addition & 1 deletion test/fixtures/config/config-with-changes-templates.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
template: '$CHANGES'
no-changes-template: '* No changes mmkay'
change-template: "* Change: #$NUMBER '$TITLE' @$AUTHOR"
change-template: "* Change: #$NUMBER '$TITLE' @$AUTHOR"
2 changes: 1 addition & 1 deletion test/fixtures/config/config-with-contributors.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
template: "A big thanks to: $CONTRIBUTORS"
template: 'A big thanks to: $CONTRIBUTORS'
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ version-resolver:
- 'patch'
default: minor
exclude-labels:
- skip-changelog
- skip-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ version-resolver:
- 'patch'
default: minor
exclude-labels:
- skip-changelog
- skip-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ version-resolver:
- 'PAT'
default: minor
exclude-labels:
- skip-changelog
- skip-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ version-resolver:
- 'patch'
default: minor
exclude-labels:
- skip-changelog
- skip-changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
template: Placeholder with example. Automatically calculated values are next major=$NEXT_MAJOR_VERSION, minor=$NEXT_MINOR_VERSION, patch=$NEXT_PATCH_VERSION
name-template: "v$NEXT_PATCH_VERSION (Code name: Placeholder)"
name-template: 'v$NEXT_PATCH_VERSION (Code name: Placeholder)'
tag-template: v$NEXT_PATCH_VERSION
version-template: $MAJOR.$MINOR.$PATCH
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
template: Placeholder with example. Automatically calculated values are next major=$NEXT_MAJOR_VERSION, minor=$NEXT_MINOR_VERSION, patch=$NEXT_PATCH_VERSION
name-template: "v$NEXT_MINOR_VERSION (Code name: Placeholder)"
name-template: 'v$NEXT_MINOR_VERSION (Code name: Placeholder)'
tag-template: v$NEXT_MINOR_VERSION
version-template: $MAJOR.$MINOR
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
template: Placeholder with example. Automatically calculated values are next major=$NEXT_MAJOR_VERSION, minor=$NEXT_MINOR_VERSION, patch=$NEXT_PATCH_VERSION
name-template: "v$NEXT_MAJOR_VERSION (Code name: Placeholder)"
name-template: 'v$NEXT_MAJOR_VERSION (Code name: Placeholder)'
tag-template: v$NEXT_MAJOR_VERSION
version-template: $MAJOR
2 changes: 1 addition & 1 deletion test/fixtures/config/config-with-next-versioning.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
template: Placeholder with example. Automatically calculated values are next major=$NEXT_MAJOR_VERSION, minor=$NEXT_MINOR_VERSION, patch=$NEXT_PATCH_VERSION
name-template: "v$NEXT_PATCH_VERSION (Code name: Placeholder)"
name-template: 'v$NEXT_PATCH_VERSION (Code name: Placeholder)'
tag-template: v$NEXT_PATCH_VERSION
2 changes: 1 addition & 1 deletion test/fixtures/config/config-with-sort-by-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ sort-by: 'title'
template: |
# What's Changed
$CHANGES
$CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ sort-direction: 'ascending'
template: |
# What's Changed
$CHANGES
$CHANGES
2 changes: 1 addition & 1 deletion test/fixtures/config/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
template: |
# What's Changed
$CHANGES
$CHANGES
Loading

0 comments on commit 60b82ca

Please sign in to comment.