Skip to content

Sync upstream - #5

Merged
timja merged 31 commits into
mainfrom
sync-upstream
May 6, 2022
Merged

Sync upstream#5
timja merged 31 commits into
mainfrom
sync-upstream

Conversation

@timja

@timja timja commented May 6, 2022

Copy link
Copy Markdown

No description provided.

dependabot Bot and others added 30 commits July 12, 2021 23:36
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.5.2 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](sporkmonger/addressable@addressable-2.5.2...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Remove GOV.UK Developer Docs from the notify list
…ssable-2.8.0

Bump addressable from 2.5.2 to 2.8.0
Bumps [rake](https://github.com/ruby/rake) from 13.0.3 to 13.0.6.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](ruby/rake@v13.0.3...v13.0.6)

---
updated-dependencies:
- dependency-name: rake
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
This involves using the site's URL, in combination with the relative URLs returned in `/api/pages.json` and using them to build absolute an absolute URL to each page which is to be notified upon.

Sites which use absolute links are unaffected.
This project currently lets you commit the `.bundle` folder, if you're
not careful. Add a copy of the GitHub suggested gitignore file for Ruby
projects [[1]], to make it harder to do that.

[1]: https://github.com/github/gitignore/blob/ce5da10a3a43c4dd8bd9572eda17c0a37ee0eac1/Ruby.gitignore
Bumps [http](https://github.com/httprb/http) from 3.3.0 to 5.0.4.
- [Changelog](https://github.com/httprb/http/blob/main/CHANGES.md)
- [Commits](httprb/http@v3.3.0...v5.0.4)

Breaking changes don't affect this project. This should also fix any
issues from frozen string weirdness in later versions of Ruby (see
[[1]], [[2]]).

[1]: alphagov#40 (comment)
[2]: httprb/http#653
Ruby 2.6 is in security maintenance phase and will reach end-of-life
soon [[1]]. This commit changes the `.ruby-version` file used by
developers and tooling to use the current latest release of 2.7, which
is the last in the 2.x series.

[1]: https://www.ruby-lang.org/en/downloads/branches/
Missed this from commit d375525.
Bumps bundler to the same version as used in the current ruby:2.75
Docker image (280416eb1a1c).
Needed to make `vcr: true` work.
TRG-145: Support sites which use relative URLs.
If the environment variable `SLACK_TOKEN` is set use Slack's REST API
[1] instead of webhooks.

This is needed because new-style webhooks generated by Slack apps cannot
post to any channel [2]; instead we need to use an OAuth token with
scopes chat:write and chat:write.public.

[1]: https://api.slack.com/methods/chat.postMessage
[2]: https://api.slack.com/messaging/webhooks
Add support for Slack chat.postMessage API
We want to use GitHub Actions everywhere, instead of having some of the
infra running on a Concourse installation.

This commit replaces the Concourse CI pipeline with a GitHub Actions
workflow.

Note that although the schedules are configured to be similar, they
won't be exactly the same, as concourses' time resource behaves
differently to cron. Also, the GitHub Actions scheduled event doesn't
allow configuration of timezone, so the midday-ness of the new scheduled
messages will be subject to daylight savings.

Another change from the Concourse pipeline is that we now use a Slack
token rather than a webhook. This is so that we can use a Slack app to
configure the secrets for the integration, rather than the deprecated
webhooks. This should hopefully make sharing the control of the
integration among multiple people easier.
Use GitHub Actions workflow to run monitor, instead of Concourse
@timja
timja merged commit 0268e16 into main May 6, 2022
@timja
timja deleted the sync-upstream branch May 6, 2022 09:26
@timja
timja restored the sync-upstream branch May 6, 2022 09:27
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.

5 participants