diff --git a/ci.sh b/ci.sh index dbc1779e0..f7e28bce3 100755 --- a/ci.sh +++ b/ci.sh @@ -47,6 +47,7 @@ git checkout "${GIT_BRANCH}" python3 updater.py rust-lang/rust python3 updater.py rust-lang/crates.io python3 updater.py rust-lang/rust-clippy +python3 updater.py rust-lang/libs-team if git diff --quiet data/; then diff --git a/data/rust-lang/libs-team/issue-acp-activity.csv b/data/rust-lang/libs-team/issue-acp-activity.csv new file mode 100644 index 000000000..67b6e8e42 --- /dev/null +++ b/data/rust-lang/libs-team/issue-acp-activity.csv @@ -0,0 +1,2 @@ +is:open label:api-change-proposal updated:{{param|relative_date}},>1|today,3..1|last 3 days,7..4|last week,14..8|last 2 weeks,30..15|last month,90..31|last 3 months,180..91|last 6 months,<180|more than 6 months +2023-01-30,3,1,4,3,3,19,30,11 diff --git a/data/rust-lang/libs-team/issue-acp-age.csv b/data/rust-lang/libs-team/issue-acp-age.csv new file mode 100644 index 000000000..2a5d8ea8a --- /dev/null +++ b/data/rust-lang/libs-team/issue-acp-age.csv @@ -0,0 +1,2 @@ +is:open label:api-change-proposal created:{{param|relative_date}},>1|today,3..1|last 3 days,7..4|last week,14..8|last 2 weeks,30..15|last month,90..31|last 3 months,180..91|last 6 months,<180|more than 6 months +2023-01-30,1,0,2,2,3,16,34,20 diff --git a/libs-team.md b/libs-team.md new file mode 100644 index 000000000..bc04ba0f3 --- /dev/null +++ b/libs-team.md @@ -0,0 +1,8 @@ +--- +title: libs team +repo: rust-lang/libs-team +graphs: + issue-acp-activity: Last activity on ACPs + issue-acp-age: ACP creation dates +layout: graphs +--- diff --git a/updater.py b/updater.py index 90828f7e7..e7fe38be3 100755 --- a/updater.py +++ b/updater.py @@ -19,6 +19,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +from pathlib import Path import csv import datetime import json @@ -67,7 +68,7 @@ def get_issues_count(http_session, repo, jinja_env, query, param): param = param.split("|")[0] query_tmpl = jinja_env.from_string(query) - query = "is:pr repo:{repo} {query}".format( + query = "repo:{repo} {query}".format( repo=repo, query=query_tmpl.render(param=param), ) @@ -110,7 +111,9 @@ def update_csv_file(http_session, repo, path): jinja_env = jinja2.Environment() jinja_env.filters["relative_date"] = filter_relative_date + issue_type = Path(path).name.split("-", 1)[0] query = content[0][0] + query = f"is:{issue_type} {query}" for param in content[0][1:]: content[1].append(str(get_issues_count(http_session, repo, jinja_env, query, param)))