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

Action not triggered when commit message is too long #32489

Closed
tovoro opened this issue Nov 13, 2024 · 3 comments · Fixed by #32498
Closed

Action not triggered when commit message is too long #32489

tovoro opened this issue Nov 13, 2024 · 3 comments · Fixed by #32498
Labels
topic/gitea-actions related to the actions of Gitea type/bug
Milestone

Comments

@tovoro
Copy link

tovoro commented Nov 13, 2024

Description

As we currently cannot trigger a Gitea Action via a UI button we do this via a Issue comment as a workaround.

When the last commit message is too long (the one which triggered the error was 230 characters), the issue-comment does not trigger the action and the following error is displayed:

...s/notifier_helper.go:347:handleWorkflows() [E] InsertRun: Error 1406 (22001): Data too long for column 'title' at row 1

gitea docter shows no errors, its running on a mysql db.

Thats the beginning of the action.yaml

name: Angular Build

**on:
  issue_comment:
    types: [created]**

jobs:
  build:
    if: **gitea.event.issue.number == 16**
    name:DEV-Build
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [18.x]
        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
    steps:

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.30.2

Operating System

Debian 11

How are you running Gitea?

Binary Release, running from systemd.

Database

MySQL/MariaDB

@kemzeb kemzeb added the topic/gitea-actions related to the actions of Gitea label Nov 13, 2024
@lunny
Copy link
Member

lunny commented Nov 13, 2024

Can you visit the administrator console and can you found errors in /admin/self_check ?

@tovoro
Copy link
Author

tovoro commented Nov 13, 2024

No errors in Self-Check in the admin Console and also none when running gitea doctor check on the server

@wxiaoguang
Copy link
Contributor

It's not related to your instance, but it is a bug.

The default string column is VARCHAR(255), so if your commit's first line it too long, it fails to insert.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/gitea-actions related to the actions of Gitea type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants