forcedotcom / git2gus

A Github application to keep issues in sync with Agile Accelerator
https://lwc-gus-bot.herokuapp.com
BSD 3-Clause "New" or "Revised" License
27 stars 16 forks source link

Two work items were created for the same GitHub issue #97

Closed edmorley closed 3 years ago

edmorley commented 4 years ago

Hi!

I created https://github.com/heroku/heroku-buildpack-python/issues/1060 and then added the gus: story GitHub label that I've set up to be for User Stories.

The Git2Gus bot then successfully created: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07B0000008XaA0IAK/view

A few minutes later I added another label to the GitHub issue, at which point Git2Gus unexpectedly created a second unwanted User Story: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07B0000008XaAnIAK/view

It's not clear why this occurred.

The config for the repo in question is here: https://github.com/heroku/heroku-buildpack-python/blob/ab69658efbdb3addf7b2e155ebb5bb6e518a597c/.git2gus/config.json

edmorley commented 3 years ago

This happened again in: https://github.com/heroku/heroku-buildpack-python/issues/1067

This issue makes Git2Gus pretty unusable right now unfortunately - since it appears I can't add any additional labels without causing duplicates.

edmorley commented 3 years ago

Both of the work items contain the correct related URL for what it's worth:

$ sfdx force:data:record:get -s ADM_Work__c -i a07B0000008dLYJIA2 --json | jq '.result.Related_URL__c'
"https://github.com/heroku/heroku-buildpack-python/issues/1067"

$ sfdx force:data:record:get -s ADM_Work__c -i a07B0000008dLYdIAM --json | jq '.result.Related_URL__c'
"https://github.com/heroku/heroku-buildpack-python/issues/1067"
edmorley commented 3 years ago

Any news on this? I've stopped using Git2Gus because of this issue.

lpomerleau commented 3 years ago

Following this issue. I am seeing the same on these repos: