Skip to content

make hasMultipleChangesToCitationcff condition parameterizable #57

@jspaaks

Description

@jspaaks

Make the condition parameterizable like the other filters.

filtering/query.mjs

Lines 90 to 101 in c78334c

const hasMultipleChangesToCitationcff = async (url) => {
const [ owner, repo, ...unuseds ] = url.slice("https://github.com/".length).split('/');
const commits = await octokit.rest.repos.listCommits({
owner,
repo,
path: 'CITATION.cff'
});
return commits.data.length > 1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions