hedera-improvement-proposal
hedera-improvement-proposal copied to clipboard
Automate HIP Management with Number Assignment and Status Updates
Description:
This PR introduces two automated GitHub Actions workflows to streamline the management of HIPs (Hedera Improvement Proposals):
-
Assign HIP Number and Rename File:
- This workflow identifies new HIP proposals by comparing the files modified in a pull request (PR) against the
main
branch. - If a new HIP is detected (a proposal that doesn't yet exist in the
main
branch), the workflow assigns a unique HIP number based on the PR number. - It renames the file following the standard format (
hip-<PR_NUMBER>.md
) and updates thehip:
field in the document header with the assigned number. - Finally, it commits the changes back to the PR branch for a clear, consistent HIP file structure.
- This workflow identifies new HIP proposals by comparing the files modified in a pull request (PR) against the
-
Schedule Status Update Based on Last Call Time:
- This workflow automatically updates the status of HIPs that have reached their last call deadline.
- It identifies merged PRs containing HIP files marked with a
status: Last Call
field. - The workflow calculates the appropriate delay until the specified
last-call-date-time
, and then applies the correct new status based on the HIP type and category. - It also adds or updates the
updated
field with the current date. - After making these adjustments, it creates a new PR for the changes and automatically merges it.
Benefits:
- Automation: Streamlines HIP management, saving time and reducing manual errors.
- Consistency: Ensures all new and updated HIPs adhere to a consistent naming and status convention.
- Transparency: Offers clear communication through automatic PR messages and the precise updating of statuses and dates.