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

Dev #2

Merged
merged 28 commits into from
Feb 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
13e0bef
Automation: Automatic code review workflow added
shewa12 Jul 9, 2024
c2193d4
CI/CD: Worflow added for CI/CD to deploy on SVN
shewa12 Aug 20, 2024
8d63fe1
Run workflow on push dev branch
shewa12 Aug 20, 2024
4085d5f
Check build status
shewa12 Aug 20, 2024
ffc90b9
Fix: Workflow file error
shewa12 Aug 20, 2024
aed1bcc
Copy updated
shewa12 Aug 20, 2024
af79121
Build files copy updated
shewa12 Aug 20, 2024
156e6bd
Fix: File copy issue
shewa12 Aug 21, 2024
9fe6f43
Version: Plugin version updated
shewa12 Aug 21, 2024
9f60378
Version: Plugin version updated
shewa12 Aug 21, 2024
c6e69bd
Fix: Tags creating issue on SVN
shewa12 Aug 21, 2024
1ce8423
Debug
shewa12 Aug 21, 2024
aeb5fae
LS to debug dir and files
shewa12 Aug 21, 2024
332dd29
Updated workflow
shewa12 Aug 21, 2024
62bb9ad
Distignore added & workflow updated
shewa12 Aug 22, 2024
c27635e
Fix: YML error
shewa12 Aug 22, 2024
347536c
Update: Plugin build & workflow un on tag
shewa12 Aug 22, 2024
fc0530f
Check files before deploy
shewa12 Aug 22, 2024
552a2da
Version set explicitly
shewa12 Aug 22, 2024
e7d3e6e
Run workflow on tag pushed
shewa12 Aug 22, 2024
b58d8f1
LS removed from workflow yml file
shewa12 Sep 3, 2024
af70ca9
Release v1.2.3
shewa12 Sep 3, 2024
8471307
Fix: Class not found issue fixed
shewa12 Feb 20, 2025
3e4cc4e
Changelog updated
shewa12 Feb 20, 2025
cfcbf66
Release v1.2.4
shewa12 Feb 22, 2025
0988eeb
pot file removed
shewa12 Feb 22, 2025
ebce808
Pot file ignored
shewa12 Feb 22, 2025
7c8f96d
Merge with main
shewa12 Feb 22, 2025
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
29 changes: 29 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

.distignore
.editorconfig
.git
.gitignore
.gitlab-ci.yml
.travis.yml
.DS_Store
Thumbs.db
behat.yml
bin
circle.yml
composer.json
composer.lock
Gruntfile.js
package.json
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
phpcs.ruleset.xml
README.md
wp-cli.local.yml
tests
vendor
node_modules
*.sql
*.tar.gz
*.zip
50 changes: 50 additions & 0 deletions .github/workflows/build-and-deploy-to-svn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and Deploy to SVN
on:
push:
tag:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16.17.0'

- name: Install dependencies
run: npm install --legacy-peer-deps

- name: Install Composer
run: sudo apt-get update && sudo apt-get install -y composer

- name: Install WP CLI
run: |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info

- name: Build Plugin
run: npm run plugin-build

- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
BUILD_DIR: build

- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: build/${{ github.event.repository.name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ assets/bundles/*
*.tar.gz
*.zip
vendor/
.distignore
.editorconfig
build/
build/
*.pot
2 changes: 1 addition & 1 deletion easy-poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://shewazone.com
* Text Domain: easy-poll
* Domain Path: /languages
* Version: 1.2.0
* Version: 1.2.4
*
* @package EasyPoll
*/
Expand Down
1 change: 1 addition & 0 deletions includes/FormBuilder/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static function is_user_already_submitted( $poll_id ): bool {
$poll_id = Utilities::sanitize( $poll_id );
$user_id = get_current_user_id();
$user_ip = isset( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) : '';

$submitted = $wpdb->get_var(
$wpdb->prepare(
"SELECT
Expand Down
Loading
Loading