crazy-max / .github

1 stars 3 forks source link

Templating #11

Open gedw99 opened 7 months ago

gedw99 commented 7 months ago

Hey 👋 @crazy-max

thanks for this and the amazing GitHub actions.

I am using this and need to alter sone of the strings when I copy the folder into a repo.

the repo org and repo name are the 2 things that need changing each time.

so I was thinking about templating approaches !

Golang new command is powerful but probably won’t work on GitHub action and markdown . Have to try .

Another option is to template out the files and write a transformer.

Any thoughts / opinions on this ?

crazy-max commented 7 months ago

I am using this

Hey! I'm not quite sure what you mean by "this"

gedw99 commented 7 months ago

Issue templates, etc like this.

Need to do a template replace etc.

# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
blank_issues_enabled: true
contact_links:
  - name: Questions and Discussions
    url: https://github.com/$(REPO_ORG)/$(REPO_NAME)/discussions/new
    about: Use Github Discussions to ask questions and/or open discussion topics.