Commit Graph

74 Commits

Author SHA1 Message Date
Jeff Widman
6ad01a0495 Add workflow to publish new version of immutable action on every release (#623)
Adds a workflow that publishes a new version of the immutable action package
for this action on every release.

Co-authored-by: Nish Sinha <nishnha@github.com>
2025-05-09 17:37:39 -06:00
Jeff Widman
798f45cdc5 Fixup some anchor tags that weren't deeplinking (#614) 2025-04-02 16:47:58 -04:00
Jeff Widman
6c031ac618 Tidy up examples slightly (#611)
Tidies up the examples slightly
2025-03-28 17:38:45 -07:00
Stoyan Kolev
bbfca7ec1c fix readme action example 2024-10-21 20:44:00 +03:00
Nish Sinha
46e21c91ff Add the pull_request_target permissions note 2024-08-26 17:55:25 -04:00
Nish Sinha
9e29706b9b pull_request_target -> pull_request 2024-08-26 17:49:24 -04:00
Nish Sinha
af75c3e1a2 Remove ${{ }} 2024-08-26 17:48:22 -04:00
Nish Sinha
e10dfc617d Specify if conditional
Also update all fetch-metadata@v1 references to v2
2024-08-26 16:47:17 -04:00
Jeff Widman
dc2c459ae6 v2 is the new tracking tag (#506)
We're about to cut a new major version of this action,
and we don't anticipate any further releases of the `v1`
line.

So I simply updated the automation to float the `v2` tag.

Technically we could make it so it intelligently looks at
the release number and updates the appropriate tag, but
that'd be a bit more work and we don't need that complexity
in this repo right now given our very infrequent cadence of
bumping major versions.

As explained in a [code comment](f2f0ad1522/.github/workflows/release-move-tracking-tag.yml (L11-L28)):
```
    # We have a choice - defensiveness vs convenience:
    # 1. Be defensive by filtering if the release doesn't look like a normal
    #    version, or if it's a patch release to an older version... the logic
    #    gets tricky quickly. Easiest way to be 100% sure is stop running this
    #    on `release` and instead require a human to manually run this workflow
    #    after they tag a release.
    # 2. Minimize the upfront hassle by assuming every release is a normal
    #    version release and the latest one. Today both are resoundingly true
    #    as this repo isn't that active/busy, so we don't worry about
    #    multiple release branches, pre-releases, etc.
    #
    # For now I've gone with option 2, as it is much more convenient and if we
    # typo something during a release it's easy to fix by immediately tagging a
    # correct release. And if we don't notice the typo, well, in that case
    # requiring a human to manually run the workflow wouldn't have protected us
    # either, we'd have had to filter by only things that look like versions.
    # Anyway, for now this is good enough, and if it gets to be a problem down
    # the road we increase the robustness of this.

```
2024-03-21 14:28:04 -07:00
Nish Sinha
1c52d60755 Add blurbs about using a PAT to the readme
Add more blurbs about using a PAT to the readme under the `alert-lookup` and `compat-lookup` descriptions

Follow up on https://github.com/dependabot/fetch-metadata/issues/464
2023-10-31 23:38:37 -04:00
Nish Sinha
1b3b649db0 Change actions/checkout@v3 to v4 in readme 2023-09-21 14:43:09 -04:00
Nish Sinha
cfab22f699 Add dependency group metadata 2023-06-08 13:48:27 -04:00
Jeff Widman
a2a3a43b4a Add workflow for floating the v1 tag to the latest release (#361)
This adds a workflow for floating the `v1` tag to the latest release.

This way we reduce the chance of someone fat-fingering the necessary
`git` commands.
2023-05-19 08:37:20 -07:00
Jeff Widman
6c5b8c2d48 Add workflow for creating release PR's (#360)
Add a workflow for creating release PR's. This way we don't have to do
it locally, and we guarantee the `npm` version used to generate the
version bump is consistent and stays in-sync with the repo instead of
whatever the dev happened to have on their local computer.
2023-05-18 11:56:46 -07:00
Jeff Widman
042f8db0bc Add a deeplink for tagging releases to the Readme (#369) 2023-05-18 10:36:01 -07:00
Jeff Widman
fd7c300f7c Simplify bin/bump-version (#368)
Over in
https://github.com/dependabot/fetch-metadata/pull/360#discussion_r1196155497,
I noticed that bash was complaining about this script:
```bash
bin/bump-version: line 9: ((: patch_level == 'major' || patch_level == 'minor' || patch_level == 'patch': syntax error: operand expected (error token is "'major' || patch_level == 'minor' || patch_level == 'patch'")
```

I started to dig into it, but the `while` loop isn't needed, the `case`
statement felt unecessarily complex so I simplified it to use an `if`
statement.

I also changed the argument from a flag-based argument to simple ordered
argument, as again it seemed simpler and it matches the style of the
bump version script over in `dependabot-core` so it's easier for
engineers working across repos. If we later have additional flags, we
can always switch it back later.

Lastly, I found `patch_version` confusing given that `patch` is a
specific value that can be used, so I renamed it to `version_type`.
2023-05-18 10:24:14 -07:00
Michael Waddell
32fd3a60da Added flag if "Maintainer changes" appears in the PR body (#174)
Ideally this would get passed over in the commit message instead of being part of the (editable) PR body. For now though we can just use the PR body.
2023-04-24 13:14:30 -07:00
Jeff Widman
5a033be007 Simplify the release process (#347)
There's a chicken-and-egg scenario where we don't have the release notes
to include in the version bump PR until we create a GitHub release...
but we don't want to publish the release until the commit bumping the
version actually lands.

The last few times I've cut a `fetch-metadata` release, I've been
surprised how I always forget the intricate dance to navigate this
chicken-and-egg.

I don't think the juice is worth the squeeze... no one really looks at
the changelog notes in the PR, and if in fact having the release notes
two different places introduces a risk of drift because both the PR
description and the git tag for the release can be edited later on...
only the commit history is actually immutable. So if either is edited
w/o editing the other, they're out of sync.

The odds of that are low--we rarely edit release notes--but still life
is simpler if we merely point the commit/PR description at the URL for
the release notes and manage those in a single place.

This also lets us script creating the PR, which is one less thing to do
manually.
2023-04-24 08:37:28 -07:00
Jeff Widman
bc8479f21c Document verification overrides in readme (#345) 2023-04-17 14:28:27 -07:00
Jack Bates
8963deb581 Add minimum permissions to usage example (#343) 2023-04-17 14:26:25 -07:00
Yeikel
6c2bf2fe33 feat: add option to skip internal verifications (#336)
Add a `skip-verification` (boolean) option:
 
 - If `true`, the action will not validate the user or the commit verification status
 - Defaults to `false`

Allows for scenarios where users want to add or amend commits on the Dependabot PR, and those commits will not come from the :dependabot: user.

There's a fair bit of discussion on this use case and also why this isn't the default behavior, see:
* https://github.com/dependabot/fetch-metadata/pull/336
* https://github.com/dependabot/fetch-metadata/issues/332
2023-04-17 12:44:22 -07:00
Jeff Widman
bc97c90bca Clarify release notes slightly
Clarify a few things I had to think through more than I should have during the release process
2022-11-02 16:09:06 -07:00
Jeff Widman
0e0e56882f Don't assume git pull fetches all branches/tags
While running a release, at this point in the instructions I was on the `v1.3.5-release-notes` branch.

So `git pull` isn't guaranteed to pull updates on `main` etc.

Since we're going to checkout the release tag, a `fetch` is all we need here.
2022-11-02 16:07:07 -07:00
Jeff Widman
ffb09c023c Drop mention of "locally"
I saw "locally" and thought I had to do this on my laptop and couldn't do this in a codespace for some reason... 

But I tested and turns out a codespace is just fine, so remove mention of "locally"
2022-11-02 16:05:04 -07:00
Jeff Widman
daa85e7aee Add mention of npm run build if dev deps need updating. 2022-11-02 13:56:14 -07:00
Jeff Widman
b768c4033e Document steps for cutting a new release
Document the steps to cut/tag a new release of this action.
2022-11-02 13:56:14 -07:00
Rafael Ribeiro
3f9eabc222 Merge branch 'main' into fix-docs 2022-10-11 22:15:52 +02:00
Nish Sinha
bfc19f43c1 v1.3.4 2022-09-29 14:21:51 -04:00
Jeff Widman
5ecfd58bc8 Fix broken logo on readme
The current logo is broken. So replace with the new one.

Copied from https://github.com/dependabot/dependabot-core/pull/5298.

🎩 💁‍♂️  to @mattt 's attention to detail including supporting both light and dark themes.
2022-09-17 22:20:33 -07:00
Rafael Ribeiro
403612afa9 docs: fix auto-merge example 2022-09-14 18:42:30 +02:00
Jeff Widman
3a9105bbaf Pin only to major version, not full patch version 2022-08-31 20:40:32 -07:00
David McIntosh
e0f38423c6 v1.3.3 2022-06-30 23:43:45 +00:00
Barry Gordon
28b141fdba v1.3.2 2022-06-30 16:16:01 +01:00
Barry Gordon
d882a80163 Update documentation 2022-06-30 14:38:02 +01:00
Barry Gordon
80173ff966 Small correction to bump-version script 2022-04-20 11:59:32 +01:00
Barry Gordon
525fbe9201 v1.3.1 2022-04-20 11:36:39 +01:00
Michael Waddell
fb30fa3b5d minimizing auto approve notifications 2022-03-26 22:16:33 -05:00
Michael Waddell
a70ed12cac put those back to be more explicit 2022-03-22 13:58:58 -05:00
Michael Waddell
9f1a0a2d59 Updated readme for when you need to use a PAT 2022-03-22 13:55:33 -05:00
Barry Gordon
11d3bb752a v1.3.0 2022-02-28 18:32:53 +00:00
Barry Gordon
0ca01a5553 Merge pull request #146 from pangaeatech/get_compat_score
Return compatibility score
2022-02-28 18:10:37 +00:00
Barry Gordon
26e18ca119 Merge branch 'main' into patch-1 2022-02-28 17:10:27 +00:00
Michael Waddell
592101e995 Updated README to reference correct version 2022-02-25 22:08:27 -06:00
Jack Bates
0caf82fe41 Default github-token 2022-02-23 09:57:53 -07:00
Michael Waddell
ba0ddd7fd8 disabling by default 2022-02-21 19:36:02 -06:00
Michael Waddell
dd76591256 Merge branch 'flag-security-alerts' into get_compat_score 2022-02-21 19:27:14 -06:00
Michael Waddell
6d854e50fd Merge branch 'main' into get_compat_score 2022-02-21 19:22:05 -06:00
Michael Waddell
cfcd55c7b9 Make new "get-alerts" functionality off by default 2022-02-21 19:09:53 -06:00
Michael Waddell
582a0e6a5f Merge branch 'main' into flag-security-alerts 2022-02-21 17:41:40 -06:00
Barry Gordon
12c5ca3f21 Merge pull request #145 from pangaeatech/update-readme
Updated README to list supported `dependency-type` values
2022-02-21 16:21:35 +00:00