Commit Graph

61 Commits

Author SHA1 Message Date
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
Michael Waddell
e0099a154d Adding compatibility-score to output 2022-02-20 18:43:16 -06:00
Michael Waddell
f5d2dfb6a3 Closes #79 2022-02-20 13:26:09 -06:00
Michael Waddell
317bd19a8e updating documentation and adding more checks to unit tests 2022-02-17 21:15:55 -06:00
Michael Waddell
17e334fb15 Merge branch 'main' into use_author 2022-02-11 20:46:55 -06:00
Michael Waddell
ffbb37fe01 renaming target_branch to target-branch 2022-02-11 14:08:20 -06:00
Michael Waddell
8001861ce3 Added directory, package-ecosystem and target_branch to output
closes issue #76
2022-02-07 17:39:02 -06:00
Michael Waddell
960d125896 Check PR Author instead of Action Actor
closes issue #112
2022-02-07 11:24:33 -06:00
Barry Gordon
668adc2903 Update version number to 1.1.1 2021-06-21 12:19:38 +01:00
Xavier Salazar
186dad1bd3 Update README to close code-block and add proper version reference 2021-06-19 21:14:28 -07:00
Barry Gordon
7d9ca95cb8 Merge branch 'main' into patch-1 2021-06-07 10:51:54 +01:00
Hugo Alliaume
87b8174fc5 doc: change step id to dependabot-metadata
Hi, and thanks for this action! :)

Just some changes in the documentation, at the beginning we use `dependabot-metadata` id on `use: dependabot/fetch-metatada` step, but then it changes to `metatadata` only.
2021-06-06 20:30:56 +02:00
RomulusED69
66b408e97e fix(README): auto-merge permissions - contents 2021-06-05 12:02:42 +02:00
Barry Gordon
6cbfa3845b Copy fixes
Co-authored-by: Mike McDonald <2575327+asciimike@users.noreply.github.com>
2021-06-04 10:34:48 +01:00