Skip to content

fix: hard-code release-drafter config path#74

Merged
2bndy5 merged 2 commits intomainfrom
copilot/hard-code-release-drafter-config-path
Mar 17, 2026
Merged

fix: hard-code release-drafter config path#74
2bndy5 merged 2 commits intomainfrom
copilot/hard-code-release-drafter-config-path

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

Each repo in the org needed its own .github/release-drafter.yml containing only _extends: .github to delegate to the org-level config — redundant boilerplate across every repository.

Changes

  • .github/workflows/release-drafter.yml: Added config-name input pointing directly to the org-level config, bypassing the need for per-repo config files entirely.
- uses: release-drafter/release-drafter@3a7fb5c85b80b1dda66e1ccb94009adbbd32fce3 # v7.0.0
  with:
    commitish: '${{ inputs.commitish }}'
    config-name: github:cpp-linter/.github:/.github/release-drafter.yml

Per the release-drafter config loading docs, config-name accepts an org-scoped path, so the reusable workflow can own this reference centrally.

Original prompt

This section details on the original issue you should resolve

<issue_title>Hard-code release-drafter config path</issue_title>
<issue_description>According to the release-drafter doc, we could just set the org path in the config-name input value. Meaning, we don't need a duplicate config in each repo that _extends: .... We can just set the config-name value in the reusable workflow:

jobs:
    steps:
      # Draft your next Release notes as Pull Requests are merged into the default branch
      - uses: release-drafter/release-drafter@3a7fb5c85b80b1dda66e1ccb94009adbbd32fce3 # v7.0.0
        with:
          commitish: '${{ inputs.commitish }}'
          config-name: github:cpp-linter/.github:/.github/release-drafter.yml

This would save us the trouble of updating multiple config files that simply extend the org repo's config file.

Originally posted by @2bndy5 in cpp-linter/clang-tools-pip#153 (comment)
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix release-drafter config path to avoid duplication Hard-code release-drafter config path in reusable workflow Mar 17, 2026
Copilot AI requested a review from 2bndy5 March 17, 2026 09:43
@2bndy5 2bndy5 changed the title Hard-code release-drafter config path in reusable workflow fix: hard-code release-drafter config path Mar 17, 2026
@2bndy5 2bndy5 marked this pull request as ready for review March 17, 2026 09:47
Copilot AI requested a review from 2bndy5 March 17, 2026 09:55
@2bndy5 2bndy5 merged commit dcd0bec into main Mar 17, 2026
10 of 11 checks passed
@2bndy5 2bndy5 deleted the copilot/hard-code-release-drafter-config-path branch March 17, 2026 10:12
2bndy5 added a commit to cpp-linter/cpp-linter-action that referenced this pull request Mar 17, 2026
- [x] remove unused config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/cpp-linter-hooks that referenced this pull request Mar 17, 2026
- [x] switch to cpp-linter org's release-drafter config
- [x] update permissions for jobs that invoke release-drafter workflows (reusable and local)
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/cpp-linter that referenced this pull request Mar 17, 2026
- [x] remove unused release-drafter config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/clang-tools-pip that referenced this pull request Mar 17, 2026
- [x] remove unused release-drafter config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74

- supersedes and closes #151
2bndy5 added a commit to cpp-linter/clang-tools-docker that referenced this pull request Mar 17, 2026
- [x] switch to cpp-linter org's release-drafter config
- [x] update permissions for jobs that invoke release-drafter workflows (reusable and local)
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/cpp-linter-hooks that referenced this pull request Mar 17, 2026
- [x] switch to cpp-linter org's release-drafter config
- [x] update permissions for jobs that invoke release-drafter workflows (reusable and local)
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/cpp-linter-action that referenced this pull request Mar 17, 2026
- [x] remove unused release-drafter config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/clang-tools-pip that referenced this pull request Mar 17, 2026
- [x] remove unused release-drafter config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74

- supersedes and closes #151
2bndy5 added a commit to cpp-linter/cpp-linter that referenced this pull request Mar 17, 2026
- [x] remove unused release-drafter config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
2bndy5 added a commit to cpp-linter/cpp-linter that referenced this pull request Mar 17, 2026
- [x] remove unused release-drafter config
- [x] update permissions for jobs that invoke reusable release-drafter workflows
- [x] switch labeler workflow to use separate reusable workflow

refs:
- cpp-linter/.github#71
- cpp-linter/.github#74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hard-code release-drafter config path

2 participants