project-beta-automations icon indicating copy to clipboard operation
project-beta-automations copied to clipboard

[ FEATURE REQUEST ]: Ability to clear custom fields

Open danielmarbach opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe

Currently it is not possible to clear fields by for example setting it to null.

Describe the solution you'd like:

It would be great if a field could be removed by setting the value to for example null

Describe alternatives you've considered

Apparently, the GraphQL API needs a clear instruction. https://docs.github.com/en/graphql/reference/mutations#clearprojectv2itemfieldvalue

Additional context:

No response

danielmarbach avatar Jul 05 '23 07:07 danielmarbach

I might have some time before my vacation to pick this up. I will update this issue if I don't have the time in the next two days

danielmarbach avatar Jul 05 '23 10:07 danielmarbach

@danielmarbach thank you for this request and the first look at the functionality. If you need help, let me know.

leonsteinhaeuser avatar Jul 05 '23 16:07 leonsteinhaeuser

@leonsteinhaeuser I have submitted an attempt to support this https://github.com/leonsteinhaeuser/project-beta-automations/pull/70. The PR has push rights for maintainers. I tried to test things locally by getting the token properly setup but couldn't find the project permission in the new beta token, and then I got annoyed looking for it ;)

danielmarbach avatar Jul 06 '23 06:07 danielmarbach