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

chore: address deprecation warnings and attempt to address flaky Dependabot behavior #8

Merged
merged 8 commits into from
Jun 10, 2024

Conversation

wassimk
Copy link
Member

@wassimk wassimk commented Jun 4, 2024

I started by looking into why Dependabot PRs sometimes fail with this action.

Then, that slowly morphed into some light refactoring. By walking through each commit separately, you can see the important changes of the node deprecation and how we now check if a Bot made the PR being run against in two different ways.

wassimk and others added 8 commits June 4, 2024 15:25
I find having the output of the data we are working with for an action
to be helpful in further development and troubleshooting of action
issues.
Address a deprecation by GitHub:

Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: planningcenter/planningcenter/pull-assign-action@v1

References:

https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
I noticed this action sometimes doesn't work. And in testing I see the
name for Dependabot is not always what we expect. But I see this is_bot
attribute so let's use it. Maybe that's why it sometimes fails.

{
  "author": {
    "is_bot": true,
    "login": "app/dependabot"
  }
}
This is mostly for my readability. I found this to be a nice flow when
recently working on our planningcenter/plus-one-action GitHub action.
"user": {
  ...
  "login": "dependabot[bot]",
  "type": "Bot",
  ...
}
The PR output was massive and not so helpful. Let's just output the
attributes we use in our logic.
@wassimk wassimk self-assigned this Jun 4, 2024
@wassimk wassimk requested a review from robertleib as a code owner June 4, 2024 21:24
Copy link
Contributor

@shanebonham shanebonham left a comment

Choose a reason for hiding this comment

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

Can you go on vacation more often please?

@wassimk wassimk merged commit 2999b8d into main Jun 10, 2024
1 check passed
@wassimk wassimk deleted the wm/tweaks branch June 10, 2024 17:57
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.

4 participants