Skip to content

feat: add workflow to close superseded automation PRs#1005

Merged
nlucero merged 1 commit intomainfrom
chore/auto-close-older-automation-prs
Apr 23, 2026
Merged

feat: add workflow to close superseded automation PRs#1005
nlucero merged 1 commit intomainfrom
chore/auto-close-older-automation-prs

Conversation

@nlucero
Copy link
Copy Markdown
Contributor

@nlucero nlucero commented Apr 21, 2026

Description

Add a workflow that closes all previously created automated PRs for a given feature (i.e. API Explorer), based on the PR's labels. The workflow runs on a new PR created and is a no-op if:

  • PR author is not created by the auth0-docs-automation
  • PR is not for the main site (indicated by the main-docs label)
  • PR has not exactly one of the following labels:
    • authn-explorer-autoupdate
    • events-catalog-autoupdate
    • management-explorer-autoupdate
    • myaccount-explorer-autoupdate
    • myorg-explorer-autoupdate

References

Testing

Tested locally with act

Checklist

  • I've read and followed CONTRIBUTING.md.
  • I've tested the site build for this change locally.
  • I've made appropriate docs updates for any code or config changes.
  • I've coordinated with the Product Docs and/or Docs Management team about non-trivial changes.

@nlucero nlucero self-assigned this Apr 21, 2026
@nlucero nlucero requested review from a team as code owners April 21, 2026 21:34
@nlucero nlucero added the main-docs Changes related to auth0's main docs (https://auth0.com/docs) label Apr 21, 2026
--state open \
--label "main-docs" \
--label "$AUTOUPDATE_LABEL" \
--json number \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❓ Question: What does --json number do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's used to determine which JSON fields you want in the projection (similar to SELECT in sql).

$ gh pr list -h
...
--json fields       Output JSON with the specified fields
...

@nlucero nlucero merged commit f5723e6 into main Apr 23, 2026
3 checks passed
@nlucero nlucero deleted the chore/auto-close-older-automation-prs branch April 23, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

main-docs Changes related to auth0's main docs (https://auth0.com/docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants