Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/2.0.0 next.0 #29

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy
on:
push:
branches:
- release
- main

jobs:
deploy:
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Lint
run: |
tsc --noEmit
pnpm run lint:husky
pnpx eslint .

- name: Build
run: tsc
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/pull-request.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/pull_request-opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pull request opened

on:
pull_request:
types:
- opened
branches:
- main

jobs:
notify-greet:
runs-on: ubuntu-latest
steps:
- name: Greet
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `### 🎉 Welcome!

Thank you for your contribution and for opening this pull request.

### 📖 Contribution Guidelines

For more details on how to contribute effectively, please refer to our [How to Contribute](https://github.com/simonkovtyk/esbuild-plugin-package-json/blob/main/docs/guides/HOW_TO_CONTRIBUTE.md) document.`
});
84 changes: 84 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Pull request checks

on:
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- main

jobs:
style_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install
uses: pnpm/action-setup@v4
with:
version: latest
run_install: true

- name: Lint
run: |
tsc --noEmit
pnpx eslint .
notify_success:
runs-on: ubuntu-latest
needs: style_check
if: success()
steps:
- name: Comment success
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `### ✅ Successful Review

Great news! Your pull request has been successfully reviewed, and no errors were found.

### ⏳ Next Steps

The author will review the changes shortly, and we look forward to merging your contributions into the project. Thank you for your hard work and dedication! 🎉`
});

github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ["ci-success"]
});
notify_failure:
runs-on: ubuntu-latest
needs: style_check
if: failure()
steps:
- name: Comment failure
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `### ⚠️ Review Required

Thank you for your contribution! Upon review, we've identified some issues in the pull request that need to be addressed. Please take a moment to review the errors and make the necessary adjustments before we can proceed with the integration.

### 🛠️ Next Steps

Feel free to reach out if you have any questions or need assistance. We appreciate your effort in improving our codebase! 🙏`
});

github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ["ci-failure"]
});
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Simon
Copyright (c) 2024 Simon Kovtyk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,5 @@
"typescript-eslint": "^8.6.0",
"@stylistic/eslint-plugin": "^2.8.0",
"husky": "^9.1.6"
},
"scripts": {
"lint:husky": "husky"
}
}
Loading