mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Merge branch 'main' of github.com:Aider-AI/aider
This commit is contained in:
commit
3b9b93a8a4
2 changed files with 7 additions and 3 deletions
|
@ -27,7 +27,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
labels: labels,
|
||||
datasets: [{
|
||||
label: 'Aider\'s percent of new code by release',
|
||||
data: [{% for row in site.data.blame %}{ x: '{{ row.end_tag }}', y: {{ row.aider_percentage }}, lines: {{ row.aider_total }} },{% endfor %}],
|
||||
data: [{% for row in site.data.blame %}{ x: '{{ row.end_tag }}', y: {{ row.aider_percentage }}, lines: {{ row.aider_total }}, end_date: '{{ row.end_date }}' },{% endfor %}],
|
||||
backgroundColor: 'rgba(54, 162, 235, 0.8)',
|
||||
borderColor: 'rgba(54, 162, 235, 1)',
|
||||
borderWidth: 1
|
||||
|
@ -88,6 +88,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
var value = context.parsed.y || 0;
|
||||
var lines = context.raw.lines || 0;
|
||||
return `${label}: ${Math.round(value)}% (${lines} lines)`;
|
||||
},
|
||||
afterLabel: function(context) {
|
||||
let date = context.raw.end_date || 'n/a';
|
||||
return `Date: ` + date;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -52,8 +52,8 @@ the script as your linter.
|
|||
# Second attempt will not do anything and exit 0 unless there's a real problem beyond
|
||||
# the code formatting that was completed.
|
||||
|
||||
pre-commit run --files $* >/dev/null \
|
||||
|| pre-commit run --files $*
|
||||
pre-commit run --files "$@" >/dev/null \
|
||||
|| pre-commit run --files "$@"
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue