-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Automatically clear stopwatch on merging a PR #4327
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4327 +/- ##
=========================================
Coverage ? 38.71%
=========================================
Files ? 330
Lines ? 48623
Branches ? 0
=========================================
Hits ? 18822
Misses ? 27075
Partials ? 2726
Continue to review full report at Codecov.
|
I think that it might be a little bit confusing if you stop a stopwatch without telling the user. I would propose to add a hint to the UI to indicate that the stopwatch will be stopped. |
Hi @JonasFranzDEV , where should that go in.. UI related things aren't what I would consider easy but could use some direction.. BTW, I was actually thinking it could more of a repo/global setting ??? |
@adelowo Just a hint at the submit button with the info that it will stop the stopwatch. |
Wouldn't it be better in issue closing function. This way it would stop timer when closing issue or PR and also when merging I think |
Nice one @lafriks ... I would try that out @JonasFranzDEV Would do just that |
Would update this PR over the weekend |
@JonasFranzDEV I think we could use |
Hi @lafriks , i tried that but merging a PR didn't trigger this when I placed it in the issue closing function.. I was able to do it some other way though . |
This is ready to be reviewed anyways .... |
…watch_on_merging_pr
Timer gets stopped if I reopen an issue. The message will be shown too if an issue is closed. |
…watch_on_merging_pr
@jonasfranz please review |
Can this be reviewed please ? |
This review was related to translation file which has been updated with suggestion.
d7211a6
to
0ccd672
Compare
Whenever a timer is created, it should be closed automatically whenever the PR is merged and/or an issue/PR is closed as per #4327 (comment) . This PR adds that functionality .
This uses
ctx.Flash
to show a one time message that the timer would be closed automatically as per #4327 (comment)