Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use release drafter 7.1.1#1875

Merged
MarkEWaite merged 4 commits into
jenkinsci:masterfrom
MarkEWaite:use-release-drafter-v7
Mar 25, 2026
Merged

Use release drafter 7.1.1#1875
MarkEWaite merged 4 commits into
jenkinsci:masterfrom
MarkEWaite:use-release-drafter-v7

Conversation

@MarkEWaite

@MarkEWaite MarkEWaite commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Use release drafter 7.1.1

  • Use documented syntax for GitHub action conditional
  • Reduce risk of "No changes" in the changelog by waiting 15 seconds
  • Release drafter 7 uses with: token instead of env: GITHUB_TOKEN

Detailed descriptions of each change are included in the individual commit messages.

Testing done

Tested successfully in many other repositories. Refer to git client plugin and git plugin.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Issue release-drafter/release-drafter#871
includes this comment:

> PR's associated with commits are coming from GH's GraphQL API, and that
> needs some time to process the same event, that triggered the release
> drafter itself. We added a 15s delay before running the release drafter
> step, ugly but works.

A later comment from the release drafter maintainer says:

> this is high-effort fix with low-effort workaround.
>
> Issue comes from GitHub's Graphql Commit-to-PR relation
> associatedPullRequests, which take some time for github to compute. When
> you push to main and trigger a release-drafter run, you sometimes end
> up being faster than Github's backend and may miss this relation.
>
> To prevent this, simply delay your release-drafter run as @lmagyar suggested.

Testing done:

None.  Rely on GitHub action run when the pull request is merged
The release-drafter/release-drafter#1475 breaking
changes section for release drafter 7.0.0 says:

  If you were using a specific access token using env.GITHUB_TOKEN:
  $MY_CUSTOM_TOKEN, migrate to the new token: input

  jobs:
    steps:
      # Before
      - uses: release-drafter/release-drafter@v6
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      # After
      - uses: release-drafter/release-drafter@v7
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
Also assigns a name to the release drafter step so that it is more
easily identified in the web page for GitHub actions.

Explicitly use jenkinsci release-drafter.yml configuration

Release drafter v7 no longer accepts .github as a valid extension.

https://github.com/release-drafter/release-drafter/blob/master/docs/configuration-loading.md
provides an example that uses this syntax for config-name and says that
the _extends syntax accepts the same form.

This form is now used in many Jenkins repositories
@MarkEWaite MarkEWaite requested a review from a team as a code owner March 24, 2026 12:30
@MarkEWaite MarkEWaite merged commit 808420c into jenkinsci:master Mar 25, 2026
17 checks passed
@MarkEWaite MarkEWaite removed the chore label Mar 25, 2026
@MarkEWaite MarkEWaite deleted the use-release-drafter-v7 branch April 29, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant