GithubHelp home page GithubHelp logo

Comments (5)

snebjorn avatar snebjorn commented on June 4, 2024 1

@XDRAGON2002 no progress, go ahead 🚀

from auto.

hipstersmoothie avatar hipstersmoothie commented on June 4, 2024

Sound like a good feature to me. Would you like to submit a PR?

from auto.

snebjorn avatar snebjorn commented on June 4, 2024

Sorry, I don't think I'll have time ATM. Otherwise I wouldn't mind giving it a look.

from auto.

XDRAGON2002 avatar XDRAGON2002 commented on June 4, 2024

@snebjorn @hipstersmoothie was there any update on this? If not, I'd take this up.

from auto.

XDRAGON2002 avatar XDRAGON2002 commented on June 4, 2024

Hi @snebjorn @hipstersmoothie!

I was working on this issue, and apparently after adding the new option, auto is not able to verify/detect this new field:

image

I can't seem to figure out where I'm going wrong? I've also checked out some other prior PRs doing something similar, and still can't seem to figure out what the cause for this could be.

These are the changes I've made:

const pluginOptions = t.partial({
  /** Usernames to exclude from the contributors */
  exclude: t.array(t.string),
  /** Globs to detect change types by */
  types: t.partial(
    fromEntries(contributionTypes.map((c) => [c, pattern])) as Record<
      Contribution,
      typeof pattern
    >
  ),
  /** Define custom commit message defaults to "Update contributors [skip ci]" */
  commitMessage: t.string,
});
const defaultOptions: IAllContributorsPluginOptions = {
  exclude: botList,
  types: {
    doc: ["**/*.mdx", "**/*.md", "**/docs/**/*", "**/documentation/**/*"],
    example: ["**/*.stories*", "**/*.story.*"],
    infra: ["**/.circle/**/*", "**/.github/**/*", "**/travis.yml"],
    test: ["**/*.test.*", "**/test/**", "**/__tests__/**"],
    code: ["**/src/**/*", "**/lib/**/*", "**/package.json", "**/tsconfig.json"],
  },
  commitMessage: "Update contributors [skip ci]",
};
this.options = {
      exclude: [...(defaultOptions.exclude || []), ...(options.exclude || [])],
      types: { ...defaultOptions.types, ...options.types },
      commitMessage: options.commitMessage || defaultOptions.commitMessage || "",
    };

Any pointers? Thanks!

from auto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.