Skip to content
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

Remove workflow that doesnt work for other forks #1012

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mgarbs
Copy link
Collaborator

@mgarbs mgarbs commented Jul 16, 2024

This PR adds the ability for the assign hip number and rename file worklow to work with forks

  • Use pull_request_target to handle PRs from forks with base repo permissions
  • Checkout both head and base repositories for accurate diff and reference
  • Identify new HIP files in the PR and assign HIP numbers based on PR number
  • Rename new HIP files to include assigned HIP numbers
  • Commit and push changes back to the PR branch

- Use pull_request_target to handle PRs from forks with base repo permissions
- Checkout both head and base repositories for accurate diff and reference
- Identify new HIP files in the PR and assign HIP numbers based on PR number
- Rename new HIP files to include assigned HIP numbers
- Commit and push changes back to the PR branch

Signed-off-by: Michael Garber <[email protected]>
@mgarbs mgarbs requested review from a team as code owners July 16, 2024 16:10
Copy link

netlify bot commented Jul 16, 2024

Deploy Preview for hedera-hips ready!

Name Link
🔨 Latest commit ba14c9a
🔍 Latest deploy log https://app.netlify.com/sites/hedera-hips/deploys/669919a02b9d5a0008817e22
😎 Deploy Preview https://deploy-preview-1012--hedera-hips.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

Makes sense @mgarbs , thanks!

@mgarbs mgarbs marked this pull request as draft July 18, 2024 13:08
@mgarbs mgarbs changed the title Update workflow to assign HIP numbers and rename files for PRs Remove workflow that doesnt work for other forks Jul 18, 2024
@mgarbs mgarbs marked this pull request as ready for review July 18, 2024 13:34
Copy link
Contributor

@sergmetelin sergmetelin left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants