Skip to content

[Merged by Bors] - chore(PULL_REQUEST_TEMPLATE.md): add template for moves and deletions - #14559

Closed
jcommelin wants to merge 4 commits into
masterfrom
jcommelin-patch-1
Closed

jcommelin wants to merge 4 commits into
masterfrom
jcommelin-patch-1

Conversation

@jcommelin

Copy link
Copy Markdown
Member

Open in Gitpod

@github-actions

github-actions Bot commented Jul 9, 2024 •

Copy link
Copy Markdown

PR summary 3d0ea229c3

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
@kim-em

kim-em commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

Is the intention that a bot will fill this in?

@jcommelin

Copy link
Copy Markdown
Member Author

Maybe not directly filling in, but certainly the intention is that a bot will generate a first draft that can be copy-pasta-edited.

@adomani

adomani commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

In particular, the pairs of declarations that decl_diff matches, are good candidates for Moves and the ones that have an unmatched - are good candidates for Deletions.

@kim-em kim-em added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 9, 2024
@jcommelin jcommelin removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 10, 2024
@adomani

adomani commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

I looked briefly into this and I am only seeing hacky ways of getting a PR template that depends on the PR itself.

As far as I understand, GitHub simply reads the file that this PR is editing and uses that as a template. So, this file would have had to be edited between pushing and creating a PR. For instance, the very first action upon pushing could be to compute the decl_diff, modify the PR_template file and then have it ready by the time you actually open the PR!

I wonder if not git-indexing this file and simply regenerating it on every push would give the "personalised touch" that we want.

@kim-em

kim-em commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

I think if we develop a bot that can contribute answers here, it should just run after the PR is open. We can add a note to the template saying "You don't need to fill this in immediately: a bot will edit the PR top comment shortly with a first approximation, and you should check that it looks right."

@kim-em

kim-em commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Jul 10, 2024
@mathlib-bors

mathlib-bors Bot commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors

mathlib-bors Bot commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(PULL_REQUEST_TEMPLATE.md): add template for moves and deletions [Merged by Bors] - chore(PULL_REQUEST_TEMPLATE.md): add template for moves and deletions Jul 10, 2024
@mathlib-bors mathlib-bors Bot closed this Jul 10, 2024
@mathlib-bors
mathlib-bors Bot deleted the jcommelin-patch-1 branch July 10, 2024 18:31
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants