49 Commits
1.0.1 ... 2.2.0

Author SHA1 Message Date
Víctor Suárez Fernández
d6b43a5224 Merge branch 'master' into develop 2020-11-10 14:30:06 +01:00
Víctor Suárez Fernández
76e7d4a749 Update CHANGELOG.md 2020-11-10 14:25:10 +01:00
Víctor Suárez Fernández
60c56f0aaa Merge pull request #36 from idealista/feature/migrate_travisci-org2com
Reflect travisci migration in readme.
2020-11-10 11:43:44 +01:00
Víctor Suárez Fernández
97507c17b3 Update README.md 2020-11-10 11:29:43 +01:00
Víctor Suárez Fernández
55a257bdf8 Delete auto_assign.yml 2020-10-30 11:41:37 +01:00
Christian Ardiente
f03745c5e2 Merge pull request #35 from idealista/features/29
Removing unnecessary script line in travis.yml
2020-10-30 11:32:43 +01:00
Víctor Suárez Fernández
0c9af7eece Merge branch 'develop' into features/29 2020-10-28 10:42:54 +01:00
Víctor Suárez Fernández
f8a86832e8 Merge pull request #32 from idealista/feature/satale_good-first-issue
Exclude good first issues from stale.yml
2020-10-28 10:31:28 +01:00
Víctor Suárez Fernández
4c2af41064 Merge branch 'develop' into feature/satale_good-first-issue 2020-10-28 10:31:14 +01:00
Christian Ardiente Eda
c3cb5c464e Update changelog.md 2020-10-27 16:36:33 +01:00
Christian Ardiente Eda
c5554da841 #29 removing redundant script 2020-10-27 16:32:21 +01:00
Víctor Suárez Fernández
57c284758f WIP AutoAssign
(cherry picked from commit 616dfe9ac9)
2020-10-26 15:09:31 +01:00
Víctor Suárez Fernández
6ab92110f4 Merge pull request #33 from idealista/test/autoassign
PoC AutoAssign reviewers
2020-10-26 15:06:33 +01:00
Víctor Suárez Fernández
616dfe9ac9 WIP AutoAssign 2020-10-26 14:44:28 +01:00
Víctor Suárez Fernández
541d83b59b Update stale.yml 2020-10-26 13:05:05 +01:00
Víctor Suárez Fernández
244442d026 Update stale.yml 2020-10-26 13:04:45 +01:00
Víctor Suárez Fernández
ee867550a9 Update stale.yml 2020-10-26 10:56:45 +01:00
Víctor Suárez Fernández
ee40b1c90e Update stale.yml 2020-10-26 10:56:32 +01:00
Víctor Suárez Fernández
61a915fc94 Update CHANGELOG.md 2020-10-26 10:46:12 +01:00
Víctor Suárez Fernández
45935e8636 Update stale.yml 2020-10-26 10:40:01 +01:00
Víctor Suárez Fernández
807efd330e Update stale.yml 2020-10-26 10:27:56 +01:00
Víctor Suárez Fernández
689d5a9a7e Update stale.yml 2020-10-26 10:26:15 +01:00
Víctor Suárez Fernández
a290867ae2 Merge pull request #28 from idealista/bugs/27
Bugs/27
2020-10-26 09:24:39 +01:00
Daniel Ortega
d39c86b6ef Update stale.yml 2020-10-23 16:21:26 +02:00
Daniel Ortega
9531848d42 Update stale.yml 2020-10-23 16:20:55 +02:00
Daniel Ortega
3a4bc776d6 Update CHANGELOG.md 2020-10-23 15:12:22 +02:00
Daniel Ortega
b87425cffe Create stale.yml 2020-10-23 15:09:58 +02:00
Daniel Ortega
685baa12ca Update stale.yml 2020-10-23 15:09:05 +02:00
Pablo Gómez-Caldito Gómez
a46e5838a5 Merge pull request #26 from idealista/develop
2.1.0 release
2020-10-20 13:23:12 +02:00
Pablo Gómez-Caldito
2ac757ea01 Update Changelog 2020-10-20 13:12:51 +02:00
Pablo Gómez-Caldito Gómez
96300dc17d Merge pull request #25 from idealista/bugs/23
bugs/23
2020-10-20 13:04:29 +02:00
Pablo Gómez-Caldito
93413088cf #23 Change references to branch master to main 2020-10-20 11:14:43 +02:00
Daniel Ortega
48bb9b59bc Merge pull request #24 from idealista/develop
Preparing release
2020-10-20 10:19:38 +02:00
Daniel Ortega
b211de5ac1 Update CHANGELOG.md 2020-10-19 17:47:42 +02:00
Daniel Ortega
e09ccc4f81 Merge pull request #21 from idealista/features/20
#20 Create stale.yml
2020-10-19 13:59:13 +02:00
Daniel Ortega
59cfae10b0 Update CHANGELOG.md 2020-10-18 23:12:32 +02:00
Daniel Ortega
7de68ec117 #20 Create stale.yml 2020-10-18 23:07:59 +02:00
Pablo Gómez-Caldito Gómez
0b22e75775 Merge pull request #19 from idealista/develop
Release 2.0.0
2020-10-13 12:03:16 +02:00
Pablo Gómez-Caldito
4b9688aede Release 2.0.0 changelog 2020-10-13 11:57:06 +02:00
Pablo Gómez-Caldito Gómez
ef1609d3df Merge pull request #18 from idealista/features/15
features/15
2020-10-13 11:44:03 +02:00
Pablo Gómez-Caldito
56f671ec1e #15 Add pipenv link in readme 2020-10-13 11:35:16 +02:00
Pablo Gómez-Caldito
8d3019b428 #15 Add pipenv wrapper 2020-10-06 14:08:19 +02:00
Pablo Gómez-Caldito Gómez
386caa84d8 Merge pull request #17 from idealista/features/16
features/16
2020-10-06 13:56:19 +02:00
Pablo Gómez-Caldito
bbd2874072 #16 Remove debian jessie support 2020-10-06 09:19:05 +02:00
Víctor Suárez Fernández
694e944229 Merge pull request #14 from idealista/feature/changelog-boilerplate
Boilerplate for CHANGELOG.md
2020-10-06 08:16:42 +02:00
Victor Suarez Fernandez
2276458f71 Update changelog 2020-10-05 13:31:04 +02:00
Victor Suarez Fernandez
6e1d2bd537 Fix typo 2020-10-05 13:29:45 +02:00
Victor Suarez Fernandez
a3ab8589eb Change github/idealista for github_user variable 2020-10-05 13:26:16 +02:00
Victor Suarez Fernandez
3b491d6ec6 Boilerplate CHANGELOG.md 2020-10-05 12:34:38 +02:00
14 changed files with 161 additions and 38 deletions

22
.github/auto_assign.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
# Set to true to add reviewers to pull requests
addReviewers: true
# Set to true to add assignees to pull requests
addAssignees: false
# A list of team reviewers to be added to pull requests (GitHub team slug)
reviewers:
- idealista/reviewers
# Number of reviewers has no impact on Github teams
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0
# Set to author to set pr creator as assignee
addAssignees: author
# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- "WIP"
- "[WIP]"

32
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
issues:
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- "pinned"
- "security"
- "good first issue"
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
pulls:
# Number of days of inactivity before a pull request becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale pull request is closed
daysUntilClose: 7
# Comment to post when marking a pull request as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale pull request. Set to `false` to disable
closeComment: false

View File

@@ -9,7 +9,6 @@ install:
- pip3 install cookiecutter
env:
jobs:
- MOLECULE_DISTRO=debian:jessie-slim
- MOLECULE_DISTRO=debian:stretch-slim
- MOLECULE_DISTRO=debian:buster-slim

View File

@@ -3,6 +3,37 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).
## Unreleased
## [2.1.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.2.0) (2020-11-10)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.1.0...2.2.0)
### Fixed
- *[#27](https://github.com/idealista/cookiecutter-ansible-role/issues/27) Adding Probot configuration to Ansible Role template* @dortegau
### Changed
- *[#27](https://github.com/idealista/cookiecutter-ansible-role/issues/27) Increase to 90 days the minimum days to declare a PR/Issue as `staled`* @dortegau
- *[#32](https://github.com/idealista/cookiecutter-ansible-role/pull/32) Avoid closing automatically good first issues* @vicsufer
### Removed
- *[#29](https://github.com/idealista/cookiecutter-ansible-role/issues/29) Removing redudant script in .travis.yml* @xtianae7
## [2.1.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.1.0) (2020-10-19)
## [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.0.0...2.1.0)
### Added
- *[#20](https://github.com/idealista/cookiecutter-ansible-role/issues/20) Add basic configuration in order to enable Probot to delete automatically abandoned PRs/issues* @dortegau
### Fixed
- *[#23](https://github.com/idealista/cookiecutter-ansible-role/issues/23) Change references to branch master to main* @pgomezcaldito
## [2.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.0.0) (2020-10-13)
## [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/1.0.1...2.0.0)
### Removed
- *[#16](https://github.com/idealista/cookiecutter-ansible-role/issues/16) Remove debian jessie support* @pablogcaldito
### Added
- *[#15](https://github.com/idealista/cookiecutter-ansible-role/issues/15) Add pipenv wrapper* @pablogcaldito
- *Add boilerplate README.md* @vicsufer
## [1.0.1](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.1) (2020-09-17)
## [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/1.0.0...1.0.1)
### Removed
@@ -19,4 +50,4 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch
## [1.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.0) (2020-04-28)
### Added
- *First release* @pablogcaldito
- *First release* @pablogcaldito

View File

@@ -27,13 +27,11 @@ This cookiecutter:
### Prerequisities
Cookiecutter version 1.7.x installed.
You can satify this requirement with ```pip install cookiecutter```
You just need to have [pipenv](https://github.com/pypa/pipenv) installed.
## Usage
To generate your ansible role type ```cookiecutter https://github.com/idealista/cookiecutter-ansible-role```.
To generate your ansible role type ```printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv install -r requirements.txt && pipenv run cookiecutter https://github.com/idealista/cookiecutter-ansible-role && rm Pipfile* requirements.txt```.
Then, introduce some parameters needed for generating it.
@@ -56,10 +54,6 @@ license [Apache 2.0]:
galaxy_tag_1 [example_tag1]: github_cli
galaxy_tag_2 [example_tag2]: github
galaxy_tag_3 [example_tag3]: cli
Select debian_jessie_support:
1 - True
2 - False
Choose from 1, 2 [1]:
Select debian_stretch_support:
1 - True
2 - False

View File

@@ -15,7 +15,6 @@
"galaxy_tag_1":"example_tag1",
"galaxy_tag_2":"example_tag2",
"galaxy_tag_3":"example_tag3",
"debian_jessie_support":["True", "False"],
"debian_stretch_support":["True", "False"],
"debian_buster_support":["True", "False"],
"has_service":["True", "False"],

View File

@@ -36,7 +36,7 @@ def configureRole():
os.remove("files/.empty")
def generatePipfile():
os.system("pipenv install -r test-requirements.txt --three")
print("Now cd into the role directory and introduce the following command for it to be ready: \"pipenv install -r test-requirements.txt --three\"")
def main():
checkInput()

View File

@@ -3,7 +3,7 @@
set -e
# Generate role
cookiecutter . --no-input app_name="github_cli" exec_name="gh" author="John Doe" min_ansible_version="2.2" ansible_version="2.8.6" molecule_version="3.0.1" python_docker_version="4.1.0" ansible_lint_version="4.2.0" has_service="False" has_files="False" has_handlers="False" has_templates="False"
printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv install -r requirements.txt && pipenv run cookiecutter . --no-input app_name="github_cli" exec_name="gh" author="John Doe" min_ansible_version="2.2" ansible_version="2.8.6" molecule_version="3.0.1" python_docker_version="4.1.0" ansible_lint_version="4.2.0" has_service="False" has_files="False" has_handlers="False" has_templates="False" && rm Pipfile* requirements.txt
(
# Adjust the role to test
cd github_cli_role
@@ -12,8 +12,9 @@ cookiecutter . --no-input app_name="github_cli" exec_name="gh" author="John Doe"
sed -i 's/1.0.0/0.6.4/g' defaults/main.yml
sed -i 's/exampleapplication/gh/g' defaults/main.yml
# Launch molecule tests
pipenv sync
pipenv install -r test-requirements.txt --three
pipenv run molecule test
)
# Cleanup
rm -rf github_cli_role

View File

@@ -1,19 +1,14 @@
<!--
Have you read Idealista's Code of Conduct? By filling an Issue, you are expected to comply with it,
including treating everyone with respect: https://github.com/idealista/{{ cookiecutter.app_name }}_role/blob/master/.github/CODE_OF_CONDUCT.md
-->
### Prerequisites
* [ ] Put an X between the brackets on this line if you have done all of the following:
* Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
* Read [Idealista's Code of Conduct](https://github.com/idealista/{{ cookiecutter.app_name }}_role/blob/main/.github/CODE_OF_CONDUCT.md) and plan to comply with it
* Checked that your issue isn't already filled: [issues](https://github.com/idealista/{{ cookiecutter.app_name }}_role/issues)
* Checked that there is not already provided the described functionality
### Description
<!-- Description of the issue -->
[Description of the issue]
### Steps to Reproduce
@@ -21,16 +16,17 @@ Have you read Idealista's Code of Conduct? By filling an Issue, you are expected
2. [Second Step]
3. [and so on...]
**Expected behavior:** [What you expect to happen]
**Expected behavior:**
<!-- What you expect to happen -->
**Actual behavior:** [What actually happens]
**Reproduces how often:** [What percentage of the time does it reproduce?]
**Actual behavior:**
<!-- What actually happens -->
**Reproduces how often:**
<!-- What percentage of the time does it reproduce? -->
### Versions
<!-- The version/s you notice the behavior. -->
The version/s you notice the behavior.
### Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
<!-- Any additional information, configuration or data that might be necessary to reproduce the issue. -->

View File

@@ -0,0 +1,32 @@
issues:
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- "pinned"
- "security"
- "good first issue"
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
pulls:
# Number of days of inactivity before a pull request becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale pull request is closed
daysUntilClose: 7
# Comment to post when marking a pull request as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale pull request. Set to `false` to disable
closeComment: false

View File

@@ -0,0 +1,18 @@
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).
## [Unreleased](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tree/develop)
### Changed
### Added
### Removed
### Fixed
## [X.Y.Z](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tree/X.Y.Z)
### [Full Changelog](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/compare/1.0.0...X.Y.Z)
### Changed
*[#<issue_number>](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/issues/<issue_number>) \<Change description\>* @\<author\>
## [1.0.0](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tree/1.0.0)
- Initial release

View File

@@ -1,12 +1,14 @@
# {{ cookiecutter.app_name | replace('_',' ') | title }} Ansible role
![Logo](https://raw.githubusercontent.com/idealista/{{ cookiecutter.app_name }}_role/master/logo.gif)
![Logo](logo.gif)
[![Build Status](https://travis-ci.org/idealista/{{ cookiecutter.app_name }}_role.png)](https://travis-ci.org/idealista/{{ cookiecutter.app_name }}_role)
[![Build Status](https://travis-ci.com/idealista/{{ cookiecutter.app_name }}_role.png)](https://travis-ci.com/idealista/{{ cookiecutter.app_name }}_role)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-idealista.{{ cookiecutter.app_name }}_role-B62682.svg)](https://galaxy.ansible.com/idealista/{{ cookiecutter.app_name }}_role)
This ansible role installs [{{ cookiecutter.app_name | replace('_',' ') | title }}](APP_URL_HERE) in a Debian environment. It has been tested for Debian buster and stretch.
This ansible role installs [{{ cookiecutter.app_name | replace('_',' ') | title }}](APP_URL_HERE) in a Debian environment. It has been tested for the following Debian versions:
{% if cookiecutter.debian_stretch_support == 'True' %}* Stretch{% endif %}
{% if cookiecutter.debian_buster_support == 'True' %}* Buster{% endif %}
This role has been generated using the [cookiecutter](https://github.com/cookiecutter/cookiecutter) tool, you can generate a similar role that fits your needs using the this [cookiecutter template](https://github.com/idealista/cookiecutter-ansible-role).
@@ -26,7 +28,7 @@ These instructions will get you a copy of the role for your Ansible playbook. On
### Prerequisities
Ansible 2.8.x.x version installed.
Ansible {{ cookiecutter.ansible_version }} version installed.
Molecule 3.x.x version installed.
@@ -86,7 +88,7 @@ $ pipenv run molecule test
## Versioning
For the versions available, see the [tags on this repository](https://github.com/idealista/{{ cookiecutter.app_name }}_role/tags).
For the versions available, see the [tags on this repository](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tags).
Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.
@@ -94,7 +96,7 @@ Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGE
* **Idealista** - *Work with* - [idealista](https://github.com/idealista)
See also the list of [contributors](https://github.com/idealista/{{ cookiecutter.app_name }}_role/contributors) who participated in this project.
See also the list of [contributors](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/contributors) who participated in this project.
## License

View File

@@ -13,6 +13,5 @@ galaxy_info:
platforms:
- name: Debian
versions:
{% if cookiecutter.debian_jessie_support == 'True' %}- jessie{% endif %}
{% if cookiecutter.debian_stretch_support == 'True' %}- stretch{% endif %}
{% if cookiecutter.debian_buster_support == 'True' %}- buster{% endif %}

View File

@@ -10,11 +10,9 @@ install:
- pipenv sync
env:
jobs:
{% if cookiecutter.debian_jessie_support == 'True' %}- MOLECULE_DISTRO=debian:jessie-slim{% endif %}
{% if cookiecutter.debian_stretch_support == 'True' %}- MOLECULE_DISTRO=debian:stretch-slim{% endif %}
{% if cookiecutter.debian_buster_support == 'True' %}- MOLECULE_DISTRO=debian:buster-slim{% endif %}
script:
- export MOLECULE_DISTRO=${MOLECULE_DISTRO}
- pipenv run molecule test
notifications: