Skip to content

Conversation

@wilfwilson
Copy link
Contributor

@wilfwilson wilfwilson commented Sep 4, 2025

I've tested this quite a bit on my fork of the Digraphs package and it seems to work for my purposes (see digraphs/Digraphs#803).

I've changed the default text Release for <PKG> to Release of <PKG>, because that seems more grammatically correct to me.

Closes #17.

body-text:
description: "Body text for the new GitHub release that will appear on the package's GitHub Releases page"
required: false
default: "Release of ${{ github.event.repository.name }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to double check: did you verify this works? I.e. inserts the correct name.

That said, I wonder if we should not simply default to an empty string. Looking at https://github.com/gap-packages/aclib/releases/tag/v1.3.3 the "Release for AClib" in there doesn't really add any useful information. I know it's taken from classic ReleaseTools...

Anyway I modified an older release to have an empty body, turns out GitHub will then show some filler information that's not great either -- looks to me like the tag name and the commit message of the commit to which the tag is pointing?

Entering just a space as body doesn't help, it seems leading and trailing spaces are removed. I can use a non-breaking space entity &nbsp; to get this look.

So maybe "Release of BLA" is fine after all ...

Thanks for listening in to my random brain musings, tune in again tomorrow when we ask more weird off-topic questions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree with your sentiment here, the "Release for/of Package" doesn't really add anything. But if having the body be blank is not really possible, then I'm happy to keep the default as "Release for/of Package" instead.

It can always be changed in a future pull request anyway, I'm certainly not attached to it!

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me but it would be good if @wilfwilson could confirm that the default text works as intended?

@wilfwilson
Copy link
Contributor Author

I did run it with the default text once or twice when developing this, but I'll run it again later to double check.

@wilfwilson
Copy link
Contributor Author

I'm running a test here https://github.com/wilfwilson/Digraphs/actions/runs/17459058025/job/49579283799 to show that the default text option works. When that job complete the corresponding release should appear at https://github.com/wilfwilson/Digraphs/releases

@wilfwilson
Copy link
Contributor Author

Yep, good enough for me:

Screenshot 2025-09-04 at 10 17 40

I'll delete that release now, and merge this PR.

@wilfwilson wilfwilson merged commit 2812657 into gap-actions:main Sep 4, 2025
2 checks passed
@wilfwilson wilfwilson deleted the add-body-text-option branch September 4, 2025 09:18
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.

Add a workflow input to allow a custom body for the GitHub release

3 participants