Skip to content

Does this create a new Trello card upon a GitHub push? #9

@nethomas1968

Description

@nethomas1968

I'm getting an error in the GitHub action runner.

cardsNumbers.forEach(async cardNumber => {
committer: { email: 'noreply@github.com', name: 'GitHub', username: 'web-flow' },
^

TypeError: Cannot read properties of null (reading 'forEach')
at handleHeadCommit (/home/runner/work/_actions/dalezak/github-commit-to-trello-card/main/dist/index.js:9192:16)
at run (/home/runner/work/_actions/dalezak/github-commit-to-trello-card/main/dist/index.js:9240:5)
at /home/runner/work/_actions/dalezak/github-commit-to-trello-card/main/dist/index.js:9247:1
at /home/runner/work/_actions/dalezak/github-commit-to-trello-card/main/dist/index.js:9248:3
at Object. (/home/runner/work/_actions/dalezak/github-commit-to-trello-card/main/dist/index.js:9251:12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
distinct: true,
id: '37aa1e65e5b3037719f7f2d4017b68296fd8d81f',
message: 'Update push.yml',
timestamp: '2023-06-03T18:02:59+01:00',
tree_id: '928e94026be7603cedab3b4448f775b6cb0def44',
url: 'https://github.com/nethomas1968/***/commit/37aa1e65e5b3037719f7f2d4017b68[29](https://github.com/nethomas1968/CICDHook/actions/runs/5164736424/jobs/9303829632#step:3:30)6fd8d81f'
}
getCardNumber(Update push.yml)
Trello ID match pattern #8

What does that all mean?

What I'm trying to do is create a new Trello Card when a push is done to my GitHub project. Or, possibly add a comment to an existing card.
I can't see how to specify the Trello list or the card. I can specify the Trello board name, but not the list.
How does trello know where to add the new card?

Any help appreciated.

Nick Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions