Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Creating GitHub Discussions Entry #2304

Closed
stack72 opened this issue Jun 17, 2021 · 9 comments
Closed

Error Creating GitHub Discussions Entry #2304

stack72 opened this issue Jun 17, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@stack72
Copy link

stack72 commented Jun 17, 2021

As part of the Pulumi release, we want to create an entry in GitHub Discussions for our users. I have added the following code to our goreleaser.yml file:

release:
  discussion_category_name: Announcements

The build continues as expected until it gets to the release part and we get an error as follows:

error=github/gitlab/gitea releases: failed to publish artifacts: POST https://api.github.com/repos/pulumi/pulumi/releases: 404 Discussion could not be created. Make sure you passed a valid category name. []

We are using a GitHub Token that has access to read/write discussions. But it seems that the discussion_category_name is not being picked up in the config as it seems to be passing an empty name?

Runner configuration:

      - name: Run GoReleaser
        uses: goreleaser/goreleaser-action@v2
        with:
          version: latest
          args: -p 3 -f .goreleaser.yml --rm-dist --release-notes=CHANGELOG_PENDING.md

This installs:

✅ GoReleaser version found: v0.169.0
⬇️ Downloading goreleaser/goreleaser@v0.169.0 goreleaser_Darwin_x86_64.tar.gz... (download)

I am not sure where this bug lays to be honest - I am not sure if there is an issue with the yaml we have created or something else

The .goreleaser.yml file can be found https://github.com/pulumi/pulumi/blob/master/.goreleaser.yml

We are using public github and the GitHub Actions runner is macos-latest and Go 1.16.5

Thanks

Paul

@stack72 stack72 added the bug Something isn't working label Jun 17, 2021
@caarlos0
Copy link
Member

caarlos0 commented Jun 17, 2021

Yeah, this seems to be an issue on github. It seems to happen on categories that have the Announcement format...

Will try to get some support from the.

for a workaround, change it to any other format:
image

@stack72
Copy link
Author

stack72 commented Jun 17, 2021

Ah so it's to do with the discussion format? That's super interesting! Thank you - that would fit perfectly with the format of the category we are trying to post to!

Thanks again

Feel free to close this out :)

@caarlos0
Copy link
Member

just opened a support ticket, will leave it open meanwhile should more people have the same issue...

@caarlos0 caarlos0 added the hold label Jun 17, 2021
@caarlos0
Copy link
Member

image

@stack72
Copy link
Author

stack72 commented Jun 17, 2021

You rock! Thanks @caarlos0

@caarlos0
Copy link
Member

image

so it seems it will not work basically 🤔

caarlos0 added a commit that referenced this issue Jun 23, 2021
#2304
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0
Copy link
Member

added more info to the docs... will close this

thanks @stack72 🙏

@stack72
Copy link
Author

stack72 commented Jun 23, 2021

thank you so much for doing all of that!

stack72 added a commit to pulumi/pulumi that referenced this issue Jun 23, 2021
This was temporarily disabled due to an issue where an incorrect error
message was received about a 404. This was actually due to not being
able to post to `announcement` style categories

The Releases category was changed to be `open ended discussion` so
we can enable this feature again

see goreleaser/goreleaser#2304 for details
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants