c-hive / fresh-bot Goto Github PK
View Code? Open in Web Editor NEWThe opposite of Stale. A bot against stale bots.
License: MIT License
The opposite of Stale. A bot against stale bots.
License: MIT License
hi, thanks your fresh-bot tools, but when I configured it, it reported an error:
TypeError: Cannot destructure property `login` of 'undefined' or 'null'.
This is my fresh-bot.yml:
name: Bump stale issues
on:
schedule:
# Run every minute
- cron: '* * * * *'
push:
branches: [ master ]
jobs:
fresh-bot:
runs-on: ubuntu-latest
steps:
- name: Bump stale issues
uses: c-hive/fresh-bot@v1
with:
GITHUB_TOKEN: ${{ secrets.FRESH_BOT_TOKEN }} # Needs `repo` scope
The FRESH_BOT_TOKEN
() is set in https://github.com/Alanwang2015/Actions-Fresh-bot , and it's value is copied from global Personal access token
, what did I wrong?
Comment: #14 (comment). Let's use the type
property instead of regexes to detect comments from bots.
I'd automate the major version binding, mostly just for the sake of convenience.
Resources:
This is consistently failing as defined in https://github.com/GiovanH/actions/blob/main/.github/workflows/fresh-bot.yml, using the master branch. (It also fails with the v1 tag.)
Found stale bot comment https://api.github.com/repos/julmot/mark.js/issues/comments/1232336903 on issue https://api.github.com/repos/julmot/mark.js/issues/479
Error: TypeError: Cannot read property 'groups' of null
It looks like it's silently failing to fetch the commentParams object here:
Line 96 in 1fa925a
Use periodic actions to automatically trigger notification checks
The motivation to create an app was that it would be nice if the comment could be written by an app instead of the specific users.
AFAIR there were some issues with this (don't take these as 100% accurate, just what I recall from a year ago). "Regular" apps have to be installed on a repo and can comment on that specific repo only. OAuth apps would have access to users' notifications and could even post but require a running deployment that keeps track of oauth tokens (there could still be an issue with public vs private repos).
Finally looking at where things are headed it seems reasonable to move towards Actions instead. Therefore see #5
The initial MVP was planned to be a GitHub app using Probot and exposing an endpoint to trigger the check. Actions allow us to greatly simplify this.
MVP flow:
Existing code can definitely be refactored. Repo must be set up based on https://github.com/c-hive/js-boilerplate.
https://github.com/c-hive/gha-remove-artifacts is a good base for stealing some code ;)
Need to make sure personal access token is enough to read notifications & write comments.
For the old app-style approach see: #6 and master@55e8b86dbcbc7223bc4cdb1511657a446797d52d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.