Skip to content

feat(scripts/autolabel): use Cli and integrate curl call into autolabel#34952

Open
joneugster wants to merge 3 commits intoleanprover-community:masterfrom
joneugster:autolabel/use-cli
Open

feat(scripts/autolabel): use Cli and integrate curl call into autolabel#34952
joneugster wants to merge 3 commits intoleanprover-community:masterfrom
joneugster:autolabel/use-cli

Conversation

@joneugster
Copy link
Contributor

@joneugster joneugster commented Feb 7, 2026

  • use Cli for lake exe autolabel
  • add arguments --pr xxx --gh and --pr xxx --curl <TOKEN> to chose between different interaction methods with github
  • add --force to skip the check whether labels are already present. (note: the current curl setup doesn't perform this step, so I left it as a TODO in this PR, too)
  • make CI-workflow simpler and more robust by removing current stdout-parsing of the debug-messages which autolabel emits.

Testing

Make some local changes and commit them. Ensure your local origin/master is in sync with upstream/master if you are on a fork.

  • lake exe autolabel: prints the labels which would be applicable
  • lake exe autolabel --pr 34952 --gh --force adds these labels to this PR using gh.
  • lake exe autolabel --pr 34952 --gh adds these labels to this PR using gh if no topic labels are present.
  • lake exe autolabel --pr 34952 --curl <ACCESS_TOKEN> adds these labels to this PR using curl. This requires a github access token for authentication

Open in Gitpod

@github-actions github-actions bot added the CI Modifies the continuous integration setup or other automation label Feb 7, 2026
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

PR summary 88bb6d226a

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ GithubInteraction
+ autoLabelCli
+ autolabel

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

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

The doc-module for scripts/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@joneugster joneugster added t-algebraic-topology Algebraic topology t-meta Tactics, attributes or user commands t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-algebra Algebra (groups, rings, fields, etc) CI Modifies the continuous integration setup or other automation and removed t-meta Tactics, attributes or user commands CI Modifies the continuous integration setup or other automation t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-algebraic-topology Algebraic topology t-algebra Algebra (groups, rings, fields, etc) labels Feb 7, 2026
@joneugster joneugster added CI Modifies the continuous integration setup or other automation and removed CI Modifies the continuous integration setup or other automation t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-algebraic-topology Algebraic topology labels Feb 7, 2026
@joneugster joneugster marked this pull request as ready for review February 7, 2026 17:02
@joneugster joneugster changed the title feat(scripts/autolabel): rewrite script to use CLI feat(scripts/autolabel): use Cli, integrate curl call into autolabel Feb 7, 2026
@joneugster joneugster changed the title feat(scripts/autolabel): use Cli, integrate curl call into autolabel feat(scripts/autolabel): use Cli and integrate curl call into autolabel Feb 7, 2026
@mathlib-merge-conflicts
Copy link

This pull request has conflicts, please merge master and resolve them.

@mathlib-merge-conflicts mathlib-merge-conflicts bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 8, 2026
@joneugster joneugster removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) CI Modifies the continuous integration setup or other automation labels Feb 15, 2026
@joneugster joneugster added the CI Modifies the continuous integration setup or other automation label Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Modifies the continuous integration setup or other automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments