release-drafter: Release drafter doesn't find existing draft

It seems release-drafter can’t find a draft to update anymore.

I have 9 releases in my repo and 1 draft. release-drafter logs Found 9 releases and then No draft release found The first log should include all the releases, even draft. So I should see Found 10 releases. I don’t have a filter by commitish and even so, the first log happens before releases are filtered.

Right now, every time the action is running, a new draft is created in the repo.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 21
  • Comments: 21 (12 by maintainers)

Most upvoted comments

Everything should work again. I had a chat with a GitHub staff member earlier:

Our team verified today that a releases feature flag that was enabled yesterday caused the experienced behavior with accessing draft releases from API calls authenticated with GITHUB_TOKEN.

This flag was disabled earlier today, so accessing draft releases via API should work as expected again. This flag will remain disabled until our engineering team investigates and addresses the impact it had on using GITHUB_TOKEN.

I can verify it works again, I just had to delete the duplicated drafts to tidy the mess up, but release drafter edits the latest draft fine again.

I also confirm bug is gone for us @NotMyFault thanks

Yeah that’s my bad, I was searching why it wouldn’t match my “target commitish” but that PR has nothing to do with it, turns out the action no longer receives draft releases.

When I try “listReleases” via the action with some debugging I get:

Tag v21.4.0 - target: master - Draft: false
Tag v21.3.9 - target: v21.3.x - Draft: false
Tag v21.3.8 - target: v21.3.x - Draft: false
Tag v21.3.7 - target: v21.3.x - Draft: false

When I do “listReleases” using my own token:

Tag v21.5.0 - target: master - Draft: true
Tag v21.4.1 - target: v21.4.x - Draft: true
Tag v21.4.0 - target: master - Draft: false
Tag v21.3.9 - target: v21.3.x - Draft: false
Tag v21.3.8 - target: v21.3.x - Draft: false
Tag v21.3.7 - target: v21.3.x - Draft: false