Skip to content

Commit

Permalink
Release v0.13-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
m-melis committed Jul 24, 2020
1 parent eba1628 commit 1c04c9e
Show file tree
Hide file tree
Showing 11 changed files with 283 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ release:gitlab-repo:
# Remove all files in target repository (excluding .git folder)
- find gitlab-secml -mindepth 1 -maxdepth 1 -not -name .git -exec rm -rv {} +
# Copy al files in target repository (excluding .git folder and target repo folder)
- find . -mindepth 1 -maxdepth 1 -not -name .git -not -name .gitlab -not -name gitlab-secml -exec cp -r {} gitlab-secml/ \;
- find . -mindepth 1 -maxdepth 1 -not -name .git -not -name gitlab-secml -exec cp -r {} gitlab-secml/ \;
# Commit and push
- cd gitlab-secml
- git add . # .gitignore will properly exclude what should be excluded
Expand Down
32 changes: 32 additions & 0 deletions .gitlab/issue_templates/Bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "bug" label.
- https://pragit.diee.unica.it/secml/secml/issues?label_name%5B%5D=bug
and verify the issue you're about to submit isn't a duplicate.
--->

(Summarize the bug encountered concisely)

### Steps to reproduce

(How one can reproduce the issue - **this is very important**)

### [optional] What is the expected *correct* behavior?

(What you are supposed to see in absence of the bug)

### [optional] Relevant logs, screenshots, CI/CD tests

(Paste any relevant logs, screenshots or links to specific CI/CD jobs
that are failing - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

### [optional] Possible fixes

(Propose a possible fix for the reported problem)

/label ~bug
28 changes: 28 additions & 0 deletions .gitlab/issue_templates/Direction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "direction" label.
- https://pragit.diee.unica.it/secml/secml/issues?label_name%5B%5D=direction
and verify the issue you're about to submit isn't a duplicate.
--->

(Summarize the direction feature to be developed.)

## Todo list

(List of issues to tackle specific components part of the direction.
After all issues in this list have been completed, direction issue can be closed.)

* [ ] Issue title #ID
* [ ] Issue title #ID

## Related issues

(List of related issues but not part of the direction itself)

#ID1, #ID2, ...

/label ~direction
18 changes: 18 additions & 0 deletions .gitlab/issue_templates/Documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "documentation" label.
- https://pragit.diee.unica.it/secml/secml/issues?label_name%5B%5D=documentation
and verify the issue you're about to submit isn't a duplicate.
--->

(Describe the documentation to be added or changed.
For code documentation, e.g. the doc for a class or a method,
a link to the related code should be provided.
Documentation is located in "docs/source" and follows the reST format.
**No code changes should be implemented**)

/label ~documentation
19 changes: 19 additions & 0 deletions .gitlab/issue_templates/Improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "improvement" label.
- https://pragit.diee.unica.it/secml/secml/issues?label_name%5B%5D=improvement
and verify the issue you're about to submit isn't a duplicate.
--->

(Summarize the improvement to be developed.)

### Implementation plan

(Describe the implementation details including code snippets if applicable.
Use code blocks (```) to make snippets properly readable.)

/label ~improvement
23 changes: 23 additions & 0 deletions .gitlab/issue_templates/NewFeature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "new feature" label.
- https://pragit.diee.unica.it/secml/secml/issues?label_name%5B%5D=new+feature
and verify the issue you're about to submit isn't a duplicate.
--->

(Summarize the new feature to be developed. For implementing bigger/broader features,
a direction issue could be created instead.)

### Implementation plan

(Describe the implementation details. The plan should define, for example,
the name of the new classes/methods to implement and their position in the library.
It should also define what the new procedures to implement should do,
e.g. in terms of input/output for new methods. Include code snippets if applicable.
Use code blocks (```) to make snippets properly readable.)

/label ~"new feature"
20 changes: 20 additions & 0 deletions .gitlab/issue_templates/Refactoring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "refactoring" label.
- https://pragit.diee.unica.it/secml/secml/issues?label_name%5B%5D=refactoring
and verify the issue you're about to submit isn't a duplicate.
--->

(Summarize the refactoring to be performed. **The interface of functions/classes
and their output should not change.**)

### Implementation plan

(Describe the implementation details including code snippets if applicable.
Use code blocks (```) to make snippets properly readable.)

/label ~refactoring
6 changes: 6 additions & 0 deletions .gitlab/merge_request_templates/Standard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Changelog
- Changelog line 1 [#ISSUEID]
- Changelog line 1 [#ISSUEID]

Closes #ISSUEID, #ISSUEID <!--- Add only issues that should be closed by this MR --->
[Related to #ISSUEID, #ISSUEID] <!--- Add only issues that are referenced by this MR but are NOT going to be closed --->
102 changes: 102 additions & 0 deletions .gitlab/triage-policies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
resource_rules:
issues:
rules:
- name: UnlabelledIssues
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: days
interval: 5
state: opened
labels:
- No Label
limits:
most_recent: 50
actions:
mention:
- m.melis
comment: |
{{author}} This issue is unlabelled after 5 days. It needs attention. Please take care of this before the end of #{2.days.from_now.strftime('%Y-%m-%d')}
- name: RemovePriorityAfterClosing
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: days
interval: 1
state: closed
labels:
- priority-{medium, high}
limits:
oldest: 50
actions:
remove_labels:
- priority-medium
- priority-high
- name: SetMilestoneLabel
conditions:
ruby: |
milestone&.title && milestone_open? && !has_milestone_label?
actions:
comment: |
/label ~"#{ milestone.title }"
#{ unlabel_no_milestone_labels }
merge_requests:
rules:
- name: SetMilestoneLabel
conditions:
ruby: |
milestone&.title && milestone_open? && !has_milestone_label?
actions:
comment: |
/label ~"#{ milestone.title }"
#{ unlabel_no_milestone_labels }
- name: RemoveNeedReviewAfterClosingMerging
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: days
interval: 1
ruby: milestone.state == "closed" || milestone.state == "merged"
labels:
- needs review
limits:
oldest: 50
actions:
remove_labels:
- needs review
- name: RemovePriorityAfterClosing
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: days
interval: 1
state: closed
labels:
- priority-{medium, high}
limits:
oldest: 50
actions:
remove_labels:
- priority-medium
- priority-high
- name: RemovePriorityAfterMerging
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: days
interval: 1
state: merged
labels:
- priority-{medium, high}
limits:
oldest: 50
actions:
remove_labels:
- priority-medium
- priority-high
33 changes: 33 additions & 0 deletions .gitlab/triage_extra.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module TriageExtra

def has_version_label?
version_labels.any?
end

def milestone_open?
!milestone&.closed?
end

def has_milestone_label?
labels.include?(milestone&.title)
end

def no_milestone_labels
version_labels - [milestone&.title]
end

def unlabel_no_milestone_labels
no_milestone_labels.empty? ? "" : "/unlabel " + no_milestone_labels.map { |i| "~\"" + i + "\"" }.join(" ")
end

def labels
resource[:labels]
end

def version_labels
labels.grep(/^v\d+\..*$/)
end

end

Gitlab::Triage::Resource::Context.include TriageExtra
2 changes: 1 addition & 1 deletion src/secml/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13-rc1
0.13-rc2

0 comments on commit 1c04c9e

Please sign in to comment.