question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For some reason, issues are created twice?

See original GitHub issue

This is my current workflow.

Thanks!

# This is a basic workflow to help you get started with Actions

name: TODO's to issues

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
  pull_request:
    branches: [ master, staging ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  build:
    runs-on: "ubuntu-latest"
    steps:
      - uses: "actions/checkout@master"
      - name: "TODO to Issue"
        uses: "alstr/todo-to-issue-action@master"
        with:
          REPO: ${{ github.repository }}
          BEFORE: ${{ github.event.before }}
          SHA: ${{ github.sha }}
          TOKEN: ${{ secrets.GITHUB_TOKEN }}
          LABEL: "@todo"
          COMMENT_MARKER: "@"
        id: "todo"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cynthiarichcommented, May 26, 2020

@alstr I saw similar behavior today. Here’s some links to check it out:

  • My workflow file is here running only on [push]
  • I added a TODO in the same PR here
  • It created the issue here and another one here

It’s possible it is picking it up the merge to master as a second commit, but I thought it was supposed to ignore it since there was already an issue opened for that comment.

It also didn’t close the issue when I removed the comment 😢

1reaction
camposcristiancommented, May 25, 2020

Great, thanks for the context! Attaching some logs, but not sure if they’re very relevant. Let me know if you need something specific.

logs_2363.zip logs_2358.zip

Also, I thought if we run the action on every push on staging/master, issues won’t be created again if they already exist? I could try using on: release for every time we create a new one, but if we haven’t tackled the TODO and deleted the comment it will be fired again?

Also, I notice your workflow file says Triggers the workflow on push or pull request, but you’ve only set it to run on pull_request - is that intentional?

Sorry, this was just a comment left behind 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

All things are created twice. What if the first creation is not yours?
Some people are happy to go through life NOT setting goals. ... Stephen Covey says that all things are created twice.
Read more >
Widget get built twice · Issue #33566 · flutter/flutter - GitHub
I came across follow issue when debugging my flutter app. Build method called twice. import 'dart:math'; import 'package:flutter/material.dart'; ...
Read more >
Everything Is Created Twice: From Business Ideas to Products ...
“We have no science for why your one kidney that was 50% destroyed is operating as a fully functioning kidney now. Whatever you've...
Read more >
pipeline trigger twice when push to remote - GitLab.org
Sometimes one pipeline is started (expected) and sometimes 2 pipelines. In some cases the trigger source is push , but for no logical...
Read more >
Solve Every Problem Twice - Jonathan Hall
One habit that I think every software developer, if not practically every professional in any field, can benefit from is that of solving...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found