Skip to content

Commit

Permalink
Repo transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocurbelo committed Jan 27, 2025
0 parents commit fd60c89
Show file tree
Hide file tree
Showing 87 changed files with 34,647 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
!.eslintrc.js
build
assets
docker
bin
docs
includes
languages
release
tasks
templates
vendor
tests
node_modules/

30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
extends: ['plugin:@woocommerce/eslint-plugin/recommended'],
globals: {
_: false,
Backbone: false,
jQuery: false,
wp: false,
},
settings: {
jsdoc: { mode: 'typescript' },
// List of modules that are externals in our webpack config.
// This helps the `import/no-extraneous-dependencies` and
//`import/no-unresolved` rules account for them.
'import/core-modules': [
'@woocommerce/blocks-registry',
'@woocommerce/settings',
'@wordpress/i18n',
'@wordpress/element',
'@wordpress/html-entities',
],
'import/resolver': {
node: {
extensions: ['.js'],
},
},
},
rules: {
'react/react-in-jsx-scope': 'off',
},
};
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.github/ export-ignore
.wordpress-org/ export-ignore
node_modules export-ignore
tests/ export-ignore
vendor export-ignore

.eslintignore export-ignore
.eslintrc.js export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.nvmrc export-ignore
.phpunit.result.cache export-ignore
.prettierrc.js export-ignore
.wp-env.json export-ignore
.wp-env.override.json export-ignore
CODE_OF_CONDUCT.md export-ignore
composer.json export-ignore
composer.lock export-ignore
LICENSE.md export-ignore
package-lock.json export-ignore
package.json export-ignore
phpcs-compat.xml.dist export-ignore
phpcs.xml.dist export-ignore
phpunit.xml.dist export-ignore
webpack.config.js export-ignore
*.zip export-ignore
13 changes: 13 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Create Bug Reports

If you find a bug, let us know by creating a new issue.

### Write and submit a patch

If you'd like to fix a bug, you can submit a Pull Request. If possible, raise an issue first and link the issue in your [commit message](https://help.github.com/articles/closing-issues-via-commit-messages/) or [PR's body](https://github.com/blog/1506-closing-issues-via-pull-requests).

When creating Pull Requests, remember:

- [Check In Early, Check In Often](http://blog.codinghorror.com/check-in-early-check-in-often/).
- Write [good commit messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
- Respect the [Best practices for WordPress development](http://jetpack.com/contribute/#practices).
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Bug Report
about: Report a bug if something isn't working as expected
labels: 'type: bug'

---

### Describe the Bug

<!-- A clear and concise description of what the bug is. Please be as descriptive as possible.-->

### To Reproduce

<!-- Describe the steps to reproduce the behavior -->
1. Go to '…'
2. Click on '…'
3. Scroll down to …'
4. See error

### Screenshots

<!-- If applicable, add screenshots to help explain your problem.-->

### Expected Behavior

<!-- A clear and concise description of what you expected to happen.-->

### Actual Behavior

<!-- A clear and concise description of what actually happens.-->

### Environment

<!-- Complete the following information about your environment. -->

- WordPress Version
- WooCommerce Version
- Plugin Version
- Browser [e.g. Chrome, Safari] and Version
- Any other plugins installed

### Additional Details

<!-- Include any additional details you think might be helpful. -->
<!-- Ticket numbers/links, plugin versions, system statuses etc. -->

<details><summary>System status</summary>

```
<!--If applicable, paste the system status here. Please ensure you redact or remove any identifying information. -->
```

</details>
31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### All Submissions:

<!-- Mark completed items with an [x] -->
* [ ] Does your code follow the [WooCommerce Sniffs](https://github.com/woocommerce/woocommerce-sniffs/) variant of WordPress coding standards?
* [ ] Have you written new tests for your changes, as applicable?
* [ ] Have you successfully run tests with your changes locally?
* [ ] Will this change require new documentation or changes to existing documentation?

---

### Changes proposed in this Pull Request:
<!-- Describe the changes made to this Pull Request and the reason for such changes. -->

Closes # .

### Steps to test the changes in this Pull Request:
<!-- Describe the steps to replicate the issue and confirm the fix -->
<!-- Try to include as many details as possible. -->

1.
1.
1.

### Changelog entry
<!--
Each line should start with change type prefix`(Add|Fix|Dev) - `.
If you remove the "Changelog entry" header, the Pull Request title will be used as the changelog entry.
Add the `changelog: none` label if no changelog entry is needed.
-->

> Add - Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.
39 changes: 39 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Basic set up for three package managers
# - Disables version-updates

version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
# Disable version updates for GitHub Actions dependencies
open-pull-requests-limit: 0
labels:
- "changelog: none"
- "type: dependency"
- "github_actions"

# Maintain dependencies for npm
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
# Disable version updates for npm dependencies
open-pull-requests-limit: 0
labels:
- "changelog: none"
- "type: dependency"
- "javascript"

# Maintain dependencies for Composer
- package-ecosystem: 'composer'
directory: '/'
schedule:
interval: 'weekly'
# Disable version updates for Composer dependencies
open-pull-requests-limit: 0
labels:
- "changelog: none"
- "type: dependencies"
- "php"
18 changes: 18 additions & 0 deletions .github/workflows/backlog-automation-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Add all new and transferred issues to the 10up - GoCardless board.

on:
issues:
types:
- opened
- transferred

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/woocommerce/projects/242
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
36 changes: 36 additions & 0 deletions .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Close stale issues'

# **What it does**: Closes issues where the original author doesn't respond to a request for information.
# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded.

on:
schedule:
# Schedule for every day at 1:30am UTC
- cron: '30 1 * * *'

permissions:
issues: write

jobs:
stale:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v9
with:
days-before-stale: 7
days-before-close: 7
stale-issue-message: >
It has been 7 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 7 days, but if you have more information to add then please comment and the issue will stay open.
close-issue-message: >
This issue has been automatically closed because there has been no response
to our request for more information. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further. See [this blog post on bug reports and the
importance of repro steps](https://www.lee-dohm.com/2015/01/04/writing-good-bug-reports/)
for more information about the kind of information that may be helpful.
stale-issue-label: 'stale'
close-issue-reason: 'not_planned'
any-of-labels: 'needs: author feedback'
remove-stale-when-updated: true
46 changes: 46 additions & 0 deletions .github/workflows/deploy-to-wordpress-org.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy to WordPress.org

on:
release:
types: [published]

jobs:
tag:
name: New release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node version and npm cache
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install Node dependencies
run: npm ci --no-optional

- name: Build
run: |
npm run build && rm -rf ./woocommerce-gateway-gocardless && unzip woocommerce-gateway-gocardless.zip -d ./woocommerce-gateway-gocardless
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
Loading

0 comments on commit fd60c89

Please sign in to comment.