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

adding support to run twice #64

Merged
merged 5 commits into from
Mar 27, 2022
Merged

adding support to run twice #64

merged 5 commits into from
Mar 27, 2022

Conversation

vsoch
Copy link
Collaborator

@vsoch vsoch commented Mar 15, 2022

Sometimes we add a new contributor on a run, and once we have basic metadata a second PR is opened shortly after with this additional metadata (that we could not look up before because we did not have them recorded). This change will add a new
variable run_twice to the action to allow the user to run the workflow twice instead of once to reduce the updates to one PR.

I will test the branch on one of my projects where I'm expecting contributors to be found, and it would need to be run twice!

Signed-off-by: vsoch vsoch@users.noreply.github.com

sometimes we add a new contributor on a run, and once we have basic metadata
a second PR is opened shortly after with this additional metadata (that we could
not look up before because we did not have them recorded). This change will add a new
variable run_twice to the action to allow the user to run the workflow twice
instead of once to reduce the updates to one PR.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch
Copy link
Collaborator Author

vsoch commented Mar 15, 2022

Worked like a charm! The first run added new contributors and all metadata, then the second run didn't find anything. (no second PR). Right now it's sort of a bug that the first update finds new GitHub aliases, and then it takes a second one to use other extractors to get metadata about them.

@vsoch vsoch requested a review from yarikoptic March 15, 2022 23:43
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Yaroslav Halchenko <debian@onerussian.com>
docker/entrypoint.sh Outdated Show resolved Hide resolved
action.yml Outdated
@@ -43,6 +43,9 @@ inputs:
allcontrib_skip_generate:
description: "skip running all-contributors generate"
default: false
run_twice:
description: "run twice to avoid opening two pull requests"
default: false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yarikoptic here is the default for INPUT_RUN_TWICE

vsoch and others added 2 commits March 16, 2022 17:12
Co-authored-by: Yaroslav Halchenko <debian@onerussian.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch
Copy link
Collaborator Author

vsoch commented Mar 16, 2022

okay default is updated! 6855abe

@vsoch vsoch requested a review from yarikoptic March 16, 2022 23:46
@vsoch
Copy link
Collaborator Author

vsoch commented Mar 21, 2022

ping @yarikoptic !

@vsoch vsoch merged commit de944de into master Mar 27, 2022
@vsoch vsoch deleted the run-twice branch March 27, 2022 19:14
@yarikoptic
Copy link
Member

sorry - fell off my radar. Thanks! Let's see it in action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants