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

feat: use dependabot/fetch-metadata action #276

Merged
merged 12 commits into from Oct 3, 2022

Conversation

guilhermelimak
Copy link
Contributor

@guilhermelimak guilhermelimak commented Sep 19, 2022

Since the changes on this PR are quite big it would be nice to have a little more testing before making it public, so I'll open PRs pinning this branch in the following repositories to test it for some time before before rolling out to everyone else:

The changes on those repos should be reverted after this PR is merged.


This PR turns this action into a composite action which uses Dependabot's own fetch-metadata action to retrieve the updated dependencies names and the semver update type from a PR.

This was done manually before and besides being error-prone and missing some edge cases any update on dependabot's PR/branch naming would break this action.

After doing so I was able to remove all the parsing related code and simplify it a lot.

It's still missing a couple of details (where I left TODO: comments) and taking better care of non-semver updates, but it should be good enough for a review.

Closes #203, closes #274

@simoneb
Copy link
Collaborator

simoneb commented Sep 20, 2022

@guilhermelimak is this ready to be reviewed?

payload.json Outdated Show resolved Hide resolved
@guilhermelimak
Copy link
Contributor Author

guilhermelimak commented Sep 20, 2022

@guilhermelimak is this ready to be reviewed?

yep, just finishing up a couple of details but should be good for a review

@guilhermelimak guilhermelimak changed the title (wip) feat: use fetch metadata action feat: use fetch metadata action Sep 20, 2022
@guilhermelimak guilhermelimak changed the title feat: use fetch metadata action feat: use dependabot/fetch-metadata action Sep 20, 2022
action.yml Outdated Show resolved Hide resolved
src/action.js Outdated Show resolved Hide resolved
guilhermelimak added a commit to nearform/fastify-auth0-verify that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
guilhermelimak added a commit to nearform/sql that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
guilhermelimak added a commit to nearform/the-fastify-workshop that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
guilhermelimak added a commit to nearform/fast-jwt that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
simoneb pushed a commit to nearform/sql that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
simoneb pushed a commit to nearform/fastify-auth0-verify that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
simoneb pushed a commit to nearform/the-fastify-workshop that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
simoneb pushed a commit to nearform/fast-jwt that referenced this pull request Sep 22, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us.
Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it.
This should be replaced back to the original after testing is complete.
guilhermelimak added a commit to nearform/github-snooze-chrome-extension that referenced this pull request Sep 23, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. 
Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us. Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it. 

This should be replaced back to the original after github-action-merge-dependabot is merged.
simoneb pushed a commit to nearform/github-snooze-chrome-extension that referenced this pull request Sep 23, 2022
For the github-action-merge-dependabot's [newest version](fastify/github-action-merge-dependabot#276) we have updated how the dependabot PR metadata is retrieved. 
Before that it used some custom logic to parse the PR title and branch name but now we use dependabot's fetch-metadata action which does all the heavy lifting for us. Since that was quite a big change we're deploying a prerelease version for a small amount of projects to do before fully releasing it. 

This should be replaced back to the original after github-action-merge-dependabot is merged.
Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

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

The code LGTM

Copy link
Collaborator

@simoneb simoneb left a comment

Choose a reason for hiding this comment

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

LGTM. Let's merge this, do a new release and then we go back to the repos we temporarily updated and revert to use the released version of the action

@simoneb
Copy link
Collaborator

simoneb commented Oct 3, 2022

regenerate the dist folder to solve the conflicts please

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.

Error while parsing PR title. take advantage of dependabot parse method
3 participants