diff --git a/Dockerfile b/Dockerfile index 3ff5209a48a..2e20d47054c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN chmod +x /metrics/source/app/action/index.mjs \ && apt-get install -y curl unzip \ && curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh \ # Install ruby to support github licensed gem - && apt-get install -y ruby-full git g++ cmake pkg-config libssl-dev \ + && apt-get install -y ruby-full git g++ cmake pkg-config libssl-dev xz-utils libxml2-dev libxslt-dev \ && gem install licensed \ # Install python for node-gyp && apt-get install -y python3 \ diff --git a/source/plugins/habits/index.mjs b/source/plugins/habits/index.mjs index 3a1a437d602..3c5801a3d74 100644 --- a/source/plugins/habits/index.mjs +++ b/source/plugins/habits/index.mjs @@ -48,7 +48,7 @@ export default async function({login, data, rest, imports, q, account}, {enabled ...await Promise.allSettled( commits .flatMap(({payload}) => payload.commits) - .filter(({author}) => data.shared["commits.authoring"].filter(authoring => author?.login?.toLocaleLowerCase().includes(authoring) || author?.email?.toLocaleLowerCase().includes(authoring) || author?.name?.toLocaleLowerCase().includes(authoring)).length) + .filter(commit => commit?.author && data.shared["commits.authoring"].filter(authoring => commit.author?.login?.toLocaleLowerCase().includes(authoring) || commit.author?.email?.toLocaleLowerCase().includes(authoring) || commit.author?.name?.toLocaleLowerCase().includes(authoring)).length) .map(async commit => (await rest.request(commit)).data.files), ), ]