Skip to content

Commit

Permalink
chore(ci): bump super-linter/super-linter from 6 to 7 in /.github/wor…
Browse files Browse the repository at this point in the history
…kflows (#602)

* chore(ci): bump super-linter/super-linter in /.github/workflows

Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 6 to 7.
- [Release notes](https://github.com/super-linter/super-linter/releases)
- [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md)
- [Commits](super-linter/super-linter@v6...v7)

---
updated-dependencies:
- dependency-name: super-linter/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(CI): Added support for linting and fixing JavaScript, YAML, JSON, Markdown and CSS code

* chore: Added `.prettierignore` file

* fix: Moved all ignored folders to .prettierignore file

* fix(CI): Fixed formatter permission issue

* fix(CI): Fixed formatter permission issue

* fix(CI): Fixed formatter permission issue

* style: format codebase

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Saptarshi Sarkar <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent 55810d1 commit f4954b2
Show file tree
Hide file tree
Showing 57 changed files with 1,236 additions and 864 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug-for-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ body:
- type: markdown
attributes:
value: |
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug-for-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ body:
- type: markdown
attributes:
value: |
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ body:
- type: markdown
attributes:
value: |
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ body:
- type: markdown
attributes:
value: |
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ body:
- type: markdown
attributes:
value: |
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ body:
- type: markdown
attributes:
value: |
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
You can also join our [Discord community](https://discord.gg/DeT4jXPfkG) for any help or support.
62 changes: 31 additions & 31 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,58 @@

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/Website' # Location of package manifests
- package-ecosystem: "npm" # See documentation for possible values
directory: "/Website" # Location of package manifests
schedule:
interval: 'daily'
interval: "daily"
commit-message:
prefix: 'chore(npm)'
prefix: "chore(npm)"
labels:
- 'dependencies 📦️'
- 'npm 📦️'
- "dependencies 📦️"
- "npm 📦️"
reviewers:
- SaptarshiSarkar12
- package-ecosystem: 'maven' # See documentation for possible values
directory: '/' # Location of package manifests

- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: 'daily'
interval: "daily"
commit-message:
prefix: 'chore(maven)'
prefix: "chore(maven)"
labels:
- 'dependencies 📦️'
- 'maven 📦️'
- "dependencies 📦️"
- "maven 📦️"
reviewers:
- SaptarshiSarkar12
- package-ecosystem: 'github-actions'
directory: '/.github/workflows'

- package-ecosystem: "github-actions"
directory: "/.github/workflows"
schedule:
# Check for updates to GitHub Actions every weekday
interval: 'daily'
interval: "daily"
commit-message:
prefix: 'chore(ci)'
prefix: "chore(ci)"
labels:
- 'dependencies 📦️'
- 'CI/CD 🔁'
- "dependencies 📦️"
- "CI/CD 🔁"
reviewers:
- SaptarshiSarkar12

- package-ecosystem: 'docker'
- package-ecosystem: "docker"
directories:
- '/Docker/dev/CLI'
- '/Docker/dev/GUI'
- '/Docker/dev/commons/base'
- '/Docker/dev/commons/runner'
- '/Docker/prod/CLI'
- '/Docker/prod/GUI'
- "/Docker/dev/CLI"
- "/Docker/dev/GUI"
- "/Docker/dev/commons/base"
- "/Docker/dev/commons/runner"
- "/Docker/prod/CLI"
- "/Docker/prod/GUI"
schedule:
# Check for updates to Docker every day
interval: 'daily'
interval: "daily"
commit-message:
prefix: 'chore(docker)'
prefix: "chore(docker)"
labels:
- 'dependencies 📦️'
- 'docker 🐋'
- "dependencies 📦️"
- "docker 🐋"
reviewers:
- SaptarshiSarkar12
45 changes: 28 additions & 17 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
"Website 🌐":
- changed-files:
- any-glob-to-any-file: ['Website/**']
- changed-files:
- any-glob-to-any-file: ["Website/**"]

"App 💻":
- changed-files:
- any-glob-to-any-file: ['CLI/src/**', 'GUI/src/**', 'Core/src/*']
- changed-files:
- any-glob-to-any-file: ["CLI/src/**", "GUI/src/**", "Core/src/*"]

"CI/CD 🔁":
- changed-files:
- any-glob-to-any-file: ['.github/workflows/**']
- changed-files:
- any-glob-to-any-file: [".github/workflows/**"]

"dependencies 📦️":
- changed-files:
- any-glob-to-any-file: ['Website/package.json', 'Website/package-lock.json', 'pom.xml', '.github/workflows/**', 'CLI/pom.xml', 'GUI/pom.xml', 'Core/pom.xml']
- head-branch: ['^dependabot']
- changed-files:
- any-glob-to-any-file:
[
"Website/package.json",
"Website/package-lock.json",
"pom.xml",
".github/workflows/**",
"CLI/pom.xml",
"GUI/pom.xml",
"Core/pom.xml",
]
- head-branch: ["^dependabot"]

"documentation 📝":
- changed-files:
- any-glob-to-any-file: ['**/*.md']
- changed-files:
- any-glob-to-any-file: ["**/*.md"]

"maven 📦️":
- changed-files:
- any-glob-to-any-file: ['pom.xml', 'CLI/pom.xml', 'GUI/pom.xml', 'Core/pom.xml']
- changed-files:
- any-glob-to-any-file:
["pom.xml", "CLI/pom.xml", "GUI/pom.xml", "Core/pom.xml"]

"npm 📦️":
- changed-files:
- any-glob-to-any-file: ['Website/package.json', 'Website/package-lock.json']
- changed-files:
- any-glob-to-any-file:
["Website/package.json", "Website/package-lock.json"]

"docker 🐋":
- changed-files:
- any-glob-to-any-file: ['Docker/**', 'docker-compose.yml']
- changed-files:
- any-glob-to-any-file: ["Docker/**", "docker-compose.yml"]
2 changes: 1 addition & 1 deletion .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"CLI/src/main/java/main/Drifty_CLI.java",
"GUI/src/main/java/backend/FileDownloader.java"
]
}
}
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
## Fixes issue

<!-- If your PR fixes an open issue, use `Fixes #ISSUE_NUMBER` to link your PR with the issue. -->

Fixes #

## Changes proposed

<!-- List all the proposed changes in your PR -->

## Check List (Check all the applicable boxes)
Expand All @@ -14,7 +17,9 @@ Fixes #
- [ ] The title of my pull request is a short description of the requested changes.

## Screenshots

<!-- Add all the screenshots which support your changes -->

## Note to reviewers

<!-- Add notes to reviewers if applicable -->
8 changes: 4 additions & 4 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ changelog:
- "dependencies 📦️"
- title: Bug 🪲 Fixes in Docker 🐋
labels:
- "docker 🐋"
- "bug 🐛"
- "docker 🐋"
- "bug 🐛"
exclude:
labels:
labels:
- "App 💻"
- "documentation 📝"
- "Website 🌐"
Expand All @@ -73,4 +73,4 @@ changelog:
exclude:
labels:
- "App 💻"
- "documentation 📝"
- "documentation 📝"
15 changes: 8 additions & 7 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@ name: Format
on:
push:
paths-ignore:
- "Website/**"
- "*.md"
- "*.txt"
pull_request:
paths-ignore:
- "Website/**"
- "*.md"
- "*.txt"
workflow_dispatch:

jobs:
formatting:
name: Format Java files
name: Format files
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -30,13 +27,17 @@ jobs:
java-version: 21
- name: Format Java files
run: mvn rewrite:run
- name: Install prettier
run: npm install -g --save-dev --save-exact prettier
- name: Format the rest of the files
run: prettier . --write
- name: Commit changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
if [[ $(git status --porcelain) ]]; then
git commit -m "style: Formatted Java files"
git commit -m "style: format codebase"
fi
- name: Push changes
if: github.event_name != 'pull_request'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# Full git history is necessary to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Lint Code Base
id: lint
uses: super-linter/super-linter/slim@v6
uses: super-linter/super-linter/slim@v7
continue-on-error: true
env:
DEFAULT_BRANCH: master
Expand Down
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GUI/src/main/resources/META-INF/native-image
CLI/src/main/resources/META-INF/native-image
.idea
.github/workflows
config/
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ Be sure to include as much detail as possible including step-by-step description
### Issues

[**Issues**](https://github.com/SaptarshiSarkar12/Drifty/issues/new/choose) are very valuable to this project. Please check if any similar issues are already present. If not, then feel free to open that issue.
- **Feature 💡 Requests** are valuable sources of enhancements which the project can make.
- **Bug 🐞 Reports** show where this project is lacking and errors come up.
- With a **question**, you show where contributors can improve the user experience.

- **Feature 💡 Requests** are valuable sources of enhancements which the project can make.
- **Bug 🐞 Reports** show where this project is lacking and errors come up.
- With a **question**, you show where contributors can improve the user experience.

### Projects

Expand Down
Loading

0 comments on commit f4954b2

Please sign in to comment.