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

Sl/chore/can 7656/can 7679 #336

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
aabeeef
chore: synced local '.github/dependabot.yml' with remote '.github/dep…
Mar 25, 2024
20424c4
chore: created local '.github/workflows/dependabot-new-pr.yml' from r…
Mar 25, 2024
5ee4713
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
9272279
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
cda86e1
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
b4f85a5
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
31e727f
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
527b1e1
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
065ddbd
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
a500c18
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
8fce584
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
7484948
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Mar 26, 2024
631d89f
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Apr 2, 2024
2e6ef7f
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Apr 15, 2024
eea3980
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Apr 15, 2024
c4114ca
chore: created local '.github/workflows/dependabot-open-vulnerabiliti…
Apr 15, 2024
2b24ad3
chore: synced local '.github/workflows/dependabot-open-vulnerabilitie…
Apr 16, 2024
a4d8902
chore: created local '.github/workflows/dependabot-reminder-open-prs.…
Apr 16, 2024
c5e2f93
chore: synced local '.github/workflows/dependabot-reminder-open-prs.y…
Apr 16, 2024
c951f42
chore: synced local '.github/workflows/dependabot-open-vulnerabilitie…
Apr 16, 2024
c79eac9
chore: synced local '.github/workflows/dependabot-reminder-open-prs.y…
Apr 16, 2024
e10ab14
chore: synced local '.github/workflows/dependabot-new-pr.yml' with re…
Apr 18, 2024
03bcddf
chore: synced local '.github/workflows/dependabot-open-vulnerabilitie…
Apr 18, 2024
a3c8b24
chore: synced local '.github/workflows/dependabot-reminder-open-prs.y…
Apr 18, 2024
3c69e01
chores CAN-7656/CAN-7679: delete synced workflows
penchef Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
# file is synced from cove-workflow

version: 2
registries:
npm-npmjs:
type: npm-registry
url: https://registry.npmjs.org
token: ${{ secrets.NPM_TOKEN_READ_ONLY }}
updates:
- package-ecosystem: "npm"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
interval: "weekly"
commit-message:
prefix: chore
prefix-development: chore
groups:
all:
update-types:
- "major"
- "minor"
- "patch"
- package-ecosystem: "npm"
directory: "/"
registries:
- npm-npmjs
schedule:
interval: "daily"
interval: "weekly"
commit-message:
prefix: chore
prefix-development: chore
groups:
dev-dependencies:
dependency-type: "development"
update-types:
- "minor"
- "patch"
63 changes: 63 additions & 0 deletions .github/workflows/dependabot-new-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Dependabot New PR
on:
pull_request:
types:
- opened
- reopened
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- name: read maintainers.json
id: read-maintainers
# reads maintainers array and map them to their slack userIds "mentions" (see slack api https://api.slack.com/reference/surfaces/formatting#mentioning-users)
run: |
# shellcheck disable=SC2002
echo "maintainers=$(cat maintainers.json | jq '.[] | to_entries | .[].value' | jq --slurp -r '. | join(" ")')" >> "$GITHUB_OUTPUT"
- name: 'Post PR to #dev-pr'
if: always() # continue even if read-maintainers failed for some reason
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
MAINTAINERS: ${{ steps.read-maintainers.outputs.maintainers }}
with:
channel-id: C0399MY1YKW # dev-pr channel
payload: |
{
"attachments": [
{
"mrkdwn_in": ["text"],
"color": "#3679a6",
"author_name": "Dependabot 🤖",
"author_icon": "https://manage.cove.is/imgs/favicon.png",
"title": "${{ github.event.pull_request.title }}",
"title_link": "${{ github.event.pull_request.html_url }}",
"fields":
[
{
"title": "repository",
"value": "${{ github.event.pull_request.head.repo.name }} ",
"short": false
},
{
"title": "maintainers",
"value": "${{ env.MAINTAINERS || 'no one' }}",
"short": true
}
],
"thumb_url": "https://manage.cove.is/imgs/favicon.png",
}
]
}
#############################################
notify-all:
#############################################
uses: livelyhood/cove-workflows/.github/workflows/notify.yml@main
needs:
- dependabot
if: ${{ always() && contains(needs.*.result, 'failure') }}
secrets: inherit
with:
failure: true