Skip to content

Commit dcd9bc6

Browse files
authored
Vidya reddy/prettier code (#203)
1 parent 976c5c4 commit dcd9bc6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+16222
-16054
lines changed

.github/workflows/codeql.yml

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
1-
name: "Code scanning - action"
1+
name: 'Code scanning - action'
22

33
on:
4-
push:
5-
pull_request:
6-
schedule:
7-
- cron: '0 19 * * 0'
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 19 * * 0'
88

99
jobs:
10-
CodeQL-Build:
11-
12-
# CodeQL runs on ubuntu-latest and windows-latest
13-
runs-on: ubuntu-latest
14-
15-
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v2
18-
with:
19-
# We must fetch at least the immediate parents so that if this is
20-
# a pull request then we can checkout the head.
21-
fetch-depth: 2
22-
23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
27-
28-
# Initializes the CodeQL tools for scanning.
29-
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v1
31-
# Override language selection by uncommenting this and choosing your languages
32-
# with:
33-
# languages: go, javascript, csharp, python, cpp, java
34-
35-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
36-
# If this step fails, then you should remove it and run the build manually (see below)
37-
- name: Autobuild
38-
uses: github/codeql-action/autobuild@v1
39-
40-
# ℹ️ Command-line programs to run using the OS shell.
41-
# 📚 https://git.io/JvXDl
42-
43-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
44-
# and modify them (or add more) to build your code if your project
45-
# uses a compiled language
46-
47-
#- run: |
48-
# make bootstrap
49-
# make release
50-
51-
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v1
10+
CodeQL-Build:
11+
# CodeQL runs on ubuntu-latest and windows-latest
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
with:
18+
# We must fetch at least the immediate parents so that if this is
19+
# a pull request then we can checkout the head.
20+
fetch-depth: 2
21+
22+
# If this run was triggered by a pull request event, then checkout
23+
# the head of the pull request instead of the merge commit.
24+
- run: git checkout HEAD^2
25+
if: ${{ github.event_name == 'pull_request' }}
26+
27+
# Initializes the CodeQL tools for scanning.
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v1
30+
# Override language selection by uncommenting this and choosing your languages
31+
# with:
32+
# languages: go, javascript, csharp, python, cpp, java
33+
34+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
35+
# If this step fails, then you should remove it and run the build manually (see below)
36+
- name: Autobuild
37+
uses: github/codeql-action/autobuild@v1
38+
39+
# ℹ️ Command-line programs to run using the OS shell.
40+
# 📚 https://git.io/JvXDl
41+
42+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
43+
# and modify them (or add more) to build your code if your project
44+
# uses a compiled language
45+
46+
#- run: |
47+
# make bootstrap
48+
# make release
49+
50+
- name: Perform CodeQL Analysis
51+
uses: github/codeql-action/analyze@v1

.github/workflows/defaultLabels.yml

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
name: setting-default-labels
22

3-
# Controls when the action will run.
3+
# Controls when the action will run.
44
on:
5-
schedule:
6-
- cron: "0 0/3 * * *"
5+
schedule:
6+
- cron: '0 0/3 * * *'
77

88
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
99
jobs:
10-
build:
11-
# The type of runner that the job will run on
12-
runs-on: ubuntu-latest
10+
build:
11+
# The type of runner that the job will run on
12+
runs-on: ubuntu-latest
1313

14-
# Steps represent a sequence of tasks that will be executed as part of the job
15-
steps:
16-
17-
- uses: actions/stale@v3
18-
name: Setting issue as idle
19-
with:
20-
repo-token: ${{ secrets.GITHUB_TOKEN }}
21-
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
22-
stale-issue-label: 'idle'
23-
days-before-stale: 14
24-
days-before-close: -1
25-
operations-per-run: 100
26-
exempt-issue-labels: 'backlog'
27-
28-
- uses: actions/stale@v3
29-
name: Setting PR as idle
30-
with:
31-
repo-token: ${{ secrets.GITHUB_TOKEN }}
32-
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
33-
stale-pr-label: 'idle'
34-
days-before-stale: 14
35-
days-before-close: -1
36-
operations-per-run: 100
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
- uses: actions/stale@v3
17+
name: Setting issue as idle
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
21+
stale-issue-label: 'idle'
22+
days-before-stale: 14
23+
days-before-close: -1
24+
operations-per-run: 100
25+
exempt-issue-labels: 'backlog'
26+
27+
- uses: actions/stale@v3
28+
name: Setting PR as idle
29+
with:
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
32+
stale-pr-label: 'idle'
33+
days-before-stale: 14
34+
days-before-close: -1
35+
operations-per-run: 100

.github/workflows/prettify-code.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Run prettify'
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
prettier:
9+
name: Prettier Check
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v2
14+
15+
- name: Enforce Prettier
16+
uses: actionsx/prettier@v2
17+
with:
18+
args: --check .

.github/workflows/release-pr.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Create release PR
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
release:
7-
description: "Define release version (ex: v1, v2, v3)"
8-
required: true
4+
workflow_dispatch:
5+
inputs:
6+
release:
7+
description: 'Define release version (ex: v1, v2, v3)'
8+
required: true
99

1010
jobs:
11-
release-pr:
12-
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
13-
with:
14-
release: ${{ github.event.inputs.release }}
11+
release-pr:
12+
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
13+
with:
14+
release: ${{ github.event.inputs.release }}

0 commit comments

Comments
 (0)