-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
283 additions
and
2 deletions.
There are no files selected for viewing
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
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,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 |
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,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 |
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 @@ | ||
<!--- | ||
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 |
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,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 |
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,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" |
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,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 |
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,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 ---> |
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,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 |
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,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 |
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 +1 @@ | ||
0.13-rc1 | ||
0.13-rc2 |