d05e1841ce
Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> GiteaUrlReader readUrl implementation. Currently relies on content being base64 encoded Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Prettify changed files Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Changeset for gitea integration Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Include gitea in Vale vocabulary, run Lint / Prettier Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Update api-reports Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Lint packages/integration/* Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Fix getGiteaFileContentsUrl, split changesets The previous file contents url code was missing a segment, (/branch), and was causing the loader to 404. (The intended functionality is to use the same URL you would use to view the file in gitea) Changesets for the integration and backend-common packages were split This commit also adds documentation relevant to the gitea integration Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com> Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com>
@backstage/backend-common
Common functionality library for Backstage backends, implementing logging, error handling and similar.
Usage
Add the library to your backend package:
# From your Backstage root directory
yarn add --cwd packages/backend @backstage/backend-common
then make use of the handlers and logger as necessary:
import {
errorHandler,
getRootLogger,
notFoundHandler,
requestLoggingHandler,
} from '@backstage/backend-common';
const app = express();
app.use(requestLoggingHandler());
app.use('/home', myHomeRouter);
app.use(notFoundHandler());
app.use(errorHandler());
app.listen(PORT, () => {
getRootLogger().info(`Listening on port ${PORT}`);
});