-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #363 from pagarme/develop
Release 3.1.9
- Loading branch information
Showing
175 changed files
with
3,788 additions
and
925 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Bug | ||
|
||
### Descrição | ||
Descreva detalhadamente o bug. | ||
|
||
### Como reproduzir | ||
Descreva os passos para reproduzir o bug. | ||
|
||
### Evidências | ||
Colocar aqui as evidências do bug. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Contribuição | ||
|
||
Primeiramente, obrigado por dedicar seu tempo para contribuir! | ||
|
||
### Como posso contribuir? | ||
|
||
* Faça um fork do projeto; | ||
* Faça suas alterações; | ||
* Use o padrão de commits; | ||
* Crie o pull request para a branch **develop**; | ||
|
||
### Pull Requests | ||
|
||
Template para os [pull requests](https://github.com/pagarme/woocommerce/blob/master/.github/pull_request_template/pull_request_template.md). | ||
|
||
### Mensagens de commit | ||
|
||
* As mensagens devem ser feitas em inglês | ||
* Utilizar o [conventional commits](https://www.conventionalcommits.org/pt-br/v1.0.0/), abaixo segue alguns exemplos de explicações: | ||
|
||
| Nomeclatura | Quando utilizar | | ||
|--------|------------------------------------------| | ||
| **feat:** | Para novas funcionalidades | | ||
| **fix:** | Para correções de bugs | | ||
| **docs:** | Para atualização de uma documentação | | ||
| **refactor:** | Para refatoração de um código | | ||
| **perf:** | Para mudanças que melhoram a performance | | ||
|
||
Abaixo seguem alguns exemplos de commits: | ||
|
||
* feat: adding function to exclude saved credit card to customer | ||
* fix: pix qr code not showing in e-mail | ||
* docs: adding contribution section in readme | ||
* refactor: moving credit card javascript code to requirejs file | ||
* perf: removing unnecessary order update when access admin order page |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
FROM thiagobarradas/woocommerce:3.5.3-wp5.0.2-php7.2 | ||
ARG WORDPRESS_IMAGE_VERSION=latest | ||
FROM wordpress:$WORDPRESS_IMAGE_VERSION | ||
MAINTAINER Open Source Team | ||
|
||
COPY . /app/wp-content/plugins/pagarme-payments-for-woocommerce | ||
RUN mv /app/wp-content/plugins/pagarme-payments-for-woocommerce/.htaccess /app/.htaccess | ||
WORKDIR /var/www/html/ | ||
|
||
WORKDIR /app | ||
RUN apt-get update \ | ||
&& apt-get install wget -y \ | ||
&& apt-get clean | ||
|
||
RUN wget https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php -O datadog-setup.php | ||
|
||
RUN php datadog-setup.php --php-bin=all --enable-appsec | ||
|
||
COPY . ./wp-content | ||
|
||
COPY plugins/pagarme-payments-for-woocommerce/.github/data/custom.ini $PHP_INI_DIR/conf.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
file_uploads = On | ||
upload_max_filesize = 200M | ||
post_max_size = 200M | ||
max_execution_time = 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
while getopts w:f:m: flag | ||
do | ||
case "${flag}" in | ||
w) wcVersion=$OPTARG;; | ||
f) wcExtraCheckoutFieldsVersion=$OPTARG;; | ||
m) wpMailCatcherVersion=$OPTARG;; | ||
esac | ||
done | ||
|
||
installZip() { | ||
curl -L $1 -o $2 | ||
unzip $2 -d $3 | ||
rm $2 | ||
} | ||
|
||
latestStable="latest-stable" | ||
pluginsDir="plugins" | ||
themesDir="themes" | ||
|
||
wordpressDownloadUrl="https://downloads.wordpress.org" | ||
|
||
if [[ -z "$wcVersion" ]]; then | ||
wcVersion=$latestStable | ||
fi | ||
|
||
if [[ -z "$wcExtraCheckoutFieldsVersion" ]]; then | ||
wcExtraCheckoutFieldsVersion=$latestStable | ||
fi | ||
|
||
if [[ -z "$wpMailCatcherVersion" ]]; then | ||
wpMailCatcherVersion=$latestStable | ||
fi | ||
|
||
|
||
installZip "$wordpressDownloadUrl/plugin/woocommerce.$wcVersion.zip" "woocommerce.zip" "$pluginsDir" | ||
installZip "$wordpressDownloadUrl/plugin/woocommerce-extra-checkout-fields-for-brazil.$wcExtraCheckoutFieldsVersion.zip" "woocommerce-extra-checkout-fields-for-brazil.zip" "$pluginsDir" | ||
installZip "$wordpressDownloadUrl/plugin/wp-mail-catcher.$wpMailCatcherVersion.zip" "wp-mail-catcher.zip" "$pluginsDir" | ||
installZip "$wordpressDownloadUrl/theme/storefront.$latestStable.zip" "storefront.zip" "$themesDir" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Nova funcionalidade | ||
|
||
### Descrição | ||
Descreva detalhadamente a nova funcionalidade. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## :sparkles: New Features | ||
- | ||
|
||
## :bug: Bug fixes | ||
- | ||
|
||
## :rocket: Improvements | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
![Git Merge](https://media.giphy.com/media/cFkiFMDg3iFoI/giphy.gif) | ||
|
||
> [!IMPORTANT] | ||
> Certifique-se de criar o PR para a branch **develop**. | ||
### Qual o tipo de PR é esse? (marque todos os aplicáveis) | ||
- [ ] Refatoração | ||
- [ ] Adição de funcionalidade | ||
- [ ] Correção de bug | ||
- [ ] Otimização | ||
- [ ] Atualização de documentação | ||
|
||
### Descrição | ||
Descreva brevemente as alterações feitas neste PR. | ||
|
||
|
||
### Cenários testados | ||
Descreva brevemente quais foram os cenários testados com as alterações feitas neste PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: BUILD BRANCH | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
wordpress_image_version: | ||
required: false | ||
type: string | ||
default: latest | ||
woocommerce_version: | ||
required: false | ||
type: string | ||
default: latest-stable | ||
woocommerce_extra_checkout_fields_version: | ||
required: false | ||
type: string | ||
default: latest-stable | ||
wp_mail_catcher_version: | ||
required: false | ||
type: string | ||
default: latest-stable | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
call-workflow-cd: | ||
uses: pagarme/woocommerce/.github/workflows/cd_reusable.yml@master | ||
with: | ||
tag: ${{ GITHUB_REF#refs/heads/ }} | ||
wordpress_image_version: ${{ inputs.wordpress_image_version }} | ||
woocommerce_version: ${{ inputs.woocommerce_version }} | ||
woocommerce_extra_checkout_fields_version: ${{ inputs.woocommerce_extra_checkout_fields_version }} | ||
wp_mail_catcher_version: ${{ inputs.wp_mail_catcher_version }} | ||
secrets: | ||
inherit |
Oops, something went wrong.